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