GetOverlappedResult |
VB声明 |
|
Declare Function GetOverlappedResult Lib "kernel32" Alias "GetOverlappedResult" (ByVal hFile As Long, lpOverlapped As OVERLAPPED, lpNumberOfBytesTransferred As Long, ByVal bWait As Long) As Long |
|
说明 |
|
判断一个重叠操作当前的状态 |
|
返回值 |
|
Long,非零表示成功,零表示失败。会设置GetLastError。如bWait为FALSE,而且异步操作仍在执行,则函数回返回零,而GetLastError会设置成ERROR_IO_INCOMPLETE |
|
参数表 |
|
参数 |
类型及说明 |
hFile |
Long,指定一个文件、管道或通信设备的句柄 |
lpOverlapped |
OVERLAPPED,为欲检查的I/O操作指定的一个结构 |
lpNumberOfBytesTransferred |
Long,用于容纳传输字节数量的一个变量 |
bWait |
Long,如果为TRUE,就一直等到异步操作结束才返回。FALSE表示立即返回 |
Top |