Leaked source code of windows server 2003
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.

44 lines
1.0 KiB

  1. //
  2. // Copyright 1997-199 - Microsoft Corporation
  3. //
  4. //
  5. // QUERYPB.H - Property Bag for sending arguments to the DSFind Query Form
  6. //
  7. // QITable
  8. BEGIN_QITABLE( QueryPropertyBag )
  9. DEFINE_QI( IID_IPropertyBag, IPropertyBag, 3 )
  10. END_QITABLE
  11. // Definitions
  12. LPVOID
  13. QueryPropertyBag_CreateInstance( void );
  14. class QueryPropertyBag : public IPropertyBag
  15. {
  16. // IUnknown
  17. ULONG _cRef;
  18. DECLARE_QITABLE( QueryPropertyBag );
  19. LPWSTR _pszServerName;
  20. LPWSTR _pszClientGuid;
  21. QueryPropertyBag( );
  22. ~QueryPropertyBag( );
  23. HRESULT Init( );
  24. public:
  25. friend LPVOID QueryPropertyBag_CreateInstance( void );
  26. // IUnknown methods
  27. STDMETHOD(QueryInterface)(REFIID riid, LPVOID * ppvObj);
  28. STDMETHOD_(ULONG,AddRef)();
  29. STDMETHOD_(ULONG,Release)();
  30. // IPropertyBag methods
  31. STDMETHOD(Read)( LPCOLESTR pszPropName, VARIANT *pVar, IErrorLog *pErrorLog );
  32. STDMETHOD(Write)( LPCOLESTR pszPropName, VARIANT *pVar );
  33. };
  34. typedef class QueryPropertyBag *LPQUERYPROPERTYBAG;