网站首页  词典首页

请输入您要查询的函数:

 

术语 disassociatecurrentthreadfromcallback
释义 DisassociateCurrentThreadFromCallback
语法:
C++
VOID WINAPI DisassociateCurrentThreadFromCallback(
__inout PTP_CALLBACK_INSTANCE pci
);
DisassociateCurrentThreadFromCallback功能
删除与当前正在执行的回调函数和对象回调协会发起的。当前线程将不再依靠作为执行对象的代表回调。
参数
的PCI [中,输出]
阿TP_CALLBACK_INSTANCE结构,它定义的回调实例。结构传递给回调函数。
返回值
这个函数没有返回值。
备注
如果这是最后一个线程执行的,代表该对象的回调,任何线程对象的回调完成等待将被释放。
该线程保持与对象的清理小组,直到线程返回到线程池。这使得DLL的安全关机程序以优秀的同步回调,并着手卸载DLL的代码时,所有的回调已完成。
回调生成对象仍然有效回调期。回调对象可能被重复使用或释放(虽然清理组同步推出仍然需要)。
要编译的应用程序使用此函数,定义为0x0600或更高_WIN32_WINNT。
要求:
client最低支持Vista
server最低支持 Windows Server 2008
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
CallbackMayRunLong
FreeLibraryWhenCallbackReturns
LeaveCriticalSectionWhenCallbackReturns
ReleaseMutexWhenCallbackReturns
ReleaseSemaphoreWhenCallbackReturns
SetEventWhenCallbackReturns
线程池
TrySubmitThreadpoolCallback
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==DisassociateCurrentThreadFromCallback Function
Removes the association between the currently executing callback function and the object that initiated the callback. The current thread will no longer count as executing a callback on behalf of the object.
Syntax
C++
VOID WINAPI DisassociateCurrentThreadFromCallback(
__inout PTP_CALLBACK_INSTANCE pci
);
Parameters
pci [in, out]
A TP_CALLBACK_INSTANCE structure that defines the callback instance. The structure is passed to the callback function.
Return Value
This function does not return a value.
Remarks
If this is the last thread executing a callback on behalf of the object, any threads waiting for the object's callbacks to complete will be released.
The thread remains associated with the object's cleanup group until the thread returns to the thread pool. This lets DLL shutdown routines safely synchronize with outstanding callbacks and proceed with unloading the DLL's code when all callbacks have completed.
The callback-generating object remains valid for the duration of the callback. The callback object may be reused or released (although synchronization with cleanup group release is still required).
To compile an application that uses this function, define _WIN32_WINNT as 0x0600 or higher.
Requirements
Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
CallbackMayRunLong
FreeLibraryWhenCallbackReturns
LeaveCriticalSectionWhenCallbackReturns
ReleaseMutexWhenCallbackReturns
ReleaseSemaphoreWhenCallbackReturns
SetEventWhenCallbackReturns
Thread Pools
TrySubmitThreadpoolCallback
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms682581(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:23:52