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.
71 lines
1.3 KiB
71 lines
1.3 KiB
class FAR CNDSGenObjectEnum : public CNDSEnumVariant
|
|
{
|
|
public:
|
|
CNDSGenObjectEnum(ObjectTypeList ObjList);
|
|
CNDSGenObjectEnum();
|
|
~CNDSGenObjectEnum();
|
|
|
|
static
|
|
HRESULT
|
|
CNDSGenObjectEnum::Create(
|
|
CNDSGenObjectEnum FAR* FAR* ppenumvariant,
|
|
BSTR ADsPath,
|
|
VARIANT var,
|
|
CCredentials& Credentials
|
|
);
|
|
|
|
private:
|
|
|
|
ObjectTypeList FAR *_pObjList;
|
|
LPNDS_FILTER_LIST _pNdsFilterList;
|
|
|
|
HANDLE _hObject;
|
|
HANDLE _hOperationData;
|
|
LPNDS_OBJECT_INFO _lpObjects;
|
|
DWORD _dwObjectReturned;
|
|
DWORD _dwObjectCurrentEntry;
|
|
DWORD _dwObjectTotal;
|
|
|
|
BSTR _ADsPath;
|
|
|
|
BOOL _bNoMore;
|
|
|
|
CCredentials _Credentials;
|
|
|
|
HRESULT
|
|
CNDSGenObjectEnum::GetGenObject(
|
|
IDispatch ** ppDispatch
|
|
);
|
|
|
|
HRESULT
|
|
EnumGenericObjects(
|
|
ULONG cElements,
|
|
VARIANT FAR* pvar,
|
|
ULONG FAR* pcElementFetched
|
|
);
|
|
|
|
STDMETHOD(Next)(
|
|
ULONG cElements,
|
|
VARIANT FAR* pvar,
|
|
ULONG FAR* pcElementFetched
|
|
);
|
|
};
|
|
|
|
|
|
HRESULT
|
|
BuildNDSFilterArray(
|
|
VARIANT var,
|
|
LPBYTE * ppContigFilter
|
|
);
|
|
|
|
void
|
|
FreeFilterList(
|
|
LPBYTE lpContigFilter
|
|
);
|
|
|
|
LPBYTE
|
|
CreateAndAppendFilterEntry(
|
|
LPBYTE pContigFilter,
|
|
LPWSTR lpObjectClass
|
|
);
|
|
|