Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Used to get code page information or do conversion, depending on flag settings.
Syntax
DWORD NlsDllCodePageTranslation(
[in] DWORD CodePage,
[in] DWORD dwFlags,
[in, out] LPSTR lpMultiByteStr,
[in] int cchMultiByte,
[in, out] LPWSTR lpWideCharStr,
[in] int cchWideChar,
[in] LPCPINFO lpCPInfo
);
Parameters
[in] CodePage
The value of the code page. The code page value should be 54936. Otherwise, the function returns an error code.
[in] dwFlags
Flags specifying the translation. Possible values are defined in the following table.
[in, out] lpMultiByteStr
Pointer to a buffer that contains multibyte GB18030 characters. This can be a source buffer or target buffer, depending on the value of dwFlags.
[in] cchMultiByte
Byte count of the multibyte buffer.
[in, out] lpWideCharStr
Pointer to a buffer that contains Unicode characters. This can be a source buffer or target buffer, depending on the value of dwFlags.
[in] cchWideChar
Character count of the Unicode buffer.
[in] lpCPInfo
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
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | gb18030.h |
DLL | C_g18030.dll |