[DEVENUM]
[reactos.git] / reactos / dll / directx / wine / 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 #define WIN32_NO_STATUS
30 #define _INC_WINDOWS
31 #define COM_NO_WINDOWS_H
32
33 #define COBJMACROS
34 #define NONAMELESSSTRUCT
35 #define NONAMELESSUNION
36
37 #include <windef.h>
38 #include <winbase.h>
39 #include <wingdi.h>
40 #include <winreg.h>
41 #include <objbase.h>
42 #include <oleidl.h>
43 #include <strmif.h>
44 #include <uuids.h>
45
46 #include <wine/debug.h>
47 WINE_DEFAULT_DEBUG_CHANNEL(devenum);
48
49 #ifndef RC_INVOKED
50 #include <wine/unicode.h>
51 #endif
52
53 /**********************************************************************
54 * Dll lifetime tracking declaration for devenum.dll
55 */
56 extern LONG dll_refs DECLSPEC_HIDDEN;
57 static inline void DEVENUM_LockModule(void) { InterlockedIncrement(&dll_refs); }
58 static inline void DEVENUM_UnlockModule(void) { InterlockedDecrement(&dll_refs); }
59
60
61 /**********************************************************************
62 * ClassFactory declaration for devenum.dll
63 */
64 typedef struct
65 {
66 IClassFactory IClassFactory_iface;
67 } ClassFactoryImpl;
68
69 typedef struct
70 {
71 IMoniker IMoniker_iface;
72 LONG ref;
73 HKEY hkey;
74 } MediaCatMoniker;
75
76 MediaCatMoniker * DEVENUM_IMediaCatMoniker_Construct(void) DECLSPEC_HIDDEN;
77 HRESULT DEVENUM_IEnumMoniker_Construct(HKEY hkey, IEnumMoniker ** ppEnumMoniker) DECLSPEC_HIDDEN;
78
79 extern ClassFactoryImpl DEVENUM_ClassFactory DECLSPEC_HIDDEN;
80 extern ICreateDevEnum DEVENUM_CreateDevEnum DECLSPEC_HIDDEN;
81 extern IParseDisplayName DEVENUM_ParseDisplayName DECLSPEC_HIDDEN;
82
83 /**********************************************************************
84 * Private helper function to get AM filter category key location
85 */
86 HRESULT DEVENUM_GetCategoryKey(REFCLSID clsidDeviceClass, HKEY *pBaseKey, WCHAR *wszRegKeyName, UINT maxLen) DECLSPEC_HIDDEN;
87
88 /**********************************************************************
89 * Global string constant declarations
90 */
91 extern const WCHAR clsid_keyname[6];
92 extern const WCHAR wszInstanceKeyName[];
93 #define CLSID_STR_LEN (sizeof(clsid_keyname) / sizeof(WCHAR))