2003-07-01 06:30:30 +02:00
|
|
|
/*
|
|
|
|
* includes for devenum.dll
|
|
|
|
*
|
|
|
|
* Copyright (C) 2002 John K. Hohm
|
|
|
|
* Copyright (C) 2002 Robert Shearman
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2003-07-01 06:30:30 +02:00
|
|
|
*
|
|
|
|
* NOTES ON FILE:
|
|
|
|
* - Private file where devenum globals are declared
|
|
|
|
*/
|
|
|
|
|
2004-10-07 05:06:48 +02:00
|
|
|
#define COBJMACROS
|
2020-04-16 21:46:06 +02:00
|
|
|
#include "dshow.h"
|
|
|
|
#include "dmo.h"
|
|
|
|
#include "dmodshow.h"
|
2003-07-01 06:30:30 +02:00
|
|
|
|
|
|
|
/**********************************************************************
|
|
|
|
* Dll lifetime tracking declaration for devenum.dll
|
|
|
|
*/
|
2011-05-13 16:43:26 +02:00
|
|
|
extern LONG dll_refs DECLSPEC_HIDDEN;
|
2004-12-07 15:37:11 +01:00
|
|
|
static inline void DEVENUM_LockModule(void) { InterlockedIncrement(&dll_refs); }
|
|
|
|
static inline void DEVENUM_UnlockModule(void) { InterlockedDecrement(&dll_refs); }
|
|
|
|
|
2018-03-07 03:57:08 +01:00
|
|
|
enum device_type
|
|
|
|
{
|
|
|
|
DEVICE_FILTER,
|
|
|
|
DEVICE_CODEC,
|
2018-06-25 00:20:29 +02:00
|
|
|
DEVICE_DMO,
|
2018-03-07 03:57:08 +01:00
|
|
|
};
|
|
|
|
|
2020-04-11 17:49:41 +02:00
|
|
|
struct moniker
|
2003-07-01 06:30:30 +02:00
|
|
|
{
|
2012-04-03 00:18:39 +02:00
|
|
|
IMoniker IMoniker_iface;
|
2005-07-11 15:21:17 +02:00
|
|
|
LONG ref;
|
2018-03-07 03:57:09 +01:00
|
|
|
CLSID class;
|
|
|
|
BOOL has_class;
|
|
|
|
enum device_type type;
|
2020-04-15 05:22:50 +02:00
|
|
|
WCHAR *name; /* for filters and codecs */
|
|
|
|
CLSID clsid; /* for DMOs */
|
2020-04-14 07:16:04 +02:00
|
|
|
|
|
|
|
IPropertyBag IPropertyBag_iface;
|
2020-04-11 17:49:41 +02:00
|
|
|
};
|
2003-07-01 06:30:30 +02:00
|
|
|
|
2020-05-15 23:09:19 +02:00
|
|
|
HRESULT create_filter_data(VARIANT *var, REGFILTER2 *rgf) DECLSPEC_HIDDEN;
|
2020-04-11 17:49:43 +02:00
|
|
|
struct moniker *dmo_moniker_create(const GUID class, const GUID clsid) DECLSPEC_HIDDEN;
|
|
|
|
struct moniker *codec_moniker_create(const GUID *class, const WCHAR *name) DECLSPEC_HIDDEN;
|
|
|
|
struct moniker *filter_moniker_create(const GUID *class, const WCHAR *name) DECLSPEC_HIDDEN;
|
2020-04-11 17:49:40 +02:00
|
|
|
HRESULT enum_moniker_create(REFCLSID class, IEnumMoniker **enum_mon) DECLSPEC_HIDDEN;
|
2003-07-01 06:30:30 +02:00
|
|
|
|
2020-04-11 17:49:40 +02:00
|
|
|
extern ICreateDevEnum devenum_factory DECLSPEC_HIDDEN;
|
|
|
|
extern IParseDisplayName devenum_parser DECLSPEC_HIDDEN;
|