90 lines
2.1 KiB
C++
90 lines
2.1 KiB
C++
|
//---------------------------------------------------------------------------
|
||
|
//
|
||
|
// Microsoft Windows
|
||
|
// Copyright (C) Microsoft Corporation, 1996
|
||
|
//
|
||
|
// File: cfpnwres.hxx
|
||
|
//
|
||
|
// Contents: Resource object
|
||
|
//
|
||
|
// History: 05/01/96 ramv(Ram Viswanathan) Created.
|
||
|
//
|
||
|
//----------------------------------------------------------------------------
|
||
|
|
||
|
class CFPNWResource: INHERIT_TRACKING,
|
||
|
public ISupportErrorInfo,
|
||
|
public IADsResource,
|
||
|
public IADsPropertyList,
|
||
|
public CCoreADsObject,
|
||
|
public INonDelegatingUnknown,
|
||
|
public IADsExtension
|
||
|
{
|
||
|
|
||
|
public:
|
||
|
|
||
|
/* IUnknown methods */
|
||
|
STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj);
|
||
|
|
||
|
STDMETHODIMP_(ULONG) AddRef(void);
|
||
|
|
||
|
STDMETHODIMP_(ULONG) Release(void);
|
||
|
|
||
|
// INonDelegatingUnknown methods
|
||
|
|
||
|
STDMETHOD(NonDelegatingQueryInterface)(THIS_
|
||
|
const IID&,
|
||
|
void **
|
||
|
);
|
||
|
|
||
|
DECLARE_NON_DELEGATING_REFCOUNTING
|
||
|
|
||
|
DECLARE_IDispatch_METHODS;
|
||
|
|
||
|
DECLARE_ISupportErrorInfo_METHODS;
|
||
|
|
||
|
DECLARE_IADs_METHODS;
|
||
|
|
||
|
DECLARE_IADsResource_METHODS;
|
||
|
|
||
|
DECLARE_IADsPropertyList_METHODS;
|
||
|
|
||
|
DECLARE_IADsExtension_METHODS
|
||
|
|
||
|
//
|
||
|
// constructor and destructor
|
||
|
//
|
||
|
|
||
|
CFPNWResource();
|
||
|
|
||
|
~CFPNWResource();
|
||
|
|
||
|
static HRESULT Create(LPTSTR pszServerADsPath,
|
||
|
PNWFILEINFO pFileInfo,
|
||
|
DWORD dwObject,
|
||
|
REFIID riid,
|
||
|
CWinNTCredentials& Credentials,
|
||
|
LPVOID * ppvoid);
|
||
|
|
||
|
static HRESULT AllocateResourceObject(LPTSTR pszServerADsPath,
|
||
|
PNWFILEINFO pFileInfo,
|
||
|
CFPNWResource ** ppResource);
|
||
|
|
||
|
STDMETHOD(ImplicitGetInfo)(void);
|
||
|
|
||
|
protected:
|
||
|
|
||
|
CAggregatorDispMgr * _pDispMgr;
|
||
|
CADsExtMgr FAR * _pExtMgr;
|
||
|
|
||
|
LPWSTR _pszServerName;
|
||
|
LPWSTR _pszServerADsPath;
|
||
|
DWORD _dwFileId;
|
||
|
LPWSTR _pszUserName;
|
||
|
LPWSTR _pszPath;
|
||
|
DWORD _dwLockCount;
|
||
|
|
||
|
CPropertyCache * _pPropertyCache;
|
||
|
CWinNTCredentials _Credentials;
|
||
|
|
||
|
};
|