The information on this page refers to versions prior to 4.6, which removed the LMX_AtExit function. |
The LMX_AtExit function registers functions that are to be called at program termination.
...
Code Block |
---|
LMX_STATUS LMX_AtExit ( AtExit_pfn Func ); |
Parameters
LmxAtExitFunc
[in] LM-X_AtExitFunction to be called at cleanup.
Return values
On success, this function returns the status code LMX_SUCCESS.
On failure, this function returns an error code in the format described in Return codes.
If function pointer value is NULL, the function will return LMX_INVALID_PARAMETER.
Remarks
LMX_AtExit is used to register cleanup functions that access LMX the LM-X API.
Note: Please note that using cstdlibCstdlib's atexit(), WinApi's_onexit(), static
* objects' destructors, etc. that interact with LM-X API is not supported
* and results and static object destructors are not supported and will result in undefined behavior.