Using Win32 functions in Visual FoxPro Image Gallery
Message and Message Queue
..msdn
BroadcastSystemMessage
GetQueueStatus
MQCloseQueue
MQDeleteQueue
MQHandleToFormatName
MQOpenQueue
MQPathNameToFormatName
MQPurgeQueue
PeekMessage
PostMessage
PostQuitMessage
SendMessage
Code examples:
MQHandleToFormatName
..msdn    Add comment     W32 Constants      Translate this page
Returns a format name for the queue or subqueue based on its handle.
Code examples:
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.
Usage:
nBufsize = 512
cBuffer = REPLICATE(CHR(0), nBufsize)

IF MQHandleToFormatName(hQueue, @cBuffer, @nBufsize) = 0
    ? STRTRAN(cBuffer, CHR(0), "")
ENDIF

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

See also: MQPathNameToFormatName, MQOpenQueue
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2015-06-30 14:04:36
Modified: 2015-06-30 14:08:14
Visited in last 7 days: 10
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.196.72.162)
11 sec.Function: 'SetDlgItemInt'
25 sec.Function: 'GetUserDefaultLangID'
38 sec.Function: 'AllocConsole'
51 sec.Function: 'GetNumberOfInterfaces'
1.07 min.Function: 'OpenClipboard'
1.28 min.Function: 'GdipGetImageDecoders'
1.5 min.Function: 'RtlDecompressBuffer'
1.7 min.Function: 'FillMemory'
1.92 min.Function: 'CeCloseHandle'
2.13 min.Function: 'GdipFillRectangle'
Google
Advertise here!