网站首页  词典首页

请输入您要查询的函数:

 

术语 createthreadpoolio
释义 CreateThreadpoolIo
语法:
C++
PTP_IO WINAPI CreateThreadpoolIo(
__in HANDLE fl,
__in PTP_WIN32_IO_CALLBACK pfnio,
__inout_opt PVOID pv,
__in_opt PTP_CALLBACK_ENVIRON pcbe
);
CreateThreadpoolIo功能
创建一个新的I / O完成对象。
参数
fl [in]
该文件句柄绑定到这个I / O完成对象。
pfnio [in]
回调函数的调用,在每一次重叠I / O操作完成的文件。详情见IoCompletionCallback。
光伏[中,指出,可选]
可选应用程序定义的数据传递给回调函数。
pcbe [中,可选]
阿TP_CALLBACK_ENVIRON结构,它定义的环境中执行回调。该InitializeThreadpoolEnvironment函数返回这个结构。
如果该参数为NULL,回调执行在默认的回调环境。有关更多信息,请参阅InitializeThreadpoolEnvironment。
返回值
如果函数成功,它返回一个TP_IO结构,它定义的I / O对象。
如果函数失败,返回NULL。要检索扩展的错误信息,调用GetLastError。
备注
开始接收重叠I / O完成回调,调用StartThreadpoolIo功能。
要编译的应用程序使用此函数,定义为0x0600或更高_WIN32_WINNT。
要求:
client最低支持Vista
server最低支持 Windows Server 2008
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
CancelThreadpoolIo
CloseThreadpoolIo
StartThreadpoolIo
线程池
WaitForThreadpoolIoCallbacks
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==CreateThreadpoolIo Function
Creates a new I/O completion object.
Syntax
C++
PTP_IO WINAPI CreateThreadpoolIo(
__in HANDLE fl,
__in PTP_WIN32_IO_CALLBACK pfnio,
__inout_opt PVOID pv,
__in_opt PTP_CALLBACK_ENVIRON pcbe
);
Parameters
fl [in]
The file handle to bind to this I/O completion object.
pfnio [in]
The callback function to be called each time an overlapped I/O operation completes on the file. For details, see IoCompletionCallback .
pv [in, out, optional]
Optional application-defined data to pass to the callback function.
pcbe [in, optional]
A TP_CALLBACK_ENVIRON structure that defines the environment in which to execute the callback. The InitializeThreadpoolEnvironment function returns this structure.
If this parameter is NULL, the callback executes in the default callback environment. For more information, see InitializeThreadpoolEnvironment .
Return Value
If the function succeeds, it returns a TP_IO structure that defines the I/O object.
If the function fails, it returns NULL. To retrieve extended error information, call GetLastError .
Remarks
To begin receiving overlapped I/O completion callbacks, call the StartThreadpoolIo function.
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
CancelThreadpoolIo
CloseThreadpoolIo
StartThreadpoolIo
Thread Pools
WaitForThreadpoolIoCallbacks
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms682464(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:31