Source code of Windows XP (NT5)
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.

36 lines
1.1 KiB

  1. //******************************************************************************
  2. //
  3. // PERMBIND.H
  4. //
  5. // Copyright (C) 1996-1999 Microsoft Corporation
  6. //
  7. //******************************************************************************
  8. #ifndef __WMI_ESS_PERM_BINDING__H_
  9. #define __WMI_ESS_PERM_BINDING__H_
  10. #include "binding.h"
  11. #include "fastall.h"
  12. class CPermanentBinding : public CBinding
  13. {
  14. protected:
  15. static long mstatic_lConsumerHandle;
  16. static long mstatic_lFilterHandle;
  17. static long mstatic_lSynchronicityHandle;
  18. static long mstatic_lQosHandle;
  19. static long mstatic_lSlowDownHandle;
  20. static long mstatic_lSecureHandle;
  21. static long mstatic_lSidHandle;
  22. static bool mstatic_bHandlesInitialized;
  23. protected:
  24. static HRESULT InitializeHandles( _IWmiObject* pBindingObj);
  25. public:
  26. CPermanentBinding()
  27. {}
  28. HRESULT Initialize(IWbemClassObject* pBindingObj);
  29. static HRESULT ComputeKeysFromObject(IWbemClassObject* pBindingObj,
  30. BSTR* pstrConsumer, BSTR* pstrFilter);
  31. static DELETE_ME INTERNAL PSID GetSidFromObject(IWbemClassObject* pObj);
  32. };
  33. #endif