Loading the Extension
File Manager first sends the FMEVENT_LOAD message to the
FMExtensionProc function. The
lParam parameter accompanying the FMEVENT_LOAD message points to an
FMS_LOAD structure that File Manager uses to obtain information about the
extension-supplied menu, including the menu name and menu handle.
File Manager also uses the
FMS_LOAD structure to pass the menu-item delta value to the extension. To avoid
conflicts with its own menu-item identifiers, File Manager renumbers the menu-item
identifiers in an extension-supplied menu by adding the delta value to each
identifier. An extension DLL that must modify its menu after File Manager has loaded
it must use the delta value. For example, to delete a menu item, the extension
DLL finds the sum of the delta value and the menu-item identifier and passes
it as the
idItem parameter to the
DeleteMenu function.
If an extension returns FALSE in response to this message, File Manager calls
the
FreeLibrary function and ends any communication with the extension DLL. This is the only
place where an extension can notify File Manager of initialization problems and
thus prevent the extension from being loaded.
- Software for developers
-
Delphi Components
.Net Components
Software for Android Developers
- More information resources
-
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
- Databases for Amazon shops developers
-
Amazon Categories Database
Browse Nodes Database