Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 1.2 KB

File metadata and controls

56 lines (38 loc) · 1.2 KB

Home

Function name : MQHandleToFormatName

Group: Message and Message Queue - Library: mqrt


Returns a format name for the queue or subqueue based on its handle.


Declaration:

HRESULT APIENTRY MQHandleToFormatName(
  QUEUEHANDLE hQueue,
  LPWSTR lpwcsFormatName,
  LPDWORD lpdwCount
);  

FoxPro declaration:

DECLARE INTEGER MQHandleToFormatName IN mqrt;
	INTEGER hQueue,;
	STRING @lpwcsFormatName,;
	INTEGER @lpdwCount  

Parameters:

hQueue [in] Handle to the queue or subqueue.

lpwcsFormatName [out] Buffer to receive the format name for the queue.

lpdwCount [in, out] On input, specifies the length of the lpwcsFormatName buffer (in Unicode characters).


Return value:

MQ_OK (0) indicates success.


Comments:

On output, lpdwCount indicates the length of the returned format name string, including the null-terminating character.

See also: MQPathNameToFormatName, MQOpenQueue.