Export (0) Print
Expand All

OpenMsgQueue

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

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


HANDLE OpenMsgQueue(
  HANDLE hSrcProc,
  HANDLE hMsgQ,
  LPMSGQUEUEOPTIONS lpOptions
);

hSrcProc

[in] Handle to a source process that owns the hMsgQ message queue handle.

hMsgQ

[in] Event 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.

A handle to a message queue indicates success. NULL indicates that 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.

Headermsgqueue.h
Librarycoredll.lib
Windows Embedded CEWindows CE .NET 4.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

ADD
Show:
© 2014 Microsoft