You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

The LMX_AtExit function registers functions called at program termination.

Prototype

LMX_STATUS LMX_AtExit
(
	AtExit_pfn Func
);

Parameters

LmxAtExit

[in] LM-X_AtExit.

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 API.

Note:Calling static object destructors that interact with LM-X API, for example cstdlib's atexit(), WinApi's_onexit(), is not supported, and will have undefined behavior.

 

 

 

 





 


  • No labels