Jump to content

SOMDeleteModule: Difference between revisions

From EDM2
Line 28: Line 28:
===Functions===  
===Functions===  
* [[SOMLoadModule]]
* [[SOMLoadModule]]
* [[SOMClassInitFuncName]]
* [[somClassInitFuncName]]


[[Category:SOM Kernel]]
[[Category:SOM Kernel]]

Revision as of 22:49, 10 October 2017

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