Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
如果在外部库中实现并公开该函数,则数据库服务器将在卸载外部库之前立即执行该函数。
extern "C" void SQL_CALLBACK extfn_pre_unload_library( void );
只有在库特定要求在卸载库之前执行整个库范围清除的情况下才需要使用该函数。
数据库服务器将在卸载外部库之前立即异步调用该函数。
extern "C" __declspec( dllexport ) void SQL_CALLBACK extfn_pre_unload_library( void ) { MessageBox( NULL, "Library unloading", "SQL Anywhere", MB_OK | MB_TASKMODAL ); }