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