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.2 KiB

  1. #include "stdafx.h"
  2. #include "Services.h"
  3. #include "Globals.h"
  4. #include "GdiCache.h"
  5. #include "Thread.h"
  6. #include "Context.h"
  7. #include "TicketManager.h"
  8. //
  9. // The order that the global variables are declared here is VERY important
  10. // because it determines their destruction order during shutdown.
  11. // Variables declared first will be destroyed AFTER all of the variables
  12. // declared after them.
  13. //
  14. // Thread objects are very low-level and should be at the top of this list.
  15. // This helps to ensure that new Thread objects are not accidentally created
  16. // during shutdown.
  17. //
  18. HINSTANCE g_hDll = NULL;
  19. #if USE_DYNAMICTLS
  20. DWORD g_tlsThread = (DWORD) -1; // TLS Slot for Thread data
  21. #endif
  22. #if ENABLE_MPH
  23. //
  24. // Setup the MPH to point to the original USER functions. If a MPH is
  25. // installed, these will be replaced to point to the real implementations.
  26. //
  27. MESSAGEPUMPHOOK
  28. g_mphReal =
  29. {
  30. sizeof(g_mphReal),
  31. NULL,
  32. NULL,
  33. NULL,
  34. NULL,
  35. };
  36. #endif // ENABLE_MPH
  37. DuTicketManager g_TicketManager;
  38. //------------------------------------------------------------------------------
  39. DuTicketManager *
  40. GetTicketManager()
  41. {
  42. return &g_TicketManager;
  43. }