Jump to content

WinQueryCp

From EDM2
Revision as of 14:33, 9 April 2025 by Martini (talk | contribs) (Related Functions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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