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.
62 lines
1.3 KiB
62 lines
1.3 KiB
|
|
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;
|
|
|
|
};
|
|
|
|
|