makefiles: Add a standard header for all makefiles to replace the common variable...
[wine] / dlls / devenum / devenum_private.h
1 /*
2  *      includes for devenum.dll
3  *
4  * Copyright (C) 2002 John K. Hohm
5  * Copyright (C) 2002 Robert Shearman
6  *
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.
11  *
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.
16  *
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
20  *
21  * NOTES ON FILE:
22  * - Private file where devenum globals are declared
23  */
24
25 #ifndef RC_INVOKED
26 #include <stdarg.h>
27 #endif
28
29 #include "windef.h"
30 #include "winbase.h"
31 #include "wingdi.h"
32 #include "winuser.h"
33 #include "winreg.h"
34 #include "winerror.h"
35
36 #define COBJMACROS
37
38 #include "ole2.h"
39 #include "strmif.h"
40 #include "olectl.h"
41 #include "uuids.h"
42
43 #ifndef RC_INVOKED
44 #include "wine/unicode.h"
45 #endif
46
47 /**********************************************************************
48  * Dll lifetime tracking declaration for devenum.dll
49  */
50 extern LONG dll_refs;
51 static inline void DEVENUM_LockModule(void) { InterlockedIncrement(&dll_refs); }
52 static inline void DEVENUM_UnlockModule(void) { InterlockedDecrement(&dll_refs); }
53
54
55 /**********************************************************************
56  * ClassFactory declaration for devenum.dll
57  */
58 typedef struct
59 {
60     const IClassFactoryVtbl *lpVtbl;
61 } ClassFactoryImpl;
62
63 typedef struct
64 {
65     const ICreateDevEnumVtbl *lpVtbl;
66 } CreateDevEnumImpl;
67
68 typedef struct
69 {
70     const IParseDisplayNameVtbl *lpVtbl;
71 } ParseDisplayNameImpl;
72
73 typedef struct
74 {
75     const IEnumMonikerVtbl *lpVtbl;
76     LONG ref;
77     DWORD index;
78     HKEY hkey;
79 } EnumMonikerImpl;
80
81 typedef struct
82 {
83     const IMonikerVtbl *lpVtbl;
84     LONG ref;
85     HKEY hkey;
86 } MediaCatMoniker;
87
88 MediaCatMoniker * DEVENUM_IMediaCatMoniker_Construct(void);
89 HRESULT DEVENUM_IEnumMoniker_Construct(HKEY hkey, IEnumMoniker ** ppEnumMoniker);
90
91 extern ClassFactoryImpl DEVENUM_ClassFactory;
92 extern CreateDevEnumImpl DEVENUM_CreateDevEnum;
93 extern ParseDisplayNameImpl DEVENUM_ParseDisplayName;
94
95 /**********************************************************************
96  * Private helper function to get AM filter category key location
97  */
98 HRESULT DEVENUM_GetCategoryKey(REFCLSID clsidDeviceClass, HKEY *pBaseKey, WCHAR *wszRegKeyName, UINT maxLen);
99
100 /**********************************************************************
101  * Global string constant declarations
102  */
103 extern const WCHAR clsid_keyname[6];
104 extern const WCHAR wszInstanceKeyName[];
105 #define CLSID_STR_LEN (sizeof(clsid_keyname) / sizeof(WCHAR))
106
107 /**********************************************************************
108  * Resource IDs
109  */
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