NlsDllCodePageTranslation function
Used to get code page information or do conversion, depending on flag settings.
Syntax
DWORD NlsDllCodePageTranslation( _In_ DWORD CodePage, _In_ DWORD dwFlags, _Inout_ LPSTR lpMultiByteStr, _In_ int cchMultiByte, _Inout_ LPWSTR lpWideCharStr, _In_ int cchWideChar, _In_ LPCPINFO lpCPInfo );
Parameters
- CodePage [in]
-
The value of the code page. The code page value should be 54936. Otherwise, the function returns an error code.
- dwFlags [in]
-
Flags specifying the translation. Possible values are defined in the following table.
- lpMultiByteStr [in, out]
-
Pointer to a buffer that contains multibyte GB18030 characters. This can be a source buffer or target buffer, depending on the value of dwFlags.
- cchMultiByte [in]
-
Byte count of the multibyte buffer.
- lpWideCharStr [in, out]
-
Pointer to a buffer that contains Unicode characters. This can be a source buffer or target buffer, depending on the value of dwFlags.
- cchWideChar [in]
-
Character count of the Unicode buffer.
- lpCPInfo [in]
-
Pointer to a CPINFO structure.
Return value
Returns 1 if successful. If the function does not succeed, it returns 0. To get extended error information, the application can call GetLastError, which can return one of the following error codes:
- ERROR_INVALID_PARAMETER. Any of the parameter values was invalid.
Requirements
|
Minimum supported client |
Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
Header |
|
|
DLL |
|
See also