__dllonexit

注册将调用实例在退出时。

_onexit_t __dllonexit(
   _onexit_t func,
   _PVFV **  pbegin, 
   _PVFV **  pend 
   )

参数

  • func
    对于将要执行的函数的指针退出。

  • pbegin
    对指向功能列表开始执行变量的指针分离。

  • pend
    对指向功能列表的末尾执行变量的指针分离。

返回值

如果成功,指向用户的功能。 否则,一个 null 指针。

备注

__dllonexit 功能类似于 _onexit 功能,但该函数使用的全局变量不是可见的。此实例。 而不是全局变量,此函数使用 pbegin 和 pend 参数。

在与 MSVCRT.LIB 链接的 DLL 的 _onexitatexit 函数必须保持其 atexit/_onexit 列表。 此实例是由此类 DLL 会调用的辅助。

_PVFV 类型定义为 typedef void (__cdecl *_PVFV)(void)。

要求

实例

必需文件

__dllonexit

onexit.c

请参见

参考

_onexit, _onexit_m