[DEVENUM]
[reactos.git] / reactos / dll / directx / 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 *
21 * NOTES ON FILE:
22 * - Private file where devenum globals are declared
23 */
24
25 #include <stdarg.h>
26
27 #include "windef.h"
28 #include "winbase.h"
29 #include "wingdi.h"
30 #include "winuser.h"
31 #include "winreg.h"
32 #include "winerror.h"
33
34 #define COBJMACROS
35 #define COM_NO_WINDOWS_H
36
37 #include "ole2.h"
38 #include "olectl.h"
39 #include "wine/unicode.h"
40 #include "uuids.h"
41 #include "strmif.h"
42 /**********************************************************************
43 * Dll lifetime tracking declaration for devenum.dll
44 */
45 extern LONG dll_refs;
46 static __inline void DEVENUM_LockModule(void) { InterlockedIncrement(&dll_refs); }
47 static __inline void DEVENUM_UnlockModule(void) { InterlockedDecrement(&dll_refs); }
48
49
50 /**********************************************************************
51 * ClassFactory declaration for devenum.dll
52 */
53 typedef struct
54 {
55 IClassFactoryVtbl *lpVtbl;
56 } ClassFactoryImpl;
57
58 typedef struct
59 {
60 ICreateDevEnumVtbl *lpVtbl;
61 } CreateDevEnumImpl;
62
63 typedef struct
64 {
65 IParseDisplayNameVtbl *lpVtbl;
66 } ParseDisplayNameImpl;
67
68 typedef struct
69 {
70 IEnumMonikerVtbl *lpVtbl;
71 LONG ref;
72 DWORD index;
73 HKEY hkey;
74 BOOL bInterface;
75 } EnumMonikerImpl;
76
77 typedef struct
78 {
79 IMonikerVtbl *lpVtbl;
80
81 LONG ref;
82 HKEY hkey;
83 BOOL bInterface;
84 } MediaCatMoniker;
85
86 MediaCatMoniker * DEVENUM_IMediaCatMoniker_Construct(void);
87 HRESULT DEVENUM_IEnumMoniker_Construct(HKEY hkey, IEnumMoniker ** ppEnumMoniker, BOOL bInterface);
88 HRESULT WINAPI DEVENUM_ICreateDevEnum_CreateClassEnumerator(
89 ICreateDevEnum * iface,
90 REFCLSID clsidDeviceClass,
91 IEnumMoniker **ppEnumMoniker,
92 DWORD dwFlags);
93
94 extern ClassFactoryImpl DEVENUM_ClassFactory;
95 extern CreateDevEnumImpl DEVENUM_CreateDevEnum;
96 extern ParseDisplayNameImpl DEVENUM_ParseDisplayName;
97
98 /**********************************************************************
99 * Global string constant declarations
100 */
101 extern const WCHAR clsid_keyname[6];
102 extern const WCHAR wszInstanceKeyName[];
103 #define CLSID_STR_LEN (sizeof(clsid_keyname) / sizeof(WCHAR))
104
105 /**********************************************************************
106 * Resource IDs
107 */
108 #define IDS_DEVENUM_DSDEFAULT 7
109 #define IDS_DEVENUM_DS 8
110 #define IDS_DEVENUM_WODEFAULT 9
111 #define IDS_DEVENUM_MIDEFAULT 10
112 #define IDS_DEVENUM_KSDEFAULT 11
113 #define IDS_DEVENUM_KS 12