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.

89 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1989 Microsoft Corporation
  3. Module Name:
  4. exdata.c
  5. Abstract:
  6. This module contains the global read/write data for the I/O system.
  7. Author:
  8. Ken Reneris (kenr)
  9. Revision History:
  10. --*/
  11. #include "exp.h"
  12. //
  13. // Executive callbacks.
  14. //
  15. PCALLBACK_OBJECT ExCbSetSystemTime;
  16. PCALLBACK_OBJECT ExCbSetSystemState;
  17. PCALLBACK_OBJECT ExCbPowerState;
  18. #ifdef _PNP_POWER_
  19. //
  20. // Work Item to scan SystemInformation levels
  21. //
  22. WORK_QUEUE_ITEM ExpCheckSystemInfoWorkItem;
  23. #endif
  24. //
  25. // Pageable data
  26. //
  27. #ifdef ALLOC_DATA_PRAGMA
  28. #pragma const_seg("PAGECONST")
  29. #endif
  30. #ifdef _PNP_POWER_
  31. const WCHAR ExpWstrSystemInformation[] = L"Control\\System Information";
  32. const WCHAR ExpWstrSystemInformationValue[] = L"Value";
  33. #endif
  34. //
  35. // Initialization time data
  36. //
  37. #ifdef ALLOC_DATA_PRAGMA
  38. #pragma const_seg("INITCONST")
  39. #endif
  40. const WCHAR ExpWstrCallback[] = L"\\Callback";
  41. const EXP_INITIALIZE_GLOBAL_CALLBACKS ExpInitializeCallback[] = {
  42. &ExCbSetSystemTime, L"\\Callback\\SetSystemTime",
  43. &ExCbSetSystemState, L"\\Callback\\SetSystemState",
  44. &ExCbPowerState, L"\\Callback\\PowerState",
  45. NULL, NULL
  46. };
  47. #ifdef ALLOC_DATA_PRAGMA
  48. #pragma data_seg("PAGEDATA")
  49. #endif
  50. #ifdef _PNP_POWER_
  51. LONG ExpCheckSystemInfoBusy = 0;
  52. #endif
  53. #ifdef ALLOC_DATA_PRAGMA
  54. #pragma data_seg()
  55. #pragma const_seg()
  56. #endif