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.

68 lines
1.4 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. rcunicod.h
  5. Abstract:
  6. This is the header file for rcpp 16-bit unicode support. It contains
  7. the translatation table for codepage 1252. This was taken from the
  8. nls1252.txt file.
  9. Author:
  10. David J. Marsyla (t-davema) 25-Aug-1991
  11. Revision History:
  12. --*/
  13. #ifndef __RCUNICOD
  14. #define __RCUNICOD
  15. #define IN
  16. #define OUT
  17. #define DFT_TEST_SIZE 10 // The number of words to test to get
  18. // an accurate determination of file type.
  19. //
  20. // The following may be retruned from DetermineFileType ().
  21. //
  22. #define DFT_FILE_IS_UNKNOWN 0 // File type not yet determined.
  23. #define DFT_FILE_IS_8_BIT 1 // File is an 8-bit ascii file.
  24. #define DFT_FILE_IS_16_BIT 2 // File is standard 16-bit unicode file.
  25. #define DFT_FILE_IS_16_BIT_REV 3 // File is reversed 16-bit unicode file.
  26. //
  27. // This function can be used to determine the format of a disk file.
  28. //
  29. INT
  30. DetermineFileType (
  31. IN FILE *fpInputFile
  32. );
  33. //
  34. // The following may be returned from DetermnineSysEndianType ().
  35. //
  36. #define DSE_SYS_LITTLE_ENDIAN 1 // Return values from determine system
  37. #define DSE_SYS_BIG_ENDIAN 2 // endian type.
  38. //
  39. // This function will return the endian type of the current system.
  40. //
  41. INT
  42. DetermineSysEndianType (
  43. VOID
  44. );
  45. #endif // __RCUNICOD