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.

21 lines
455 B

  1. #ifndef _COWSITE_H_
  2. #define _COWSITE_H_
  3. class CObjectWithSite : public IObjectWithSite
  4. {
  5. public:
  6. CObjectWithSite() {_punkSite = NULL;};
  7. virtual ~CObjectWithSite() {ATOMICRELEASE(_punkSite);}
  8. //*** IUnknown ****
  9. // (client must provide!)
  10. //*** IObjectWithSite ***
  11. STDMETHOD(SetSite)(IUnknown *punkSite);
  12. STDMETHOD(GetSite)(REFIID riid, void **ppvSite);
  13. protected:
  14. IUnknown* _punkSite;
  15. };
  16. #endif