gb18030.h 790 B

1234567891011121314151617
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the mingw-w64 runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5. */
  6. #ifndef _GB18030_H_
  7. #define _GB18030_H_
  8. #define NLS_CP_CPINFO 0x10000000
  9. #define NLS_CP_MBTOWC 0x40000000
  10. #define NLS_CP_WCTOMB 0x80000000
  11. STDAPI_(DWORD) NlsDllCodePageTranslation(DWORD CodePage,DWORD dwFlags,LPSTR lpMultiByteStr,int cchMultiByte,LPWSTR lpWideCharStr,int cchWideChar,LPCPINFO lpCPInfo);
  12. STDAPI_(DWORD) BytesToUnicode(BYTE *lpMultiByteStr,UINT cchMultiByte,UINT *pcchLeftOverBytes,LPWSTR lpWideCharStr,UINT cchWideChar);
  13. STDAPI_(DWORD) UnicodeToBytes(LPWSTR lpWideCharStr,UINT cchWideChar,LPSTR lpMultiByteStr,UINT cchMultiByte);
  14. #endif /* _GB18030_H_ */