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.

78 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1999-2001 Microsoft Corporation
  3. Module Name:
  4. iomgr.h
  5. Abstract:
  6. This is the common header for all io managers.
  7. Author:
  8. Brian Guarraci (briangu) March, 2001.
  9. Revision History:
  10. --*/
  11. #ifndef IO_MGR_H
  12. #define IO_MGR_H
  13. #include <initguid.h>
  14. DEFINE_GUID(
  15. PRIMARY_SAC_CHANNEL_APPLICATION_GUID,
  16. 0x63d02270, 0x8aa4, 0x11d5, 0xbc, 0xcf, 0x80, 0x6d, 0x61, 0x72, 0x69, 0x6f
  17. );
  18. extern PSAC_CHANNEL SacChannel;
  19. extern BOOLEAN GlobalPagingNeeded;
  20. extern BOOLEAN GlobalDoThreads;
  21. // For the APC routines, a global value is better :-)
  22. extern IO_STATUS_BLOCK GlobalIoStatusBlock;
  23. //
  24. // Global buffer
  25. //
  26. extern ULONG GlobalBufferSize;
  27. extern char *GlobalBuffer;
  28. extern WCHAR *StateTable[];
  29. extern WCHAR *WaitTable[];
  30. extern WCHAR *Empty;
  31. #define IP_LOOPBACK(x) (((x) & 0x000000ff) == 0x7f)
  32. #define IS_WHITESPACE(_ch) ((_ch == ' ') || (_ch == '\t'))
  33. #define IS_NUMBER(_ch) ((_ch >= '0') && (_ch <= '9'))
  34. #define SKIP_WHITESPACE(_pch) \
  35. while (IS_WHITESPACE(*_pch) && (*_pch != '\0')) { \
  36. _pch++; \
  37. }
  38. #define SKIP_NUMBERS(_pch) \
  39. while (IS_NUMBER(*_pch) && (*_pch != '\0')) { \
  40. _pch++; \
  41. }
  42. typedef struct _SAC_RSP_TLIST {
  43. SYSTEM_BASIC_INFORMATION BasicInfo;
  44. SYSTEM_TIMEOFDAY_INFORMATION TimeOfDayInfo;
  45. SYSTEM_FILECACHE_INFORMATION FileCache;
  46. SYSTEM_PERFORMANCE_INFORMATION PerfInfo;
  47. ULONG PagefileInfoOffset;
  48. ULONG ProcessInfoOffset;
  49. } SAC_RSP_TLIST, *PSAC_RSP_TLIST;
  50. #endif