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.

21 lines
432 B

  1. #ifndef _COWSITE_H_
  2. #define _COWSITE_H_
  3. // this is a virtual class
  4. // (since pretty much everyone overrides SetSite)
  5. class CObjectWithSite : public IObjectWithSite
  6. {
  7. public:
  8. //*** IUnknown ****
  9. // (client must provide!)
  10. //*** IObjectWithSite ***
  11. virtual STDMETHODIMP SetSite(IUnknown *punkSite) = 0;
  12. virtual STDMETHODIMP GetSite(REFIID riid, void **ppvSite);
  13. protected:
  14. IUnknown* _punkSite;
  15. };
  16. #endif