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.

33 lines
817 B

  1. #include "priv.h"
  2. #include "cowsite.h"
  3. #if 0
  4. // no default implementation for now.
  5. // so far all clients do way more than this (e.g. deferred initialization)
  6. // in their SetSite's.
  7. HRESULT CObjectWithSite::SetSite(IUnknown punkSite)
  8. {
  9. IUnknown_Set(&_punkSite, punkSite);
  10. return S_OK;
  11. }
  12. #endif
  13. //***
  14. // NOTES
  15. // iedisp.c!CIEFrameAutoProp::_SetValue calls us
  16. HRESULT CObjectWithSite::GetSite(REFIID riid, void **ppvSite)
  17. {
  18. // e.g. iedisp.c!CIEFrameAutoProp::_SetValue calls us
  19. if (_punkSite)
  20. return _punkSite->QueryInterface(riid, ppvSite);
  21. *ppvSite = NULL;
  22. return E_FAIL;
  23. #if 0 // here 'tis if we ever decide we need it...
  24. // e.g. iedisp.c!CIEFrameAutoProp::_SetValue calls us
  25. TraceMsg(DM_WARNING, "cows.gs: E_NOTIMPL");
  26. *ppvSite = NULL;
  27. return E_NOTIMPL;
  28. #endif
  29. }