2 * includes for devenum.dll
4 * Copyright (C) 2002 John K. Hohm
5 * Copyright (C) 2002 Robert Shearman
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 * - Private file where devenum globals are declared
44 #include "wine/unicode.h"
47 /**********************************************************************
48 * Dll lifetime tracking declaration for devenum.dll
50 extern LONG dll_refs DECLSPEC_HIDDEN
;
51 static inline void DEVENUM_LockModule(void) { InterlockedIncrement(&dll_refs
); }
52 static inline void DEVENUM_UnlockModule(void) { InterlockedDecrement(&dll_refs
); }
55 /**********************************************************************
56 * ClassFactory declaration for devenum.dll
60 IClassFactory IClassFactory_iface
;
65 const ICreateDevEnumVtbl
*lpVtbl
;
70 const IParseDisplayNameVtbl
*lpVtbl
;
71 } ParseDisplayNameImpl
;
75 const IEnumMonikerVtbl
*lpVtbl
;
83 const IMonikerVtbl
*lpVtbl
;
88 MediaCatMoniker
* DEVENUM_IMediaCatMoniker_Construct(void) DECLSPEC_HIDDEN
;
89 HRESULT
DEVENUM_IEnumMoniker_Construct(HKEY hkey
, IEnumMoniker
** ppEnumMoniker
) DECLSPEC_HIDDEN
;
91 extern ClassFactoryImpl DEVENUM_ClassFactory DECLSPEC_HIDDEN
;
92 extern CreateDevEnumImpl DEVENUM_CreateDevEnum DECLSPEC_HIDDEN
;
93 extern ParseDisplayNameImpl DEVENUM_ParseDisplayName DECLSPEC_HIDDEN
;
95 /**********************************************************************
96 * Private helper function to get AM filter category key location
98 HRESULT
DEVENUM_GetCategoryKey(REFCLSID clsidDeviceClass
, HKEY
*pBaseKey
, WCHAR
*wszRegKeyName
, UINT maxLen
) DECLSPEC_HIDDEN
;
100 /**********************************************************************
101 * Global string constant declarations
103 extern const WCHAR clsid_keyname
[6];
104 extern const WCHAR wszInstanceKeyName
[];
105 #define CLSID_STR_LEN (sizeof(clsid_keyname) / sizeof(WCHAR))
107 /**********************************************************************
110 #define IDS_DEVENUM_DSDEFAULT 7
111 #define IDS_DEVENUM_DS 8
112 #define IDS_DEVENUM_WODEFAULT 9
113 #define IDS_DEVENUM_MIDEFAULT 10
114 #define IDS_DEVENUM_KSDEFAULT 11
115 #define IDS_DEVENUM_KS 12