Post a completion packet to a specified I/O completion port.
#include <iocp.h>
boolean_t PostQueuedCompletionStatus (CompletionPort, TransferCount, CompletionKey, Overlapped, )
HANDLE CompletionPort;
DWORD TransferCount, CompletionKey;
LPOVERLAPPED Overlapped;
The PostQueuedCompletionStatus subroutine attempts to post a completion packet to CompletionPort with the values of the completion packet populated by the TransferCount, CompletionKey, and Overlapped parameters.
The PostQueuedCompletionStatus subroutine returns a boolean indicating whether or not a completion packet has been posted.
The PostQueuedCompletionStatus subroutine is part of the I/O Completion Port (IOCP) kernel extension.
Item | Description |
---|---|
CompletionPort | Specifies the completion port that this subroutine will attempt to access. |
TransferCount | Specifies the number of bytes transferred. |
CompletionKey | Specifies the completion key. |
Overlapped | Specifies the overlapped structure. |
Upon successful completion, the PostQueuedCompletionStatus subroutine returns a boolean indicating its success.
Item | Description |
---|---|
EBADF | The CompletionPort parameter was NULL. |
EINVAL | The CompletionPort parameter was invalid. |
c = GetQueuedCompletionStatus (34, 128, 25, struct overlapped);