makefiles: Remove makedep only after everything else has been cleaned.
[wine.git] / dlls / devenum / devenum_private.h
blob5266d0309f06455b5515a6950ca2d98230a381c5
1 /*
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
21 * NOTES ON FILE:
22 * - Private file where devenum globals are declared
25 #include <stdarg.h>
27 #include "windef.h"
28 #include "winbase.h"
29 #include "wingdi.h"
30 #include "winuser.h"
31 #include "winreg.h"
32 #include "winerror.h"
34 #define COBJMACROS
36 #include "ole2.h"
37 #include "strmif.h"
38 #include "olectl.h"
39 #include "wine/unicode.h"
40 #include "uuids.h"
42 /**********************************************************************
43 * Dll lifetime tracking declaration for devenum.dll
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); }
50 /**********************************************************************
51 * ClassFactory declaration for devenum.dll
53 typedef struct
55 const IClassFactoryVtbl *lpVtbl;
56 } ClassFactoryImpl;
58 typedef struct
60 const ICreateDevEnumVtbl *lpVtbl;
61 } CreateDevEnumImpl;
63 typedef struct
65 const IParseDisplayNameVtbl *lpVtbl;
66 } ParseDisplayNameImpl;
68 typedef struct
70 const IEnumMonikerVtbl *lpVtbl;
71 LONG ref;
72 DWORD index;
73 HKEY hkey;
74 } EnumMonikerImpl;
76 typedef struct
78 const IMonikerVtbl *lpVtbl;
79 LONG ref;
80 HKEY hkey;
81 } MediaCatMoniker;
83 MediaCatMoniker * DEVENUM_IMediaCatMoniker_Construct(void);
84 HRESULT DEVENUM_IEnumMoniker_Construct(HKEY hkey, IEnumMoniker ** ppEnumMoniker);
86 extern ClassFactoryImpl DEVENUM_ClassFactory;
87 extern CreateDevEnumImpl DEVENUM_CreateDevEnum;
88 extern ParseDisplayNameImpl DEVENUM_ParseDisplayName;
90 /**********************************************************************
91 * Private helper function to get AM filter category key location
93 HRESULT DEVENUM_GetCategoryKey(REFCLSID clsidDeviceClass, HKEY *pBaseKey, WCHAR *wszRegKeyName, UINT maxLen);
95 /**********************************************************************
96 * Global string constant declarations
98 extern const WCHAR clsid_keyname[6];
99 extern const WCHAR wszInstanceKeyName[];
100 #define CLSID_STR_LEN (sizeof(clsid_keyname) / sizeof(WCHAR))
102 /**********************************************************************
103 * Resource IDs
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