45 lines
798 B
C++
45 lines
798 B
C++
#ifndef _IPSecurity_h_
|
|
#define _IPSecurity_h_
|
|
|
|
|
|
|
|
#import "adsiis.tlb" no_namespace named_guids
|
|
#include <iads.h>
|
|
#include <adshlp.h>
|
|
|
|
class CIPSecurity
|
|
{
|
|
private:
|
|
|
|
IISIPSecurity* m_pIPSec;
|
|
IADs* m_pADs;
|
|
BOOL bIsInherit;
|
|
|
|
public:
|
|
|
|
CIPSecurity();
|
|
~CIPSecurity();
|
|
|
|
HRESULT GetObjectAsync(
|
|
IWbemClassObject* pObj
|
|
);
|
|
|
|
HRESULT PutObjectAsync(
|
|
IWbemClassObject* pObj
|
|
);
|
|
|
|
HRESULT OpenSD(
|
|
_bstr_t bstrAdsPath,
|
|
IMSAdminBase2* pAdminBase);
|
|
void CloseSD();
|
|
|
|
private:
|
|
|
|
HRESULT SetSD();
|
|
HRESULT GetAdsPath(_bstr_t& bstrAdsPath);
|
|
HRESULT LoadBstrArrayFromVariantArray(VARIANT& i_vtVariant, VARIANT& o_vtBstr);
|
|
HRESULT LoadVariantArrayFromBstrArray(VARIANT& i_vtBstr, VARIANT& o_vtVariant);
|
|
};
|
|
|
|
|
|
#endif |