OpenMsgQueue (Windows CE 5.0)

Send Feedback

This function opens a handle to an existing message queue based on a message queue handle.



  • hSrcProc
    [in] Handle to a source process that owns the hMsgQ message queue handle.
  • hMsgQ
    [in] Handle to a message queue returned by the CreateMsgQueue function.
  • lpOptions
    [in] Pointer to an MSGQUEUEOPTIONS structure that sets the properties of the message queue.

Return Values

Returns a handle to a message queue, or returns NULL if the queue could not be opened.


Use the CloseMsgQueue function to close the handle returned by the OpenMsgQueue function. When called, the OpenMsgQueue function checks only the values of the dwSize and **bReadAccess****members of the lpOptions parameter.


OS Versions: Windows CE .NET 4.0 and later.
Header: Msgqueue.h.
Link Library: Coredll.lib.

See Also

Message Queue Point-to-Point | CloseMsgQueue | CreateMsgQueue | GetMsgQueueInfo | MSGQUEUEINFO | MSGQUEUEOPTIONS | ReadMsgQueue | WriteMsgQueue

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.