/**********************************************************************/ /** Microsoft Passport **/ /** Copyright(c) Microsoft Corporation, 1999 - 2001 **/ /**********************************************************************/ /* PassportFactory.cpp FILE HISTORY: */ // PassportFactory.cpp : Implementation of CPassportFactory #include "stdafx.h" #include "PassportFactory.h" using namespace ATL; ///////////////////////////////////////////////////////////////////////////// // CPassportFactory //=========================================================================== // // InterfaceSupportsErrorInfo // STDMETHODIMP CPassportFactory::InterfaceSupportsErrorInfo(REFIID riid) { static const IID* arr[] = { &IID_IPassportFactory, }; for (int i=0;i* pObj = NULL; * ppDispPassportManager = NULL; hr = ATL::CComObject::CreateInstance(&pObj); // this has 0 ref count on it, don't need release here if (hr == S_OK && pObj) { hr = pObj->QueryInterface(__uuidof(IDispatch), (void**)ppDispPassportManager); } Cleanup: return hr; }