windows-nt/Source/XPSP1/NT/ds/adsi/winnt/cenumns.hxx
2020-09-26 16:20:57 +08:00

63 lines
1.3 KiB
C++

class FAR CWinNTNamespaceEnum : public CWinNTEnumVariant
{
public:
// IEnumVARIANT methods
STDMETHOD(Next)(ULONG cElements,
VARIANT FAR* pvar,
ULONG FAR* pcElementFetched);
static HRESULT Create(CWinNTNamespaceEnum FAR* FAR*, VARIANT var ,
CWinNTCredentials& Credentials);
CWinNTNamespaceEnum();
~CWinNTNamespaceEnum();
HRESULT
CWinNTNamespaceEnum::GetDomainObject(
IDispatch ** ppDispatch
);
HRESULT
CWinNTNamespaceEnum::EnumDomains(
ULONG cElements,
VARIANT FAR* pvar,
ULONG FAR* pcElementFetched
);
HRESULT
CWinNTNamespaceEnum::EnumObjects(
ULONG cElements,
VARIANT FAR* pvar,
ULONG FAR* pcElementFetched
);
HRESULT
CWinNTNamespaceEnum::EnumObjects(
DWORD ObjectType,
ULONG cElements,
VARIANT FAR * pvar,
ULONG FAR * pcElementFetched
);
private:
ObjectTypeList FAR *_pObjList;
PSERVER_INFO_100 _pBuffer;
DWORD _dwObjectReturned;
DWORD _dwObjectCurrentEntry;
DWORD _dwObjectTotal;
DWORD _dwResumeHandle;
BOOL _bNoMore;
CWinNTCredentials _Credentials;
};