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