Jump to content

WinQueryQueueInfo: Difference between revisions

From EDM2
Created page with "Check whether HMQ is already defined: ==Syntax== HMQ hmqCurrent = WinQueryQueueInfo( HMQ_CURRENT, &mqinfo, sizeof( MQINFO ) ); Category:Win"
 
Ak120 (talk | contribs)
mNo edit summary
 
Line 1: Line 1:
Check whether HMQ is already defined:
Checks whether HMQ is already defined


==Syntax==
==Syntax==
    HMQ hmqCurrent = WinQueryQueueInfo( HMQ_CURRENT, &mqinfo, sizeof( MQINFO ) );
WinQueryQueueInfo( hmq, pmqiMqinfo, cbCopied )
 
==Parameter==
;hmq ([[HMQ]]) - input:Queue handle.
:It must be created by a previous call to [[WinCreateMsgQueue]] or HMQ_CURRENT.
;pmqiMqinfo (P[[MQINFO]]) - output:Message queue information structure to contain the queue information.
;cbCopied (ULONG) - input:Size of message queue information structure that is provided (in bytes).
:Specifies the maximum number of bytes to be copied into the pmqiMqinfo parameter. This should be the size of an MQINFO structure.
;rc (BOOL) - returns:Success indicator.
::TRUE - Successful completion
::FALSE - Error occurred.


[[Category:Win]]
[[Category:Win]]

Latest revision as of 13:57, 13 December 2019

Checks whether HMQ is already defined

Syntax

WinQueryQueueInfo( hmq, pmqiMqinfo, cbCopied )

Parameter

hmq (HMQ) - input
Queue handle.
It must be created by a previous call to WinCreateMsgQueue or HMQ_CURRENT.
pmqiMqinfo (PMQINFO) - output
Message queue information structure to contain the queue information.
cbCopied (ULONG) - input
Size of message queue information structure that is provided (in bytes).
Specifies the maximum number of bytes to be copied into the pmqiMqinfo parameter. This should be the size of an MQINFO structure.
rc (BOOL) - returns
Success indicator.
TRUE - Successful completion
FALSE - Error occurred.