This function returns the information for the specified queue.
#define INCL_WINMESSAGEMGR /* Or use INCL_WIN, INCL_PM, Also in COMMON section */ #include <os2.h> HMQ hmq; /* Queue handle. */ PMQINFO pmqiMqinfo; /* Message queue information structure to contain the queue information. */ ULONG cbCopied; /* Size of message queue information structure that is provided (in bytes). */ BOOL rc; /* Success indicator. */ rc = WinQueryQueueInfo(hmq, pmqiMqinfo, cbCopied);