Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.1 KiB

  1. #ifndef _FECHRCNV_H_
  2. #define _FECHRCNV_H_
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. // Code Page
  7. #define CP_JAPAN 932
  8. #define CP_PRC 936
  9. #define CP_KOREA 949
  10. #define CP_TAIWAN 950
  11. // Code Definition
  12. #define ESC 0x1b
  13. #define SO 0x0e
  14. #define SI 0x0f
  15. #define ISO2022_IN_CHAR '$'
  16. #define ISO2022_IN_JP_CHAR1 'B'
  17. #define ISO2022_IN_JP_CHAR2 '@'
  18. #define ISO2022_IN_JP_CHAR3_1 '('
  19. #define ISO2022_IN_JP_CHAR3_2 'D'
  20. #define ISO2022_IN_KR_CHAR_1 ')'
  21. #define ISO2022_IN_KR_CHAR_2 'C'
  22. #define ISO2022_OUT_CHAR '('
  23. #define ISO2022_OUT_JP_CHAR1 'B'
  24. #define ISO2022_OUT_JP_CHAR2 'J'
  25. #define ISO2022_OUT_JP_CHAR3 'I' /* esc ( I - Kana mode */
  26. #define ISO2022_OUT_JP_CHAR4 'H' /* treated as ESC ( J */
  27. // Minimum length to determine if the string is EUC
  28. #define MIN_JPN_DETECTLEN 48
  29. typedef LPVOID HCINS;
  30. typedef HCINS FAR* LPHCINS;
  31. #ifdef __cplusplus
  32. }
  33. #endif
  34. #endif // _FECHRCNV_H_