_PELDR_FreeModule
#include <vxdldr.h>
LRESULT CDECL PELDR_FreeModule(HPEMODULE hModule, PHLIST phList);
Decrements usage count of given module and frees the module when usage count reaches zero.
- Returns the module load count if successful, otherwise returns PELDR_ERR_INVALIDHANDLE if the specified handle is not valid.
- hModule
- A handle to a module. This parameter must be a valid handle returned by _PELDR_LoadModule or _PELDR_GetModuleHandle.
- phList
- A pointer to a list handle of export tables. This parameter is specified when a client restricts the export table list. If NULL, the global export table list is used.