windows-nt/Source/XPSP1/NT/base/remoteboot/admin/querypb.h
2020-09-26 16:20:57 +08:00

45 lines
1,018 B
C++

//
// Copyright 1997-199 - Microsoft Corporation
//
//
// QUERYPB.H - Property Bag for sending arguments to the DSFind Query Form
//
// QITable
BEGIN_QITABLE( QueryPropertyBag )
DEFINE_QI( IID_IPropertyBag, IPropertyBag, 3 )
END_QITABLE
// Definitions
LPVOID
QueryPropertyBag_CreateInstance( void );
class QueryPropertyBag : public IPropertyBag
{
// IUnknown
ULONG _cRef;
DECLARE_QITABLE( QueryPropertyBag );
LPWSTR _pszServerName;
LPWSTR _pszClientGuid;
QueryPropertyBag( );
~QueryPropertyBag( );
HRESULT Init( );
public:
friend LPVOID QueryPropertyBag_CreateInstance( void );
// IUnknown methods
STDMETHOD(QueryInterface)(REFIID riid, LPVOID * ppvObj);
STDMETHOD_(ULONG,AddRef)();
STDMETHOD_(ULONG,Release)();
// IPropertyBag methods
STDMETHOD(Read)( LPCOLESTR pszPropName, VARIANT *pVar, IErrorLog *pErrorLog );
STDMETHOD(Write)( LPCOLESTR pszPropName, VARIANT *pVar );
};
typedef class QueryPropertyBag *LPQUERYPROPERTYBAG;