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.

105 lines
3.0 KiB

  1. #define VFNLOG_DELETE 0
  2. #define VFNLOG_CREATE_DIR 1
  3. #define VFNLOG_DELETE_DIR 2
  4. #define VFNLOG_CHECK_DIR 3
  5. #define VFNLOG_GET_ATTRB 4
  6. #define VFNLOG_SET_ATTRB 5
  7. #define VFNLOG_FLUSH 6
  8. #define VFNLOG_GETDISKINFO 7
  9. #define VFNLOG_GETDISKPARAMS 8
  10. #define VFNLOG_OPEN 9
  11. #define VFNLOG_RENAME 10
  12. #define VFNLOG_SRCHFRST 11
  13. #define VFNLOG_SRCHNEXT 12
  14. #define VFNLOG_QUERY0 13
  15. #define VFNLOG_QUERY1 14
  16. #define VFNLOG_QUERY2 15
  17. #define VFNLOG_CONNECT 16
  18. #define VFNLOG_DISCONNECT 17
  19. #define VFNLOG_UNCPIPEREQ 18
  20. #define VFNLOG_IOCTL16DRV 19
  21. #define VFNLOG_DASDIO 20
  22. #define VFNLOG_FINDOPEN 21
  23. #define HFNLOG_FINDNEXT 22
  24. #define HFNLOG_FINDCLOSE 23
  25. #define HFNLOG_READ 24
  26. #define HFNLOG_WRITE 25
  27. #define HFNLOG_CLOSE 26
  28. #define HFNLOG_SEEK 27
  29. #define HFNLOG_COMMIT 28
  30. #define HFNLOG_FLOCK 29
  31. #define HFNLOG_FUNLOCK 30
  32. #define HFNLOG_GET_TIME 31
  33. #define HFNLOG_SET_TIME 32
  34. #define HFNLOG_GET_LATIME 33
  35. #define HFNLOG_SET_LATIME 34
  36. #define HFNLOG_PIPEREQ 35
  37. #define HFNLOG_HANDLEINFO 36
  38. #define HFNLOG_ENUMHANDLE 37
  39. #define VFNLOG_QUERY83_DIR 38
  40. #define VFNLOG_QUERYLONG_DIR 39
  41. #define TIME_PRINT_PRINT_FORMAT %02d:%02d:%02.2d
  42. #define DATE_PRINT_FORMAT %02d-%02d-%02d
  43. #define TIME_DATE_PRINT_FORMAT %02d:%02d:%02.2d;%02d-%02d-%02d
  44. typedef struct tagLOGCMD
  45. {
  46. LPSTR lpCmd;
  47. LPSTR lpFmt;
  48. }
  49. LOGCMD;
  50. char szCR[] = "\r";
  51. char szTimeDateFormat[] = "%02d:%02d:%02.2d %02d-%02d-%02d";
  52. char szTimeFormat[] = "%02d:%02d:%02.2d";
  53. char szPreFmt[]="%s %02d:%02d:%02.2d err=%d %s ";
  54. char szDummy[]="XX";
  55. char szLog[] = "C:\\shadow.log";
  56. LOGCMD rgsLogCmd[] =
  57. {
  58. "Del " ,szCR
  59. , "Mkdir " ,szCR
  60. , "Rmdir " ,szCR
  61. , "Chkdir " ,szCR
  62. , "GetAttrb" ,"Atrb=%xh\r"
  63. , "SetAttrb" ,"Atrb=%xh\r"
  64. , "Flush " ,szCR
  65. , "GetDiskI" ,szCR
  66. , "GetDiskP" ,szCR
  67. , "Open " ,"AccsShr=%xh Action=%xh Attr=%xh Size=%d Time="
  68. , "Ren " ,"To %s\r"
  69. , "Srchfrst" ,"Atrb=%xh %s \r"
  70. , "Srchnext" ,"%s \r"
  71. , "Query " ,szCR
  72. , "Query " ,"Status=%xh\r"
  73. , "Query " ,"Status=%xh MaxPath = %d MaxFileName = %d\r"
  74. , "Connect " ,"ResType=%d\r"
  75. , "Disconn " ,szCR
  76. , "UncPpRq " ,szCR
  77. , "Ioctl16D" ,szCR
  78. , "Dasdio " ,szCR
  79. , "FindOpen" ,"Options=%xh %s\r"
  80. , "FindNext" ,"%s\r"
  81. , "FindCls " ,szCR
  82. , "Read " ,"p=%d l=%d\r"
  83. , "Write " ,"p=%d l=%d\r"
  84. , "Close " ,"Type=%d\r"
  85. , "Seek " ,"p=%d type=%d\r"
  86. , "Commit " ,szCR
  87. , "LockF " ,"p=%d l=%d\r"
  88. , "UnlockF " ,"p=%d l=%d\r"
  89. , "GetFtime" ,szCR
  90. , "SetFtime" ,szCR
  91. , "GetLaTim" ,szCR
  92. , "SetLaTim" ,szCR
  93. , "Pipereq " ,szCR
  94. , "HndlInfo" ,szCR
  95. , "EnumHndl" ,"type = %d \r"
  96. , "Query83" ,szCR
  97. , "QueryLong" ,szCR
  98. };