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.

57 lines
1.3 KiB

  1. /****************************** Module Header ******************************\
  2. * Module Name: globals.c
  3. *
  4. * Copyright (c) 1985 - 1999, Microsoft Corporation
  5. *
  6. * This module contains all the server's global variables. One must be
  7. * executing on the server's context to manipulate any of these variables.
  8. * Serializing access to them is also a good idea.
  9. *
  10. * History:
  11. * 10-15-90 DarrinM Created.
  12. \***************************************************************************/
  13. #include "precomp.h"
  14. #pragma hdrstop
  15. HANDLE ghModuleWin;
  16. CRITICAL_SECTION gcsUserSrv;
  17. DWORD gCmsHungAppTimeout;
  18. DWORD gCmsWaitToKillTimeout;
  19. DWORD gdwHungToKillCount;
  20. BOOL gfAutoEndTask;
  21. BOOL gbExitInProgress;
  22. /*
  23. * These globals are used when shutting down the services process.
  24. */
  25. DWORD gdwServicesProcessId;
  26. DWORD gdwServicesWaitToKillTimeout;
  27. DWORD gdwProcessTerminateTimeout;
  28. /*
  29. * logon process id
  30. */
  31. DWORD gIdLogon;
  32. /*
  33. * Hard error stuff
  34. */
  35. PHARDERRORINFO gphiList;
  36. DWORD gdwHardErrorThreadId;
  37. HANDLE gNtDllHandle;
  38. HANDLE gEventSource;
  39. PWSTR gpwszaSUCCESS;
  40. PWSTR gpwszaSYSTEM_INFORMATION;
  41. PWSTR gpwszaSYSTEM_WARNING;
  42. PWSTR gpwszaSYSTEM_ERROR;
  43. /*
  44. * EndTask / Shutdown stuff
  45. */
  46. DWORD gdwThreadEndSession;
  47. HANDLE gheventCancel;
  48. HANDLE gheventCancelled;
  49. ULONG gSessionId;