cowsite.cpp
Upload User: xhy777
Upload Date: 2007-02-14
Package Size: 24088k
Code Size: 1k
Category:

Windows Kernel

Development Platform:

Visual C++

  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. }