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.

68 lines
1.3 KiB

  1. #include "layoutui.hxx"
  2. STDMETHODIMP COleClientSite::QueryInterface(REFIID riid, void** ppObject)
  3. {
  4. if (riid==IID_IUnknown || riid==IID_IOleClientSite)
  5. {
  6. *ppObject=(IOleClientSite*) this;
  7. AddRef();
  8. }
  9. else
  10. {
  11. return E_NOINTERFACE;
  12. }
  13. return NO_ERROR;
  14. }
  15. STDMETHODIMP_(ULONG) COleClientSite::AddRef()
  16. {
  17. return InterlockedIncrement( &_cReferences);
  18. }
  19. STDMETHODIMP_(ULONG) COleClientSite::Release()
  20. {
  21. LONG lRef = InterlockedDecrement(&_cReferences);
  22. if (lRef == 0)
  23. {
  24. delete this;
  25. }
  26. return lRef;
  27. }
  28. STDMETHODIMP COleClientSite::SaveObject( void)
  29. {
  30. return E_FAIL;
  31. }
  32. STDMETHODIMP COleClientSite::GetMoniker(
  33. /* [in] */ DWORD dwAssign,
  34. /* [in] */ DWORD dwWhichMoniker,
  35. /* [out] */ IMoniker __RPC_FAR *__RPC_FAR *ppmk)
  36. {
  37. return S_OK;
  38. }
  39. STDMETHODIMP COleClientSite::GetContainer(
  40. /* [out] */ IOleContainer __RPC_FAR *__RPC_FAR *ppContainer)
  41. {
  42. *ppContainer=NULL;
  43. return E_NOINTERFACE;
  44. }
  45. STDMETHODIMP COleClientSite::ShowObject( void)
  46. {
  47. return S_OK;
  48. }
  49. STDMETHODIMP COleClientSite::OnShowWindow(
  50. /* [in] */ BOOL fShow)
  51. {
  52. return S_OK;
  53. }
  54. STDMETHODIMP COleClientSite::RequestNewObjectLayout( void)
  55. {
  56. return E_NOTIMPL;
  57. }