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.

71 lines
1.6 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1993.
  5. //
  6. // File: globals.cxx
  7. //
  8. // Contents: Service global data.
  9. //
  10. // Classes: None.
  11. //
  12. // Functions: None.
  13. //
  14. // History: 6-Apr-95 MarkBl Created
  15. //
  16. //----------------------------------------------------------------------------
  17. #include "..\pch\headers.hxx"
  18. #pragma hdrstop
  19. #include "svc_core.hxx"
  20. #include "globals.hxx"
  21. //
  22. // The service worker instance.
  23. //
  24. CSchedWorker * g_pSched = NULL;
  25. //
  26. // Job processor manager.
  27. //
  28. CJobProcessorMgr * gpJobProcessorMgr = NULL;
  29. //
  30. // Worker thread manager.
  31. //
  32. CWorkerThreadMgr * gpThreadMgr = NULL;
  33. //
  34. // Service scavenger task.
  35. //
  36. CSAScavengerTask * gpSAScavengerTask = NULL;
  37. //
  38. // Event Source for NetSchedule Job logging
  39. //
  40. HANDLE g_hAtEventSource = NULL;
  41. //
  42. // Global static critsecs.
  43. // These are initialized in the CStaticCritSec constructor and deleted in its destructor.
  44. // Their life span lasts for the duration of the dll load.
  45. //
  46. CStaticCritSec gcsNetScheduleCritSection; // Used for NetScheduleX thread serialization.
  47. CStaticCritSec gcsUserLogonInfoCritSection; // Protects global data associated with the locally logged on user.
  48. CStaticCritSec gcsLogCritSection; // Protects access to log file
  49. CStaticCritSec gcsSSCritSection; // Protects access to security database
  50. //
  51. // Global data associated with the locally logged on user.
  52. //
  53. GlobalUserLogonInfo gUserLogonInfo(&gcsUserLogonInfoCritSection);