PLUGININFO Structure |
The PLUGININFO structure contains information about a plug-in. When a plug-in recieves the PLGMSG_INITPLUGIN message it is expected to fill out the PLUGININFO structure with the correct information that describes the plug-in being loaded.
typedef struct tagPLUGININFO { DWORD dwMask; char *pszPluginName; char *pszPluginDescription; char *pszAuthor; char *pszURL; UINT nPlgNum; HICON hPlgIcon; UINT unPluginType; DWORD dwVersion; UINT uBuddyMenu; HINSTANCE hPgInst; } PLUGININFO, *PPLUGININFO, FAR *LPPLUGININFO; |
Members
- dwMask
- Array of flags that indicate which of the other structure members contain valid data and the functionality of the plug-in. This member can be one or more of the following values.
Value Meaning PMASK_URL The pszURL member is valid. PMASK_ICON The hPlgIcon member is valid. PMASK_SEARCH The plug-in is able to search for buddies. PMASK_BUDDYMENU The uBuddyMenu member is valid.
- pszPluginName
- NULL terminated string that specifies the plug-in name.
- pszPluginDescription
- NULL terminated string that describes the plug-in.
- pszAuthor
- NULL terminated string that indicates the author of the plug-in.
- pszURL
- NULL terminated string that indicates the URL of the plug-ins homepage.
- nPlgNum
- Unique id for the plug-in.
- hPlgIcon
- HICON that is associated with the plug-in.
- unPluginType
- Describes the type of plug-in. This member can be one of the following.
Value Meaning BABEL_COM_PLUGIN The plug-in is a communications plug-in. BABEL_ACC_PLUGIN The plug-in is a accessory plug-in. BABEL_CHAT_PLUGIN The plug-in is a chat dialog plug-in.
- dwVersion
- Double word that describes the plug-ins version (MAKELONG(MAKEWORD(1, 0), MAKEWORD(0, 2)) would be displayed as 1.0.02).
- uBuddyMenu
- Id of the buddy menu resource (appended to the buddy tree menu).
- hPgInst
- HINSTANCE of the plug-in.
Structure Information
Header plugin.h