Source code of Windows XP (NT5)
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.
 
 
 
 
 
 

70 lines
1.3 KiB

/*++
Copyright (c) 1996 Microsoft Corporation
Module Name:
cenumfsh.hxx
Abstract:
Contains definitions for CWinNTFileSharesEnumVar
Author:
Ram Viswanathan (ramv) 02-12-96
Revision History:
--*/
class CWinNTFileSharesEnumVar : public CWinNTEnumVariant
{
public:
static HRESULT Create(LPTSTR pszServerName,
LPTSTR pszADsPath,
CWinNTFileSharesEnumVar FAR* FAR*,
VARIANT vFilter,
CWinNTCredentials& Credentials
);
CWinNTFileSharesEnumVar();
~CWinNTFileSharesEnumVar();
protected:
LPWSTR _pszServerName;
LONG _lCurrentPosition;
ULONG _cElements;
LONG _lLBound;
DWORD _dwResumeHandle;
DWORD _dwTotalEntries;
LPBYTE _pbFileShares;
LPWSTR _pszADsPath;
VARIANT _vFilter;
CWinNTCredentials _Credentials;
STDMETHOD(Next)(
ULONG cElements,
VARIANT FAR* pvar,
ULONG FAR* pcElementFetched
);
};
//
// Helper functions
//
HRESULT
WinNTEnumFileShares(LPTSTR pszServerName,
PDWORD pdwElements,
PDWORD pdwTotalEntries,
PDWORD pdwResumeHandle,
LPBYTE * ppMem
);
BOOL
ValidateFilterValue(VARIANT vFilter);