术语 | setfilecompletionnotificationmodes |
释义 | SetFileCompletionNotificationModes 语法: C++ BOOL WINAPI SetFileCompletionNotificationModes( __in HANDLE FileHandle, __in UCHAR Flags ); SetFileCompletionNotificationModes功能 设置一个文件处理的通知方式,让您可以指定如何完成通知指定的文件工作。 参数 文件句柄 [in] 阿处理该文件。 标志 [in] 该模式被设置。一个或多个模式,可设置在同一时间,但模式后,已设置的文件句柄,它不能被删除。 ValueMeaning FILE_SKIP_COMPLETION_PORT_ON_SUCCESS 0x1If以下三个条件为真时,I / O管理器队列中没有完成进入端口时,它通常将这样做。条件是: 阿完成端口关联的文件句柄。 该文件是打开了异步I / O 请求立即返回成功,但没有退还ERROR_PENDING。 FILE_SKIP_SET_EVENT_ON_HANDLE 0x2The I / O管理不设置为文件对象的事件,如果有一个成功的代码,或错误的请求返回返回的ERROR_PENDING和被称为函数不是同步功能。 如果一个明确的事件的请求提供,但仍然信号。 返回值 如果成功则返回非零或否则为0。 为了获得更多错误信息,调用GetLastError。 备注 要编译的应用程序使用此函数,定义为0x0501或更高WIN32_WINNT宏。有关详细信息,请参阅使用Windows头。 要求: client最低支持Vista server最低支持 Windows Server 2008 HeaderWinBase.h LibraryKernel32.lib DLLKernel32.dll 参见 文件管理函数 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年9月3日 ==英文原文==SetFileCompletionNotificationModes Function Sets the notification modes for a file handle, allowing you to specify how completion notifications work for the specified file. Syntax C++ BOOL WINAPI SetFileCompletionNotificationModes( __in HANDLE FileHandle, __in UCHAR Flags ); Parameters FileHandle [in] A handle to the file. Flags [in] The modes to be set. One or more modes can be set at the same time; however, after a mode has been set for a file handle, it cannot be removed. ValueMeaning FILE_SKIP_COMPLETION_PORT_ON_SUCCESS 0x1If the following three conditions are true, the I/O Manager does not queue a completion entry to the port, when it would ordinarily do so. The conditions are: A completion port is associated with the file handle. The file is opened for asynchronous I/O. A request returns success immediately without returning ERROR_PENDING. FILE_SKIP_SET_EVENT_ON_HANDLE 0x2The I/O Manager does not set the event for the file object if a request returns with a success code, or the error returned is ERROR_PENDING and the function that is called is not a synchronous function. If an explicit event is provided for the request, it is still signaled. Return Value Returns nonzero if successful or zero otherwise. To get extended error information, call GetLastError . Remarks To compile an application that uses this function, define the WIN32_WINNT macro as 0x0501 or later. For more information, see Using the Windows Headers . Requirements Minimum supported clientWindows Vista Minimum supported serverWindows Server 2008 HeaderWinBase.h LibraryKernel32.lib DLLKernel32.dll See Also File Management Functions Send comments about this topic to Microsoft Build date: 9/3/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/aa365538(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。