mirror of https://github.com/tongzx/nt5src
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.
57 lines
1.3 KiB
57 lines
1.3 KiB
class FAR CWinNTLocalGroupCollectionEnum : public CWinNTEnumVariant
|
|
{
|
|
public:
|
|
CWinNTLocalGroupCollectionEnum(ObjectTypeList ObjList);
|
|
CWinNTLocalGroupCollectionEnum();
|
|
~CWinNTLocalGroupCollectionEnum();
|
|
|
|
static
|
|
HRESULT
|
|
CWinNTLocalGroupCollectionEnum::Create(
|
|
CWinNTLocalGroupCollectionEnum FAR* FAR* ppenumvariant,
|
|
BSTR Parent,
|
|
ULONG ParentType,
|
|
BSTR ADsPath,
|
|
BSTR DomainName,
|
|
BSTR ServerName,
|
|
BSTR GroupName,
|
|
ULONG GroupType,
|
|
VARIANT var,
|
|
CWinNTCredentials& Credentials
|
|
);
|
|
|
|
|
|
private:
|
|
|
|
CWinNTCredentials _Credentials;
|
|
BSTR _Parent;
|
|
ULONG _ParentType;
|
|
BSTR _ADsPath;
|
|
BSTR _DomainName;
|
|
BSTR _ServerName;
|
|
BSTR _GroupName;
|
|
BSTR _lpServerName;
|
|
ULONG _GroupType;
|
|
|
|
ObjectTypeList FAR *_pObjList;
|
|
|
|
HANDLE _hGroup;
|
|
|
|
HRESULT
|
|
CWinNTLocalGroupCollectionEnum::GetComputerMemberObject(
|
|
IDispatch ** ppDispatch
|
|
);
|
|
|
|
|
|
HRESULT
|
|
CWinNTLocalGroupCollectionEnum::EnumGroupMembers(
|
|
ULONG cElements,
|
|
VARIANT FAR* pvar,
|
|
ULONG FAR* pcElementFetched
|
|
);
|
|
|
|
|
|
STDMETHOD(Next)(ULONG cElements,
|
|
VARIANT FAR* pvar,
|
|
ULONG FAR* pcElementFetched);
|
|
};
|