1 /*****************************************************************************
\r
2 * provideclassinfo.cpp: ActiveX control for VLC
\r
3 *****************************************************************************
\r
4 * Copyright (C) 2005 VideoLAN
\r
6 * Authors: Damien Fouilleul <Damien.Fouilleul@laposte.net>
\r
8 * This program is free software; you can redistribute it and/or modify
\r
9 * it under the terms of the GNU General Public License as published by
\r
10 * the Free Software Foundation; either version 2 of the License, or
\r
11 * (at your option) any later version.
\r
13 * This program is distributed in the hope that it will be useful,
\r
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
16 * GNU General Public License for more details.
\r
18 * You should have received a copy of the GNU General Public License
\r
19 * along with this program; if not, write to the Free Software
\r
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
\r
21 *****************************************************************************/
\r
24 #include "provideclassinfo.h"
\r
26 using namespace std;
\r
28 STDMETHODIMP VLCProvideClassInfo::GetClassInfo(ITypeInfo **ppTI)
\r
30 ITypeLib *p_typelib;
\r
35 HRESULT hr = _p_instance->getTypeLib(&p_typelib);
\r
38 hr = p_typelib->GetTypeInfoOfGuid(_p_instance->getDispEventID(), ppTI);
\r
43 p_typelib->Release();
\r
48 STDMETHODIMP VLCProvideClassInfo::GetGUID(DWORD dwGuidKind, GUID *pGUID)
\r
50 if( GUIDKIND_DEFAULT_SOURCE_DISP_IID != dwGuidKind )
\r
51 return E_INVALIDARG;
\r
56 *pGUID = _p_instance->getDispEventID();
\r