only for RuBoard - do not distribute or recompile |
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.
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 |