Rocket® Net Express™ (formerly a product of Micro Focus or formerly a product of Open Text) documentation, created before Rocket Software acquired certain products from OpenText, may include outdated references to "Micro Focus" or "OpenText", both of which are trademarks of OpenText or its affiliates. Rocket Software is not affiliated with Micro Focus or OpenText and has since rebranded these products as Rocket® products. You may also encounter outdated links in this documentation. If you do, please contact Rocket Support (support@rocketsoftware.com) for assistance.
PC_WIN_OEM_TO_CHAR
Translates a buffer of OEM characters into the ANSI character set.
Syntax:
call "PC_WIN_OEM_TO_CHAR" using srcbuff tgtbuff by value srclen tgtlen returning status-code
Parameters:
| Using call prototype (see 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 Key | |
On Entry:
| srcbuff | Buffer of OEM 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 ANSI characters converted from the OEM 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.
Related Topics