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
|
|
|
|
*/
|
|
|
|
|
2010-05-28 01:39:56 +02:00
|
|
|
#ifndef RC_INVOKED
|
2003-09-06 01:08:26 +02:00
|
|
|
#include <stdarg.h>
|
2010-05-28 01:39:56 +02:00
|
|
|
#endif
|
2003-09-06 01:08:26 +02:00
|
|
|
|
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"
|
|
|
|
|
2004-10-07 05:06:48 +02:00
|
|
|
#define COBJMACROS
|
|
|
|
|
2003-07-01 06:30:30 +02:00
|
|
|
#include "ole2.h"
|
|
|
|
#include "strmif.h"
|
2003-09-03 02:16:28 +02:00
|
|
|
#include "olectl.h"
|
2003-07-01 06:30:30 +02:00
|
|
|
#include "uuids.h"
|
|
|
|
|
2010-05-28 01:39:56 +02:00
|
|
|
#ifndef RC_INVOKED
|
|
|
|
#include "wine/unicode.h"
|
|
|
|
#endif
|
|
|
|
|
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); }
|
|
|
|
|
2003-07-01 06:30:30 +02:00
|
|
|
|
|
|
|
/**********************************************************************
|
|
|
|
* ClassFactory declaration for devenum.dll
|
|
|
|
*/
|
|
|
|
typedef struct
|
|
|
|
{
|
2011-08-01 10:34:09 +02:00
|
|
|
IClassFactory IClassFactory_iface;
|
2003-07-01 06:30:30 +02:00
|
|
|
} ClassFactoryImpl;
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
2005-05-30 12:01:08 +02:00
|
|
|
const ICreateDevEnumVtbl *lpVtbl;
|
2003-07-01 06:30:30 +02:00
|
|
|
} CreateDevEnumImpl;
|
|
|
|
|
2004-12-07 15:37:11 +01:00
|
|
|
typedef struct
|
|
|
|
{
|
2005-05-30 12:01:08 +02:00
|
|
|
const IParseDisplayNameVtbl *lpVtbl;
|
2004-12-07 15:37:11 +01:00
|
|
|
} ParseDisplayNameImpl;
|
|
|
|
|
2003-07-01 06:30:30 +02:00
|
|
|
typedef struct
|
|
|
|
{
|
2005-05-30 12:01:08 +02:00
|
|
|
const IEnumMonikerVtbl *lpVtbl;
|
2005-07-11 15:21:17 +02:00
|
|
|
LONG ref;
|
2003-07-01 06:30:30 +02:00
|
|
|
DWORD index;
|
|
|
|
HKEY hkey;
|
|
|
|
} EnumMonikerImpl;
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
2005-05-30 12:01:08 +02:00
|
|
|
const IMonikerVtbl *lpVtbl;
|
2005-07-11 15:21:17 +02:00
|
|
|
LONG ref;
|
2003-07-01 06:30:30 +02:00
|
|
|
HKEY hkey;
|
|
|
|
} MediaCatMoniker;
|
|
|
|
|
2011-05-13 16:43:26 +02:00
|
|
|
MediaCatMoniker * DEVENUM_IMediaCatMoniker_Construct(void) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT DEVENUM_IEnumMoniker_Construct(HKEY hkey, IEnumMoniker ** ppEnumMoniker) DECLSPEC_HIDDEN;
|
2003-07-01 06:30:30 +02:00
|
|
|
|
2011-05-13 16:43:26 +02:00
|
|
|
extern ClassFactoryImpl DEVENUM_ClassFactory DECLSPEC_HIDDEN;
|
|
|
|
extern CreateDevEnumImpl DEVENUM_CreateDevEnum DECLSPEC_HIDDEN;
|
|
|
|
extern ParseDisplayNameImpl DEVENUM_ParseDisplayName DECLSPEC_HIDDEN;
|
2003-07-01 06:30:30 +02:00
|
|
|
|
2008-06-29 14:07:32 +02:00
|
|
|
/**********************************************************************
|
|
|
|
* Private helper function to get AM filter category key location
|
|
|
|
*/
|
2011-05-13 16:43:26 +02:00
|
|
|
HRESULT DEVENUM_GetCategoryKey(REFCLSID clsidDeviceClass, HKEY *pBaseKey, WCHAR *wszRegKeyName, UINT maxLen) DECLSPEC_HIDDEN;
|
2008-06-29 14:07:32 +02:00
|
|
|
|
2003-07-01 06:30:30 +02:00
|
|
|
/**********************************************************************
|
|
|
|
* Global string constant declarations
|
|
|
|
*/
|
|
|
|
extern const WCHAR clsid_keyname[6];
|
|
|
|
extern const WCHAR wszInstanceKeyName[];
|
|
|
|
#define CLSID_STR_LEN (sizeof(clsid_keyname) / sizeof(WCHAR))
|
|
|
|
|
|
|
|
/**********************************************************************
|
|
|
|
* Resource IDs
|
|
|
|
*/
|
|
|
|
#define IDS_DEVENUM_DSDEFAULT 7
|
|
|
|
#define IDS_DEVENUM_DS 8
|
|
|
|
#define IDS_DEVENUM_WODEFAULT 9
|
|
|
|
#define IDS_DEVENUM_MIDEFAULT 10
|
|
|
|
#define IDS_DEVENUM_KSDEFAULT 11
|
|
|
|
#define IDS_DEVENUM_KS 12
|