The MQGetOverlappedResult function retrieves the Message Queuing success or error code from the OVERLAPPED structure used to retrieve a message asynchronously.
HRESULT APIENTRY MQGetOverlappedResult( LPOVERLAPPED lpOverlapped );
[in] The OVERLAPPED structure used to retrieve the message.
There are not enough resources to complete operation (for example, not enough memory). Operation failed.
No message was received within the time-out period specified by dwTimeout in the preceding call to MQReceiveMessage.
Call this function after the event is signaled or after you get a completion port notification. The function retrieves the success or error code from the Internal member of the OVERLAPPED structure.
The following code example is included in Using Message Queuing.
|For an example of||See|
Retrieving the Message Queuing success or error code from an OVERLAPPED structure after receiving a completion port notification
Windows NT/2000/XP: Included in Windows 2000 and later.
Windows 95/98/Me: Unsupported.
Header: Declared in Mq.h.
Library: Use Mqrt.lib.