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.

109 lines
2.4 KiB

  1. /*++
  2. Copyright (C) 1996-2001 Microsoft Corporation
  3. Module Name:
  4. Globals.h
  5. Abstract:
  6. History:
  7. --*/
  8. #ifndef _Globals_H
  9. #define _Globals_H
  10. #include <pssException.h>
  11. #include <Allocator.h>
  12. #include <BasicTree.h>
  13. #include <Cache.h>
  14. /******************************************************************************
  15. *
  16. * Name:
  17. *
  18. *
  19. * Description:
  20. *
  21. *
  22. *****************************************************************************/
  23. class DecoupledProviderSubSystem_Globals
  24. {
  25. public:
  26. static WmiAllocator *s_Allocator ;
  27. static LONG s_LocksInProgress ;
  28. static LONG s_ObjectsInProgress ;
  29. static LONG s_CServerClassFactory_ObjectsInProgress ;
  30. static LONG s_CServerObject_ProviderRegistrar_ObjectsInProgress ;
  31. static LONG s_CServerObject_ProviderEvents_ObjectsInProgress ;
  32. static LONG s_CInterceptor_DecoupledClient_ObjectsInProgress ;
  33. static LONG s_CDecoupled_IWbemSyncObjectSink_ObjectsInProgress ;
  34. static LONG s_CDecoupled_Batching_IWbemSyncObjectSink_ObjectsInProgress ;
  35. static LONG s_CInterceptor_IWbemDecoupledUnboundObjectSink_ObjectsInProgress ;
  36. static HRESULT Global_Startup () ;
  37. static HRESULT Global_Shutdown () ;
  38. static HRESULT BeginThreadImpersonation (
  39. IUnknown *&a_OldContext ,
  40. IServerSecurity *&a_OldSecurity ,
  41. BOOL &a_Impersonating
  42. ) ;
  43. static HRESULT EndThreadImpersonation (
  44. IUnknown *a_OldContext ,
  45. IServerSecurity *a_OldSecurity ,
  46. BOOL a_Impersonating
  47. ) ;
  48. static HRESULT Begin_IdentifyCall_PrvHost (
  49. WmiInternalContext a_InternalContext ,
  50. BOOL &a_Impersonating ,
  51. IUnknown *&a_OldContext ,
  52. IServerSecurity *&a_OldSecurity
  53. ) ;
  54. static HRESULT End_IdentifyCall_PrvHost (
  55. WmiInternalContext a_InternalContext ,
  56. IUnknown *&a_OldContext ,
  57. IServerSecurity *&a_OldSecurity ,
  58. BOOL &a_Impersonating
  59. ) ;
  60. static HRESULT Begin_IdentifyCall_SvcHost (
  61. WmiInternalContext a_InternalContext ,
  62. BOOL &a_Impersonating ,
  63. IUnknown *&a_OldContext ,
  64. IServerSecurity *&a_OldSecurity
  65. ) ;
  66. static HRESULT End_IdentifyCall_SvcHost (
  67. WmiInternalContext a_InternalContext ,
  68. IUnknown *&a_OldContext ,
  69. IServerSecurity *&a_OldSecurity ,
  70. BOOL &a_Impersonating
  71. ) ;
  72. static HRESULT AdjustSecurityDescriptorWithSystemSid (
  73. SECURITY_DESCRIPTOR *&a_SecurityDescriptor ,
  74. SECURITY_DESCRIPTOR *&a_AlteredSecurityDescriptor
  75. ) ;
  76. static HRESULT OpenTokenToSystem () ;
  77. } ;
  78. #endif // _Globals_H