7.4 Registering the Drop Handler

only for RuBoard - do not distribute or recompile

7.4 Registering the Drop Handler

There can be only one drop handler for a file type; therefore, drop handlers are registered in a similar manner to icon handlers, as Figure 7.3 illustrates. The default value points to the CLSID of the drop handler, and the CLSID is added to the approved extensions list.

Figure 7.3. Registering a drop handler in the registry
figs/vshl.0703.gif

The following registry script will properly register the example for this chapter. As always, lines contained within square brackets must be on the same line:

 REGEDIT4 [HKEY_CLASSES_ROOT\.rad] @ = "radfile" [HKEY_CLASSES_ROOT\radfile] [HKEY_CLASSES_ROOT\radfile] @ = "Rudimentary Animal Data" [HKEY_CLASSES_ROOT\radfile\shellex] [HKEY_CLASSES_ROOT\radfile\shellex\DropHandler] @ = "{A48EE3D7-F33D-11D2-9FDD-00550076E06F}" [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved] "{A48EE3D7-F33D-11D2-9FDD-00550076E06F}" = "RAD drop handler" 
only for RuBoard - do not distribute or recompile


Visual Basic Shell Programming
Visual Basic Shell Programming
ISBN: B00007FY99
EAN: N/A
Year: 2000
Pages: 128

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net