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.

44 lines
798 B

  1. #ifndef _IPSecurity_h_
  2. #define _IPSecurity_h_
  3. #import "adsiis.tlb" no_namespace named_guids
  4. #include <iads.h>
  5. #include <adshlp.h>
  6. class CIPSecurity
  7. {
  8. private:
  9. IISIPSecurity* m_pIPSec;
  10. IADs* m_pADs;
  11. BOOL bIsInherit;
  12. public:
  13. CIPSecurity();
  14. ~CIPSecurity();
  15. HRESULT GetObjectAsync(
  16. IWbemClassObject* pObj
  17. );
  18. HRESULT PutObjectAsync(
  19. IWbemClassObject* pObj
  20. );
  21. HRESULT OpenSD(
  22. _bstr_t bstrAdsPath,
  23. IMSAdminBase2* pAdminBase);
  24. void CloseSD();
  25. private:
  26. HRESULT SetSD();
  27. HRESULT GetAdsPath(_bstr_t& bstrAdsPath);
  28. HRESULT LoadBstrArrayFromVariantArray(VARIANT& i_vtVariant, VARIANT& o_vtBstr);
  29. HRESULT LoadVariantArrayFromBstrArray(VARIANT& i_vtBstr, VARIANT& o_vtVariant);
  30. };
  31. #endif