Source code of Windows XP (NT5)
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.

62 lines
1.8 KiB

  1. /***************************************************************
  2. *
  3. * UCONVERT - Unicode File conversion
  4. *
  5. *
  6. * Author: Asmus Freytag
  7. *
  8. * Copyright (C) 1991, Microsoft Corporation
  9. *-----------------------------------------------------
  10. * header file for Uconvert */
  11. #ifdef UNICODE
  12. #define BUFFER_TOO_SMALL 0x0005
  13. #define ISUNICODE_ASCII16 0x0001
  14. #define ISUNICODE_REVERSE_ASCII16 0x0010
  15. #define ISUNICODE_STATISTICS 0x0002
  16. #define ISUNICODE_REVERSE_STATISTICS 0x0020
  17. #define ISUNICODE_CONTROLS 0x0004
  18. #define ISUNICODE_REVERSE_CONTROLS 0x0040
  19. #define ISUNICODE_SIGNATURE 0x0008
  20. #define ISUNICODE_REVERSE_SIGNATURE 0x0080
  21. #define ISUNICODE_ILLEGAL_CHARS 0x0100
  22. #define ISUNICODE_ODD_LENGTH 0x0200
  23. #define ISUNICODE_NULL_BYTES 0x1000
  24. #define ISUNICODE_UNICODE_MASK 0x000F
  25. #define ISUNICODE_REVERSE_MASK 0x00F0
  26. #define ISUNICODE_NOT_UNICODE_MASK 0x0F00
  27. #define ISUNICODE_NOT_ASCII_MASK 0xF000
  28. #define UNICODE_FFFF 0xFFFF
  29. #define REVERSE_BYTE_ORDER_MARK 0xFFFE
  30. #define BYTE_ORDER_MARK 0xFEFF
  31. #define PARAGRAPH_SEPARATOR 0x2029
  32. #define LINE_SEPARATOR 0x2028
  33. #define UNICODE_TAB 0x0009
  34. #define UNICODE_LF 0x000A
  35. #define UNICODE_CR 0x000D
  36. #define UNICODE_SPACE 0x0020
  37. #define UNICODE_CJK_SPACE 0x3000
  38. #define UNICODE_R_TAB 0x0900
  39. #define UNICODE_R_LF 0x0A00
  40. #define UNICODE_R_CR 0x0D00
  41. #define UNICODE_R_SPACE 0x2000
  42. #define UNICODE_R_CJK_SPACE 0x0030 /* Ambiguous - same as ASCII '0' */
  43. #define ASCII_CRLF 0x0A0D
  44. BOOL IsUnicode (LPTSTR lpBuff, int iSize, LPINT lpiResult);
  45. #endif