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.

40 lines
729 B

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