lgo_UnloadLaygoDll()
Unload the LayGO DLL last loaded by lgo_LoadLaygoDll()
#include "laygodll.h" LResult lgo_UnloadLaygoDll ( void );
lgo_UnloadLaygoDll() unloads the LayGO DLL loaded by the last successful call to lgo_LoadLaygoDll(). Each successful call to lgo_LoadLaygoDll() must be matched by a call to lgo_UnloadLaygoDll(). Calling any LayGO API function after a successful call to lgo_UnloadLaygoDll() will typically result in abnormal program termination.
As a side-effect, lgo_UnloadLaygoDll() sets the value of the global
variable lgo_Fn to NULL
.
If successful, lgo_UnloadLaygoDll() returns a non-negative value. Otherwise, it returns a negative value. The return values have no significance other than success and failure.
LaygoDllType dllType = lgo_DLL_LOCAL; if (lgo_LoadLaygoDll(dllType) < 0) { printf("Error: failure loading LayGO DLL.\n"); } else { /* Process... */ lgo_UnloadLaygoDll(); }