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.

22 lines
498 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);
  12. virtual STDMETHODIMP GetSite(REFIID riid, void **ppvSite);
  13. ~CObjectWithSite() { ASSERT(!_punkSite); }
  14. protected:
  15. IUnknown * _punkSite;
  16. };
  17. #endif