description | title | ms.date | api_name | api_location | api_type | topic_type | f1_keywords | helpviewer_keywords | ms.assetid | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: __dllonexit |
__dllonexit |
11/04/2016 |
|
|
|
|
|
|
708f2ceb-f95c-46b0-a58d-d68b3fa36f12 |
Registers a routine to be called at exit time.
_onexit_t __dllonexit(
_onexit_t func,
_PVFV ** pbegin,
_PVFV ** pend
);
func
Pointer to a function to be executed upon exit.
pbegin
Pointer to a variable that points to the beginning of a list of functions to execute on detach.
pend
Pointer to variable that points to the end of a list of functions to execute on detach.
If successful, a pointer to the user's function. Otherwise, a NULL
pointer.
The __dllonexit
function is analogous to the _onexit
function except that the global variables used by that function aren't visible to this routine. Instead of global variables, this function uses the pbegin
and pend
parameters.
The _onexit
and atexit
functions in a DLL linked with MSVCRT.LIB must maintain their own atexit/_onexit list. This routine is the worker that gets called by such DLLs.
The _PVFV
type is defined as typedef void (__cdecl *_PVFV)(void)
.
Routine | Required file |
---|---|
__dllonexit |
onexit.c |