Jump to content

WinQueryCp: Difference between revisions

From EDM2
Created page with "This function returns the queue code page for the specified message queue. ==Syntax==  WinQueryCp(hmq) ==Parameters== ;hmq (HMQ) - Input : Message queue. ==Returns== ;ulCodePage (ULONG) - returns :Code page. :;0 ::Error occurred :;Other ::Queue code page for the specified message queue. ==Errors== Possible returns from WinGetLastError: * PMERR_INVALID_HMQ (0x1002) An invalid message-queue handle was specified. ==Example Code== <PRE> #define INCL_WINCOUN..."
 
 
Line 33: Line 33:
* [[WinCpTranslateChar]]
* [[WinCpTranslateChar]]
* [[WinCpTranslateString]]
* [[WinCpTranslateString]]
* WinQueryCp
* [[WinQueryCpList]]
* [[WinQueryCpList]]
* [[WinSetCp]]
* [[WinSetCp]]
[[Category:Win]]
[[Category:Win]]

Latest revision as of 14:33, 9 April 2025

This function returns the queue code page for the specified message queue.

Syntax

 WinQueryCp(hmq)

Parameters

hmq (HMQ) - Input
Message queue.

Returns

ulCodePage (ULONG) - returns
Code page.
0
Error occurred
Other
Queue code page for the specified message queue.

Errors

Possible returns from WinGetLastError:

  • PMERR_INVALID_HMQ (0x1002) An invalid message-queue handle was specified.

Example Code

#define INCL_WINCOUNTRY
#include <OS2.H>

HMQ hmq;
ULONG  cp;

cp = WinQueryCp(hmq);

Related Functions