LPOVERLAPPED_COMPLETION_ROUTINE Function Pointer

Points to a function that notifies the host when an overlapped (that is, asynchronous) I/O to a device has completed.

This function pointer has been deprecated in the .NET Framework 4.

typedef VOID (*LPOVERLAPPED_COMPLETION_ROUTINE) (
    [in] DWORD  dwErrorCode,
    [in] DWORD  dwNumberOfBytesTransfered,
    [in] LPVOID lpOverlapped
);

dwErrorCode

[in] A value that is an error code if the device has been closed; otherwise, this value is zero.

Closing a device causes all pending I/O to the device to be completed immediately.

dwNumberOfBytesTransfered

[in] The number of bytes transferred by the I/O operation.

lpOverlapped

[in] A pointer to a structure that contains information to be used to complete the I/O request.

The function to which LPOVERLAPPED_COMPLETION_ROUTINE points is a callback function and must be implemented by the writer of the hosting application. The callback function allows the host to process the completed I/O request.

Platforms: See .NET Framework System Requirements.

Header: MSCorEE.h

Library: MSCorWks.dll

.NET Framework Versions: 4.5, 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft