LPOVERLAPPED_COMPLETION_ROUTINE typedef

LPOVERLAPPED_COMPLETION_ROUTINE = Void Function(DWORD dwErrorCode, DWORD dwNumberOfBytesTransfered, OVERLAPPED lpOverlapped)

Application-defined callback function used with the ReadFileEx and WriteFileEx functions. It is called when the asynchronous input and output (I/O) operation is completed or canceled and the calling thread is in an alertable state (by using the SleepEx, MsgWaitForMultipleObjectsEx, WaitForSingleObjectEx, or WaitForMultipleObjectsEx function with the fAlertable parameter set to TRUE).

Implementation

typedef LPOVERLAPPED_COMPLETION_ROUTINE = Void Function(DWORD dwErrorCode,
    DWORD dwNumberOfBytesTransfered, OVERLAPPED lpOverlapped);