网站首页  词典首页

请输入您要查询的函数:

 

术语 getthreadiopendingflag
释义 GetThreadIOPendingFlag
语法:
C++
BOOL WINAPI GetThreadIOPendingFlag(
__in HANDLE hThread,
__inout PBOOL lpIOIsPending
);
GetThreadIOPendingFlag功能
确定是否有任何指定的线程I / O请求悬而未决。
参数
hThread [in]
一个句柄,问题线程。这一定是处理与THREAD_QUERY_INFORMATION访问权限创建。有关更多信息,请参见线程安全和访问权限。
lpIOIsPending [ in , out ]
一个变量的函数设置为TRUE,如果指定的线程有一个或多个I / O请求挂起,或者指针,否则返回FALSE。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
Keep in mind that the I/O status of the specified thread can change rapidly, and may already have changed by the time the function returns.例如,一个挂起的I / O操作可以完成的时间之间的函数设置lpIOIsPending和时间返回。
要编译的应用程序使用此功能,定义_WIN32_WINNT为0x0501或更高版本。有关详细信息,请参阅使用Windows头。
要求:
最低支持clientWindows SP1的Vista中,Windows XP的
最低支持serverWindows服务器2003
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
进程和线程函数
主题
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==GetThreadIOPendingFlag Function
Determines whether a specified thread has any I/O requests pending.
Syntax
C++
BOOL WINAPI GetThreadIOPendingFlag(
__in HANDLE hThread,
__inout PBOOL lpIOIsPending
);
Parameters
hThread [in]
A handle to the thread in question. This handle must have been created with the THREAD_QUERY_INFORMATION access right. For more information, see Thread Security and Access Rights .
lpIOIsPending [in, out]
A pointer to a variable which the function sets to TRUE if the specified thread has one or more I/O requests pending, or to FALSE otherwise.
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
Keep in mind that the I/O status of the specified thread can change rapidly, and may already have changed by the time the function returns. For example, a pending I/O operation could complete between the time the function sets lpIOIsPending and the time it returns.
To compile an application that uses this function, define _WIN32_WINNT as 0x0501 or later. For more information, see Using the Windows Headers .
Requirements
Minimum supported clientWindows Vista, Windows XP with SP1
Minimum supported serverWindows Server 2003
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
Process and Thread Functions
Threads
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms683234(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 11:23:20