Sweden-Number/dlls/devenum/devenum_private.h

100 lines
3.0 KiB
C
Raw Normal View History

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
* 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
*/
#ifndef RC_INVOKED
#include <stdarg.h>
#endif
2003-07-01 06:30:30 +02:00
#include "windef.h"
#include "winbase.h"
2005-04-27 13:07:55 +02:00
#include "wingdi.h"
2003-07-01 06:30:30 +02:00
#include "winuser.h"
#include "winreg.h"
#include "winerror.h"
#define COBJMACROS
2003-07-01 06:30:30 +02:00
#include "ole2.h"
#include "strmif.h"
#include "olectl.h"
2003-07-01 06:30:30 +02:00
#include "uuids.h"
#ifndef RC_INVOKED
#include "wine/unicode.h"
#endif
2003-07-01 06:30:30 +02:00
/**********************************************************************
* Dll lifetime tracking declaration for devenum.dll
*/
extern LONG dll_refs DECLSPEC_HIDDEN;
static inline void DEVENUM_LockModule(void) { InterlockedIncrement(&dll_refs); }
static inline void DEVENUM_UnlockModule(void) { InterlockedDecrement(&dll_refs); }
2003-07-01 06:30:30 +02:00
/**********************************************************************
* ClassFactory declaration for devenum.dll
*/
typedef struct
{
IClassFactory IClassFactory_iface;
2003-07-01 06:30:30 +02:00
} ClassFactoryImpl;
enum device_type
{
DEVICE_FILTER,
DEVICE_CODEC,
};
2003-07-01 06:30:30 +02:00
typedef struct
{
IMoniker IMoniker_iface;
2005-07-11 15:21:17 +02:00
LONG ref;
CLSID class;
BOOL has_class;
enum device_type type;
WCHAR *name;
2003-07-01 06:30:30 +02:00
} MediaCatMoniker;
MediaCatMoniker * DEVENUM_IMediaCatMoniker_Construct(void) DECLSPEC_HIDDEN;
HRESULT create_EnumMoniker(REFCLSID class, IEnumMoniker **enum_mon) DECLSPEC_HIDDEN;
2003-07-01 06:30:30 +02:00
extern ClassFactoryImpl DEVENUM_ClassFactory DECLSPEC_HIDDEN;
2012-04-04 10:43:12 +02:00
extern ICreateDevEnum DEVENUM_CreateDevEnum DECLSPEC_HIDDEN;
extern IParseDisplayName DEVENUM_ParseDisplayName DECLSPEC_HIDDEN;
2003-07-01 06:30:30 +02:00
/**********************************************************************
* Global string constant declarations
*/
static const WCHAR backslashW[] = {'\\',0};
static const WCHAR clsidW[] = {'C','L','S','I','D','\\',0};
static const WCHAR instanceW[] = {'\\','I','n','s','t','a','n','c','e',0};
static const WCHAR wszActiveMovieKey[] = {'S','o','f','t','w','a','r','e','\\',
'M','i','c','r','o','s','o','f','t','\\',
'A','c','t','i','v','e','M','o','v','i','e','\\',
'd','e','v','e','n','u','m','\\',0};
static const WCHAR deviceW[] = {'@','d','e','v','i','c','e',':',0};
extern const WCHAR clsid_keyname[6] DECLSPEC_HIDDEN;