NWUSGetCodePage

Returns the codepage and country of the standard converter

Local Servers:nonblocking
Remote Servers:N/A
NetWare Server:4.x, 5.x, 6.x
Platform:NLM, Windows NT, Windows95, Windows 98
Library:Cross-Platform Localization (LOC*.*)
Service:Unicode

Syntax

   #include <nunicode.h> 
    
   N_EXTERN_LIBRARY(nint) NWUSGetCodePage  ( 
      pnuint   pCodePage,  
      pnuint   pCountry);
   

Pascal Syntax

   uses netwin32 
    
   Function NWUSGetCodePage 
     (pCodePage : pnuint;
     pCountry : pnuint              
   ): nint;
   

Parameters

pCodePage
(OUT) Points to the local code page used for the Unicode/byte converter.
pCountry
(OUT) Points to the local country code.

Return Values

NWUSGetCodePage always returns zero.

Remarks

NWUSGetCodePage returns the codepage of the standard byte/Unicode converter. It also returns the country ID of the system. If NWUSStandardUnicodeInit has not yet been called, NWUSGetCodePage returns the codepage and country ID that will be used when NWUSStandardUnicodeInit is called.

If an error occurs when NWUSStandardUnicodeInit is called, NWUSGetCodePage might be useful for printing an error message to tell the user which converters are needed.

See esgetcp.c for sample code.

See Also

NWUSStandardUnicodeInit