HANDLE WINAPI OpenPlugin( int OpenFrom, INT_PTR Item );
| Constant | Description |
|---|---|
| OPEN_DISKMENU | Opened from the disks menu |
| OPEN_PLUGINSMENU | Opened from the plugins menu (F11) |
| OPEN_FINDLIST | Opened from the "Find File" dialog. The plugin will be called with this identifier only if it exports the SetFindList function, and SetFindList will be called only if OpenPlugin returns a valid handle. |
| OPEN_SHORTCUT | Opened using a folder shortcut command. |
| OPEN_COMMANDLINE | Opened from the command line.. This type is used if the plugin has defined a command prefix in the GetPluginInfo function, and this prefix, followed by a colon, is found in the command line. |
| OPEN_EDITOR | Opened from internal editor |
| OPEN_VIEWER | Opened from internal viewer. |
| OPEN_DIALOG | Opened from dialog |
ftp://ftp.abc.com, Item will point to //ftp.abc.com.
However, if PF_FULLCMDLINE is set, Item will point to
ftp://ftp.abc.com.If the function fails, the return value must be INVALID_HANDLE_VALUE.