devenum: Implement parsing and reading DMO monikers.
[wine.git] / dlls / devenum / devenum_private.h
blobdf0080dfc2582c43989b1f812f03c26e0a33a0c6
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 #ifndef RC_INVOKED
26 #include <stdarg.h>
27 #endif
29 #include "windef.h"
30 #include "winbase.h"
31 #include "wingdi.h"
32 #include "winuser.h"
33 #include "winreg.h"
34 #include "winerror.h"
36 #define COBJMACROS
38 #include "ole2.h"
39 #include "strmif.h"
40 #include "olectl.h"
41 #include "uuids.h"
43 #ifndef RC_INVOKED
44 #include "wine/unicode.h"
45 #endif
47 /**********************************************************************
48 * Dll lifetime tracking declaration for devenum.dll
50 extern LONG dll_refs DECLSPEC_HIDDEN;
51 static inline void DEVENUM_LockModule(void) { InterlockedIncrement(&dll_refs); }
52 static inline void DEVENUM_UnlockModule(void) { InterlockedDecrement(&dll_refs); }
55 /**********************************************************************
56 * ClassFactory declaration for devenum.dll
58 typedef struct
60 IClassFactory IClassFactory_iface;
61 } ClassFactoryImpl;
63 enum device_type
65 DEVICE_FILTER,
66 DEVICE_CODEC,
67 DEVICE_DMO,
70 typedef struct
72 IMoniker IMoniker_iface;
73 LONG ref;
74 CLSID class;
75 BOOL has_class;
76 enum device_type type;
77 union
79 WCHAR *name; /* for filters and codecs */
80 CLSID clsid; /* for DMOs */
82 } MediaCatMoniker;
84 MediaCatMoniker * DEVENUM_IMediaCatMoniker_Construct(void) DECLSPEC_HIDDEN;
85 HRESULT create_EnumMoniker(REFCLSID class, IEnumMoniker **enum_mon) DECLSPEC_HIDDEN;
87 extern ClassFactoryImpl DEVENUM_ClassFactory DECLSPEC_HIDDEN;
88 extern ICreateDevEnum DEVENUM_CreateDevEnum DECLSPEC_HIDDEN;
89 extern IParseDisplayName DEVENUM_ParseDisplayName DECLSPEC_HIDDEN;
91 /**********************************************************************
92 * Global string constant declarations
95 static const WCHAR backslashW[] = {'\\',0};
96 static const WCHAR clsidW[] = {'C','L','S','I','D','\\',0};
97 static const WCHAR instanceW[] = {'\\','I','n','s','t','a','n','c','e',0};
98 static const WCHAR wszActiveMovieKey[] = {'S','o','f','t','w','a','r','e','\\',
99 'M','i','c','r','o','s','o','f','t','\\',
100 'A','c','t','i','v','e','M','o','v','i','e','\\',
101 'd','e','v','e','n','u','m','\\',0};
102 static const WCHAR deviceW[] = {'@','d','e','v','i','c','e',':',0};
103 static const WCHAR dmoW[] = {'d','m','o',':',0};
104 static const WCHAR swW[] = {'s','w',':',0};
105 static const WCHAR cmW[] = {'c','m',':',0};
107 extern const WCHAR clsid_keyname[6] DECLSPEC_HIDDEN;