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.
116 lines
2.1 KiB
116 lines
2.1 KiB
class FAR CNWCOMPATComputerEnum : public CNWCOMPATEnumVariant
|
|
{
|
|
public:
|
|
CNWCOMPATComputerEnum(ObjectTypeList ObjList);
|
|
|
|
CNWCOMPATComputerEnum();
|
|
|
|
~CNWCOMPATComputerEnum();
|
|
|
|
HRESULT
|
|
CNWCOMPATComputerEnum::EnumObjects(
|
|
ULONG cElements,
|
|
VARIANT FAR* pvar,
|
|
ULONG FAR* pcElementFetched
|
|
);
|
|
|
|
static
|
|
HRESULT
|
|
CNWCOMPATComputerEnum::Create(
|
|
CNWCOMPATComputerEnum FAR* FAR* ppenumvariant,
|
|
BSTR ADsPath,
|
|
BSTR ComputerName,
|
|
CCredentials &Credentials,
|
|
VARIANT var
|
|
);
|
|
|
|
private:
|
|
ObjectTypeList FAR *_pObjList;
|
|
|
|
NWCONN_HANDLE _hConn;
|
|
|
|
NWOBJ_ID _dwUserResumeObjectID;
|
|
NWOBJ_ID _dwGroupResumeObjectID;
|
|
NWOBJ_ID _dwPrinterResumeObjectID;
|
|
|
|
BOOL _fFileServiceOnce;
|
|
|
|
BSTR _ComputerName;
|
|
BSTR _ADsPath;
|
|
|
|
CCredentials _Credentials;
|
|
|
|
HRESULT
|
|
CNWCOMPATComputerEnum::GetUserObject(
|
|
IDispatch ** ppDispatch
|
|
);
|
|
|
|
HRESULT
|
|
CNWCOMPATComputerEnum::GetGroupObject(
|
|
IDispatch ** ppDispatch
|
|
);
|
|
|
|
HRESULT
|
|
CNWCOMPATComputerEnum::GetFileServiceObject(
|
|
IDispatch ** ppDispatch
|
|
);
|
|
|
|
HRESULT
|
|
CNWCOMPATComputerEnum::GetPrinterObject(
|
|
IDispatch ** ppDispatch
|
|
);
|
|
|
|
HRESULT
|
|
CNWCOMPATComputerEnum::EnumUsers(
|
|
ULONG cElements,
|
|
VARIANT FAR* pvar,
|
|
ULONG FAR* pcElementFetched
|
|
);
|
|
|
|
HRESULT
|
|
CNWCOMPATComputerEnum::EnumGroups(
|
|
ULONG cElements,
|
|
VARIANT FAR* pvar,
|
|
ULONG FAR* pcElementFetched
|
|
);
|
|
|
|
HRESULT
|
|
CNWCOMPATComputerEnum::EnumFileServices(
|
|
ULONG cElements,
|
|
VARIANT FAR* pvar,
|
|
ULONG FAR* pcElementFetched
|
|
);
|
|
HRESULT
|
|
CNWCOMPATComputerEnum::EnumPrinters(
|
|
ULONG cElements,
|
|
VARIANT FAR* pvar,
|
|
ULONG FAR* pcElementFetched
|
|
);
|
|
|
|
HRESULT
|
|
CNWCOMPATComputerEnum::EnumObjects(
|
|
DWORD ObjectType,
|
|
ULONG cElements,
|
|
VARIANT FAR * pvar,
|
|
ULONG FAR * pcElementFetched
|
|
);
|
|
|
|
STDMETHOD(Next)(ULONG cElements,
|
|
VARIANT FAR* pvar,
|
|
ULONG FAR* pcElementFetched);
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|