Dynamic Plugins - EPFLAGS (enum)
The declaration of the Enumerated Data Type PFLAGS:
enum EPFLAGS
{ABOUT=2,EXECWITHVARIABLES=3,LANGUAGEPACKSUPPORT=6,CONFIGURE=12,UTILITY=24};
EPFLAGS are plugin "flags", which can be used to tell DLL Deity things about the plugin.
In your InitializePlugin() function, the SPLUGINTYPE data structure, which is returned, contains the variable lExtra. lExtra is the variable which stores the plugin's flags. Flags can be set but setting lExtra equal to any EPFLAGS variable. Multiple flags can be "raised" by setting lExtra equal to the sum of multiple flags.
(where myPLUGINTYPE is a structure of the type SPLUGINTYPE)
Setting one flag: myPLUGINTYPE.lExtra
= ABOUT;
Setting multiple flags: myPLUGINTYPE.lExtra = ABOUT + EXECWITHVARIABLES
+… ;
NONE | The plugin has no raised flags. |
ABOUT | The plugin contains an about box. |
UTILITY | The plugin is a utility plugin. |
EXECWITHVARIABLES | The plugin requires Hackman variables to be passed to its ExecPlugin() function. (ExecPlugin type #2) |
LANGUAGEPACK | The plugin has language pack support. (Not valid until DLL Deity v6.0) |
CONFIGURE | The plugin has a configuration menu. |