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.

84 lines
1.7 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1993.
  5. //
  6. // File: globals.hxx
  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. #ifndef __GLOBALS_HXX__
  18. #define __GLOBALS_HXX__
  19. #include "statsync.hxx"
  20. #define MAX_SID_SIZE 68 // BUGBUG 254102
  21. //
  22. // Job processor manager.
  23. //
  24. class CJobProcessorMgr;
  25. extern CJobProcessorMgr * gpJobProcessorMgr;
  26. //
  27. // Worker thread manager.
  28. //
  29. class CWorkerThreadMgr;
  30. extern CWorkerThreadMgr * gpThreadMgr;
  31. //
  32. // Service scavenger task.
  33. //
  34. class CSAScavengerTask;
  35. extern CSAScavengerTask * gpSAScavengerTask;
  36. //
  37. // Used for NetScheduleX thread serialization.
  38. //
  39. extern CStaticCritSec gcsNetScheduleCritSection;
  40. //
  41. // Event Source for NetSchedule Job logging
  42. //
  43. extern HANDLE g_hAtEventSource;
  44. //
  45. // Global data associated with the locally logged on user.
  46. //
  47. struct GlobalUserLogonInfo
  48. {
  49. HANDLE ShellToken;
  50. HANDLE ImpersonationThread;
  51. WCHAR * UserName;
  52. WCHAR * DomainName;
  53. WCHAR * DomainUserName;
  54. CStaticCritSec* CritSection;
  55. BYTE Sid[MAX_SID_SIZE]; // BUGBUG 254102
  56. GlobalUserLogonInfo(CStaticCritSec* pSec)
  57. {
  58. ZeroMemory(this, sizeof(GlobalUserLogonInfo));
  59. CritSection = pSec;
  60. };
  61. };
  62. extern GlobalUserLogonInfo gUserLogonInfo;
  63. extern LPWSTR gpwszComputerName;
  64. #endif // __GLOBALS_HXX__