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.

90 lines
2.5 KiB

  1. /*++
  2. Copyright (c) 1988-1999 Microsoft Corporation
  3. Module Name:
  4. dir.h
  5. Abstract:
  6. Definitions for DIR command
  7. --*/
  8. /*
  9. The following are definitions of the debugging group and level bits
  10. for the code in this file.
  11. */
  12. #define ICGRP 0x0040 /* Informational commands group */
  13. #define DILVL 0x0001 /* Directory level */
  14. #define FULLPATHSWITCH 0x00000001
  15. #define NEWFORMATSWITCH 0x00000002
  16. #define WIDEFORMATSWITCH 0x00000004
  17. #define PAGEDOUTPUTSWITCH 0x00000008
  18. #define RECURSESWITCH 0x00000010
  19. #define HELPSWITCH 0x00000020
  20. #define BAREFORMATSWITCH 0x00000040
  21. #define LOWERCASEFORMATSWITCH 0x00000080
  22. #define FATFORMAT 0x00000100
  23. #define SORTDOWNFORMATSWITCH 0x00000200
  24. #define SHORTFORMATSWITCH 0x00000400
  25. #define PROMPTUSERSWITCH 0x00000800
  26. #define FORCEDELSWITCH 0x00001000
  27. #define QUIETSWITCH 0x00002000
  28. #define SORTSWITCH 0x00004000
  29. #define THOUSANDSEPSWITCH 0x00008000
  30. #define DELPROCESSEARLY 0x00010000
  31. #define OLDFORMATSWITCH 0x00020000
  32. #define DISPLAYOWNER 0x00040000
  33. #define YEAR2000 0x00080000
  34. #define HEADERDISPLAYED 0x80000000
  35. #define HIDDENATTRIB 1
  36. #define SYSTEMATTRIB 2
  37. #define DIRECTORYATTRIB 4
  38. #define ARCHIVEATTRIB 8
  39. #define READONLYATTRIB 16
  40. #define LAST_WRITE_TIME 0
  41. #define CREATE_TIME 1
  42. #define LAST_ACCESS_TIME 2
  43. //
  44. // Each of these buffers are aligned on DWORD boundaries to allow
  45. // for direct pointers into buffers where each of the entries will
  46. // vary on a byte bases. So to make it simple an extra DWORD is put into
  47. // each allocation increment to allow for max. that can be adjusted.
  48. //
  49. //
  50. // 52 is based upon sizeof(FF) - MAX_PATH + 15 (average size of file name)
  51. // + 1 to bring it up to a Quad word alignment for fun.
  52. //
  53. #define CBDIRINC 1024
  54. #define CBFILEINC 2048
  55. #define NAMESORT TEXT('N')
  56. #define EXTENSIONSORT TEXT('E')
  57. #define DATETIMESORT TEXT('D')
  58. #define SIZESORT TEXT('S')
  59. #define DIRFIRSTSORT TEXT('G')
  60. #define DESCENDING 1
  61. //
  62. // This must be 0 since 0 is the default initialization
  63. //
  64. #define ASCENDING 0
  65. #define ESUCCESS 0
  66. int _cdecl CmpName( const void *, const void *);
  67. int _cdecl CmpExt ( const void *, const void *);
  68. int _cdecl CmpTime( const void *, const void *);
  69. int _cdecl CmpSize( const void *, const void *);
  70. int _cdecl CmpType( const void *, const void *);