These are prototypes of functions that must be implemented by a NetIDMgr plugin.
Defines | |
| #define | EXP_INIT_MODULE "_init_module@4" |
| #define | EXP_EXIT_MODULE "_exit_module@4" |
Typedefs | |
| typedef khm_int32(KHMAPI *) | init_module_t (kmm_module) |
| Type for init_module(). | |
| typedef kmq_callback_t | _plugin_proc_t |
| Type for init_plugin(). | |
| typedef khm_int32(KHMAPI *) | exit_module_t (kmm_module) |
| Type for exit_module(). | |
Functions | |
| KHMEXP_EXP khm_int32 KHMAPI | init_module (kmm_module h_module) |
| Initialize the module. | |
| KHMEXP_EXP khm_int32 KHMAPI | _plugin_proc (khm_int32 msg_type, khm_int32 msg_subtype, khm_ui_4 uparam, void *vparam) |
| Plugin procedure. | |
| KHMEXP_EXP khm_int32 KHMAPI | exit_module (kmm_module h_module) |
| Exit a module. | |
| KHMEXP_EXP khm_int32 KHMAPI _plugin_proc | ( | khm_int32 | msg_type, | |
| khm_int32 | msg_subtype, | |||
| khm_ui_4 | uparam, | |||
| void * | vparam | |||
| ) |
Plugin procedure.
This is the message processor for a plugin. See Plug-ins for more information.
Essentially, this is a message subscriber for KMQ messages.
| KHMEXP_EXP khm_int32 KHMAPI exit_module | ( | kmm_module | h_module | ) |
Exit a module.
This is the last callback function that the NetIDMgr module manager calls before unloading the module. When this function is called, all of the plugins for the module have already been stopped. However, any localization libraries that were loaded as a result of init_module() calling kmm_set_locale_info() will still be loaded. These localization libraries will be unloaded immediately after this callback returns.
Use this callback to perform any required cleanup tasks. However, it is advisable that each plugin perform its own cleanup tasks, since each plugin may be stopped independently of others.
| KHMEXP_EXP khm_int32 KHMAPI init_module | ( | kmm_module | h_module | ) |
Initialize the module.
This is the first callback function to be called in a module. Perform all the required intialization when this is called. As mentioned in plugins, you should not attempt to call any NetIDMgr API function from DLLMain or other initialization code other than this one.
You should use this call back to register the plugins that will be implemented in this module and to notify the plugin manager of any resource libraries that this module will use.
Call:
This function is called in the context of the current user, from the plug-in manager thread. This same thread is used by the plug-in manager to load and initialize all the modules for a session.
The name of the callback must be init_module(). The calling convention is KHMAPI, which is currently __stdcall.
If this function does not register any plugins, the plugin manager will immediately call exit_module() and unload the module even if the init_module() function completes successfully.
|
Generated on Fri Aug 3 08:27:14 2007 for Network Identity Manager by Doxygen 1.5.2 © 2004-2007 Massachusetts Institute of Technology. © 2005-2007 Secure Endpoints Inc. Contact khimaira@mit.edu |
|