1*520fa265SAndrew Rist /************************************************************** 2*520fa265SAndrew Rist * 3*520fa265SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*520fa265SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*520fa265SAndrew Rist * distributed with this work for additional information 6*520fa265SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*520fa265SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*520fa265SAndrew Rist * "License"); you may not use this file except in compliance 9*520fa265SAndrew Rist * with the License. You may obtain a copy of the License at 10*520fa265SAndrew Rist * 11*520fa265SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*520fa265SAndrew Rist * 13*520fa265SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*520fa265SAndrew Rist * software distributed under the License is distributed on an 15*520fa265SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*520fa265SAndrew Rist * KIND, either express or implied. See the License for the 17*520fa265SAndrew Rist * specific language governing permissions and limitations 18*520fa265SAndrew Rist * under the License. 19*520fa265SAndrew Rist * 20*520fa265SAndrew Rist *************************************************************/ 21*520fa265SAndrew Rist 22cdf0e10cSrcweir // SOComWindowPeer.cpp : Implementation of CHelpApp and DLL registration. 23cdf0e10cSrcweir 24cdf0e10cSrcweir #include "stdafx2.h" 25cdf0e10cSrcweir #include "so_activex.h" 26cdf0e10cSrcweir #include "SOComWindowPeer.h" 27cdf0e10cSrcweir 28cdf0e10cSrcweir ///////////////////////////////////////////////////////////////////////////// 29cdf0e10cSrcweir // 30cdf0e10cSrcweir InterfaceSupportsErrorInfo(REFIID riid)31cdf0e10cSrcweirSTDMETHODIMP SOComWindowPeer::InterfaceSupportsErrorInfo(REFIID riid) 32cdf0e10cSrcweir { 33cdf0e10cSrcweir static const IID* arr[] = 34cdf0e10cSrcweir { 35cdf0e10cSrcweir &IID_ISOComWindowPeer, 36cdf0e10cSrcweir }; 37cdf0e10cSrcweir 38cdf0e10cSrcweir for (int i=0;i<sizeof(arr)/sizeof(arr[0]);i++) 39cdf0e10cSrcweir { 40cdf0e10cSrcweir #if defined(_MSC_VER) && (_MSC_VER >= 1300) 41cdf0e10cSrcweir if (InlineIsEqualGUID(*arr[i],riid)) 42cdf0e10cSrcweir #else 43cdf0e10cSrcweir if (::ATL::InlineIsEqualGUID(*arr[i],riid)) 44cdf0e10cSrcweir #endif 45cdf0e10cSrcweir return S_OK; 46cdf0e10cSrcweir } 47cdf0e10cSrcweir return S_FALSE; 48cdf0e10cSrcweir } 49cdf0e10cSrcweir 50