1*cdf0e10cSrcweir // SOComWindowPeer.cpp : Implementation of CHelpApp and DLL registration. 2*cdf0e10cSrcweir 3*cdf0e10cSrcweir #include "stdafx2.h" 4*cdf0e10cSrcweir #include "so_activex.h" 5*cdf0e10cSrcweir #include "SOComWindowPeer.h" 6*cdf0e10cSrcweir 7*cdf0e10cSrcweir ///////////////////////////////////////////////////////////////////////////// 8*cdf0e10cSrcweir // 9*cdf0e10cSrcweir 10*cdf0e10cSrcweir STDMETHODIMP SOComWindowPeer::InterfaceSupportsErrorInfo(REFIID riid) 11*cdf0e10cSrcweir { 12*cdf0e10cSrcweir static const IID* arr[] = 13*cdf0e10cSrcweir { 14*cdf0e10cSrcweir &IID_ISOComWindowPeer, 15*cdf0e10cSrcweir }; 16*cdf0e10cSrcweir 17*cdf0e10cSrcweir for (int i=0;i<sizeof(arr)/sizeof(arr[0]);i++) 18*cdf0e10cSrcweir { 19*cdf0e10cSrcweir #if defined(_MSC_VER) && (_MSC_VER >= 1300) 20*cdf0e10cSrcweir if (InlineIsEqualGUID(*arr[i],riid)) 21*cdf0e10cSrcweir #else 22*cdf0e10cSrcweir if (::ATL::InlineIsEqualGUID(*arr[i],riid)) 23*cdf0e10cSrcweir #endif 24*cdf0e10cSrcweir return S_OK; 25*cdf0e10cSrcweir } 26*cdf0e10cSrcweir return S_FALSE; 27*cdf0e10cSrcweir } 28*cdf0e10cSrcweir 29