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.

61 lines
1.2 KiB

  1. #ifndef __GLOBAL_H__
  2. #define __GLOBAL_H__
  3. #include <filespy.h>
  4. #include "define.h"
  5. #include <windows.h>
  6. #include <winioctl.h>
  7. #include <winsvc.h>
  8. // Global variables
  9. #ifdef MAINMODULE
  10. #define EXTERN
  11. #else
  12. #define EXTERN extern
  13. #endif
  14. //
  15. // Buffer size
  16. //
  17. #define BUFFER_SIZE 4096
  18. //
  19. // Image list values
  20. //
  21. #define IMAGE_FIXEDDRIVE 0
  22. #define IMAGE_REMOTEDRIVE 1
  23. #define IMAGE_REMOVABLEDRIVE 2
  24. #define IMAGE_CDROMDRIVE 3
  25. #define IMAGE_UNKNOWNDRIVE 4
  26. #define IMAGE_SPY 5
  27. #define IMAGE_ATTACHSTART 6
  28. typedef struct _VOLINFO
  29. {
  30. WCHAR nDriveName;
  31. WCHAR sVolumeLable[20];
  32. ULONG nType;
  33. BOOLEAN bHook;
  34. CCHAR nImage;
  35. } VOLINFO, *PVOLINFO;
  36. EXTERN SC_HANDLE hSCManager;
  37. EXTERN SC_HANDLE hService;
  38. EXTERN SERVICE_STATUS_PROCESS ServiceInfo;
  39. EXTERN HANDLE hDevice;
  40. EXTERN ULONG nPollThreadId;
  41. EXTERN HANDLE hPollThread;
  42. EXTERN VOLINFO VolInfo[26];
  43. EXTERN USHORT nTotalDrives;
  44. EXTERN LPVOID pSpyView;
  45. EXTERN LPVOID pFastIoView;
  46. EXTERN LPVOID pFsFilterView;
  47. EXTERN LPVOID pLeftView;
  48. EXTERN int IRPFilter[IRP_MJ_MAXIMUM_FUNCTION+1];
  49. EXTERN int FASTIOFilter[FASTIO_MAX_OPERATION];
  50. EXTERN int nSuppressPagingIO;
  51. #endif /* __GLOBAL_H__ */