For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.
Registers a routine to be called at exit time.
_onexit_t __dllonexit( _onexit_t func, _PVFV ** pbegin, _PVFV ** pend )
Pointer to a function to be executed upon exit.
Pointer to a variable that points to the beginning of a list of functions to execute on detach.
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.
__dllonexit function is analogous to the _onexit function except that the global variables used by that function are not visible to this routine. Instead of global variables, this function uses the
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.
_PVFV type is defined as
typedef void (__cdecl *_PVFV)(void).