PC_WIN_CHAR_TO_OEM
Translates a buffer of ANSI characters into the OEM character set.
Syntax:
call "PC_WIN_CHAR_TO_OEM" using srcbuff
tgtbuff
by value srclen
tgtlen
returning status-code
Parameters:
|
Using call prototype (see Library Routines - Key) |
Picture (32-bit systems) |
srcbuff |
pic x(n). |
pic x(n). |
tgtbuff |
pic x(n). |
pic x(n). |
srclen |
cblt-os-size |
pic x(4) comp-5. |
tgtlen |
cblt-os-size |
pic x(4) comp-5. |
status-code |
See Library Routines - Key |
On Entry:
srcbuff |
Buffer of ANSI characters to be converted. |
srclen |
Length of srcbuff. If this parameter is zero, then srcbuff is a null-terminated
string all of which will be converted. |
tgtlen |
Length of tgtbuff. |
On Exit:
tgtbuff |
Buffer of OEM characters converted from the ANSI input. This parameter must
be at least as long as the number of characters in srcbuff. If srcbuff
and tgtbuff are the same buffer, then the characters will be converted in
place in the buffer. |
Comments:
If status-code is non-zero, then the call failed due to the target buffer
being of insufficient size.
See Also: