Home |
Function rtsmb_cli_ez_set_user_ex Function rtsmb_set_codepage Function rtsmb_set_codepage_OEM Function rtsmb_set_codepage_ANSI Function rtsmb_set_codepage_UTF8 |
Function rtsmb_set_codepagertsmb_set_codepage can be used to supply translation tables for file names to be translated to Unicode before being transmitted to the SMB server. If the function is never called, OEM code page 437 is assumed by default. void rtsmb_set_codepage(int CodePage, const wchar_t * Unicode, const char * UpperCase); ParametersCodePageNumeric name of the code page. UnicodePointer to an array of exactly 128 wchar_t values. This array must contain the Unicode translations of the 8-bit ASCII values in range 128..255. The SMB server will translate ASCII character values above 127 to Unicode with: Unicode[(BYTE) c - 128]. UpperCasePointer to an array of exactly 128 char values. This array must contain the upper case repesentation of each 8-bit ASCII value in range 128..255. If there is no upper case translation for a character, the character itself should appear at its corresponding index. This function is shared among the SMB server and SMB client. For applications using both the SMB server and SMB client, this function changes the code page for the server and the client with a single call. Through rtsmb_set_codepage, the SMB client can support any ASCII code page. Function rtsmb_set_codepage_OEM, and rtsmb_set_codepage_ANSI call rtsmb_set_codepage internally for code pages 437 and 1252, respectively. To use UTF-8 encoding, use function rtsmb_set_codepage_UTF8. Function rtsmb_cli_ez_set_user_ex Function rtsmb_set_codepage_OEM
|