OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
WEP

WEP is the exit procedure of a DLL. Windows calls it prior to unloading the DLL.

Because the Borland C++ run-time libraries provide a default WEP, this function is not necessary in a DLL, but you can write one to perform any cleanup before the DLL is unloaded from memory. Often the application has terminated by the time WEP is called, so valid options are limited.

Under Borland C++, WEP does not need to be exported, although you should export it if you are concerned with portability. WEP returns 1 to indicate success. Windows currently does not use this return value. Here is the WEP prototype:

The nParameter can be one of the following:

  • WEP_SYSTEMEXIT Windows is shutting down.
  • WEP_FREE_DLL Just this DLL is unloading.

See Also