术语 | unregisterwait |
释义 | UnregisterWait 语法: C++ BOOL WINAPI UnregisterWait( __in HANDLE WaitHandle ); UnregisterWait功能 取消注册等操作功能的RegisterWaitForSingleObject发出。 要使用一个完成事件,请调用UnregisterWaitEx功能。 参数 WaitHandle中 [in] 在等待处理。这种处理是由RegisterWaitForSingleObject函数返回。 返回值 如果函数成功,返回值为非零。 如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。 备注 如果与计时器相关的任何回调函数还没有完成,UnregisterWait被调用时,UnregisterWait注销的回调函数等,并与ERROR_IO_PENDING错误代码失败。错误代码并不表明函数失败,函数不需要再次调用。如果您的代码需要一个错误代码设置只有在注销操作已失败,请UnregisterWaitEx代替。 要编译的应用程序使用此功能,定义_WIN32_WINNT为0x0500或更高版本。有关详细信息,请参阅使用Windows头。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWinbase.h(头文件:winuser.h) LibraryKernel32.lib DLLKernel32.dll 参见 RegisterWaitForSingleObject 同步功能 线程池 UnregisterWaitEx 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年8月27日 ==英文原文==UnregisterWait Function Cancels a registered wait operation issued by the RegisterWaitForSingleObject function. To use a completion event, call the UnregisterWaitEx function. Syntax C++ BOOL WINAPI UnregisterWait( __in HANDLE WaitHandle ); Parameters WaitHandle [in] The wait handle. This handle is returned by the RegisterWaitForSingleObject function. Return Value If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError . Remarks If any callback functions associated with the timer have not completed when UnregisterWait is called, UnregisterWait unregisters the wait on the callback functions and fails with the ERROR_IO_PENDING error code. The error code does not indicate that the function has failed, and the function does not need to be called again. If your code requires an error code to set only when the unregister operation has failed, call UnregisterWaitEx instead. To compile an application that uses this function, define _WIN32_WINNT as 0x0500 or later. For more information, see Using the Windows Headers . Requirements Minimum supported clientWindows 2000 Professional Minimum supported serverWindows 2000 Server HeaderWinbase.h (include Windows.h) LibraryKernel32.lib DLLKernel32.dll See Also RegisterWaitForSingleObject Synchronization Functions Thread Pooling UnregisterWaitEx Send comments about this topic to Microsoft Build date: 8/27/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/ms686870(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。