SOMDeleteModule

From EDM2
Jump to: navigation, search

This function unloads a dynamically linked library (DLL).

Syntax

somToken    modHandle;
int         rc;

rc = (*SOMDeleteModule)(modHandle);

Parameters

modHandle(somToken)
The somToken for the DLL to be unloaded. This token is supplied by the SOMLoadModule function when it loads the DLL.

Return Code

rc (int)
0 - Returns 0 if successful.
code - Returns a non-zero system-specific error code if not successful.

Remarks

This function unloads the specified dynamically linked library (DLL). This routine is called by the SOM Class Manager to unload DLLs. This function can be replaced (thus changing the way the Class Manager unloads DLLS) by changing the value of the global variable SOMDeleteModule.

Example Code

Related

Data Structures
  • somToken (sombtype.h)
Functions