Partager via


CloseMsgQueue

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This function closes a currently open message queue.

Syntax

BOOL CloseMsgQueue(
  HANDLE hMsgQ
);

Parameters

  • hMsgQ
    [in] Handle to an open message queue.

Return Value

TRUE indicates success. FALSE indicates failure. To obtain extended error information, call the GetLastError function.

Requirements

Header msgqueue.h
Library coredll.lib
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

Message Queue Point-to-Point Functions
CreateMsgQueue
GetMsgQueueInfo
MSGQUEUEINFO
MSGQUEUEOPTIONS
OpenMsgQueue
ReadMsgQueue
WriteMsgQueue

Other Resources

Message Queue Point-to-Point