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.

63 lines
2.0 KiB

  1. /*** creatfil.h- Public defines and structure definitions for create file
  2. *
  3. *
  4. * Title:
  5. * Create File include file used by all
  6. *
  7. * Copyright (c) 1993, Microsoft Corporation.
  8. * HonWah Chan.
  9. *
  10. *
  11. * Modification History:
  12. * 93.05.17 - HonWah Chan -- Created
  13. *
  14. */
  15. /* * * * * * * * * N T C o m m o n D e f i n e s * * * * * * * * * */
  16. #define RC NTSTATUS
  17. /* * * * * * * * C o m m o n M i s c . D e f i n e s * * * * * * * */
  18. #define STATIC // functions can easily become non-static by
  19. // changing this define to "". Remember that
  20. // static functions are not visiable by the
  21. // kernel debugger.
  22. #define RESERVED_NULL NULL // Reserved null fields
  23. // User defined error codes
  24. //
  25. #define INPUTARGS_ERR 0x7FFFFF02L // Error code for invalid number of
  26. // input arguments
  27. #define FILEARG_ERR 0x7FFFFF03L // Error code for invalid input file
  28. // argument
  29. #define FILESIZE_ERR 0x7FFFFF04L // Error code for file size argument
  30. #define INSUFMEM_ERR 0x7FFFFF05L // Error code indicating memory can't
  31. // be allocated by MALLOC/REALLOC
  32. #define FSEEK_ERR 0x7FFFFF07L // Error code indicating fseek()
  33. // failure
  34. #define FCLOSE_ERR 0x7FFFFF08L // Error code indicating fclose()
  35. // failure
  36. #define FWRITE_ERR 0x7FFFFF09L // Error code indicating WriteFile()
  37. // failure
  38. #define FOPEN_ERR 0x7FFFFF0AL // Error code indicating fopen()
  39. // failure
  40. // Maximu length defines
  41. //
  42. #define FNAME_LEN 256 // Maximum file name langth
  43. #define LINE_LEN 128 // Maximum input line length
  44. #define ERR_NOFILE 0xFFFFFFFFL // Failure from CreateFile
  45. // String (EXEs & KEYs) constants
  46. //
  47. #define CREATFIL_EXE "CREATFIL.EXE" // CREATFIL's binary name
  48.