SOMDeleteModule: Difference between revisions
Appearance
Created page with "This function unloads a dynamically linked library (DLL). ==Syntax== <PRE> somToken modHandle; int rc; rc = (*SOMDeleteModule)(modHandle); </PRE> ==Parameters== ;..." |
mNo edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 8: | Line 8: | ||
rc = (*SOMDeleteModule)(modHandle); | rc = (*SOMDeleteModule)(modHandle); | ||
</PRE> | </PRE> | ||
==Parameters== | ==Parameters== | ||
; modHandle(somToken) : The somToken for the DLL to be unloaded. This token is supplied by the SOMLoadModule function when it loads the DLL. | ;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== | ==Return Code== | ||
; rc (int): | ;rc (int): | ||
:0 - Returns 0 if successful. | |||
:code - Returns a non-zero system-specific error code if not successful. | |||
==Remarks== | ==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]]. | 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== | ==Example Code== | ||
==Related== | ==Related== | ||
;Data Structures | |||
* somToken (sombtype.h) | * somToken (sombtype.h) | ||
;Functions | |||
* [[SOMLoadModule]] | * [[SOMLoadModule]] | ||
* [[ | * [[somClassInitFuncName]] | ||
[[Category:SOM Kernel]] | [[Category:SOM Kernel]] |
Latest revision as of 16:27, 12 October 2022
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