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.
45 lines
890 B
45 lines
890 B
|
|
class FAR CNWCOMPATFileServiceEnum : public CNWCOMPATEnumVariant
|
|
{
|
|
public:
|
|
//
|
|
// IEnumVARIANT methods
|
|
//
|
|
STDMETHOD(Next)(
|
|
ULONG cElements,
|
|
VARIANT FAR* pvar,
|
|
ULONG FAR* pcElementFetched
|
|
);
|
|
|
|
static
|
|
HRESULT
|
|
CNWCOMPATFileServiceEnum::Create(
|
|
CNWCOMPATFileServiceEnum FAR* FAR* ppEnumVariant,
|
|
BSTR ADsPath,
|
|
BSTR bstrServerName
|
|
);
|
|
|
|
CNWCOMPATFileServiceEnum();
|
|
|
|
~CNWCOMPATFileServiceEnum();
|
|
|
|
HRESULT
|
|
CNWCOMPATFileServiceEnum::GetFileShareObject(
|
|
IDispatch ** ppDispatch
|
|
);
|
|
|
|
HRESULT
|
|
CNWCOMPATFileServiceEnum::EnumFileShares(
|
|
ULONG cElements,
|
|
VARIANT FAR* pvar,
|
|
ULONG FAR* pcElementFetched
|
|
);
|
|
|
|
private:
|
|
BSTR _ADsPath;
|
|
NWVOL_NUM _bResumeVolumeID;
|
|
NWCONN_HANDLE _hConn;
|
|
VERSION_INFO _FileServerInfo;
|
|
};
|
|
|
|
|