ReactOS 0.4.16-dev-91-g764881a
devenum_private.h
Go to the documentation of this file.
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#pragma once
26
27#ifndef RC_INVOKED
28#include <stdarg.h>
29#endif
30
31#include "windef.h"
32#include "winbase.h"
33#include "wingdi.h"
34#include "winuser.h"
35#include "winreg.h"
36#include "winerror.h"
37
38#define COBJMACROS
39
40#include "ole2.h"
41#include "strmif.h"
42#include "olectl.h"
43#include "uuids.h"
44
45/**********************************************************************
46 * Dll lifetime tracking declaration for devenum.dll
47 */
49static inline void DEVENUM_LockModule(void) { InterlockedIncrement(&dll_refs); }
50static inline void DEVENUM_UnlockModule(void) { InterlockedDecrement(&dll_refs); }
51
53{
57};
58
59typedef struct
60{
63 CLSID class;
66 union
67 {
68 WCHAR *name; /* for filters and codecs */
69 CLSID clsid; /* for DMOs */
70 };
72
75
78
79/**********************************************************************
80 * Global string constant declarations
81 */
82
83static const WCHAR backslashW[] = {'\\',0};
84static const WCHAR clsidW[] = {'C','L','S','I','D',0};
85static const WCHAR instanceW[] = {'\\','I','n','s','t','a','n','c','e',0};
86static const WCHAR wszActiveMovieKey[] = {'S','o','f','t','w','a','r','e','\\',
87 'M','i','c','r','o','s','o','f','t','\\',
88 'A','c','t','i','v','e','M','o','v','i','e','\\',
89 'd','e','v','e','n','u','m','\\',0};
90static const WCHAR deviceW[] = {'@','d','e','v','i','c','e',':',0};
91static const WCHAR dmoW[] = {'d','m','o',':',0};
92static const WCHAR swW[] = {'s','w',':',0};
93static const WCHAR cmW[] = {'c','m',':',0};
#define InterlockedIncrement
Definition: armddk.h:53
#define InterlockedDecrement
Definition: armddk.h:52
ICreateDevEnum DEVENUM_CreateDevEnum
DECLSPEC_HIDDEN LONG dll_refs
Definition: devenum_main.c:28
static const WCHAR instanceW[]
static const WCHAR cmW[]
static const WCHAR dmoW[]
static const WCHAR wszActiveMovieKey[]
static const WCHAR deviceW[]
static const WCHAR swW[]
LONG dll_refs DECLSPEC_HIDDEN
static void DEVENUM_UnlockModule(void)
HRESULT create_EnumMoniker(REFCLSID class, IEnumMoniker **enum_mon) DECLSPEC_HIDDEN
static const WCHAR backslashW[]
device_type
@ DEVICE_FILTER
@ DEVICE_DMO
@ DEVICE_CODEC
static void DEVENUM_LockModule(void)
MediaCatMoniker * DEVENUM_IMediaCatMoniker_Construct(void) DECLSPEC_HIDDEN
Definition: mediacatenum.c:786
static const WCHAR clsidW[]
unsigned int BOOL
Definition: ntddk_ex.h:94
IParseDisplayName DEVENUM_ParseDisplayName
long LONG
Definition: pedump.c:60
#define REFCLSID
Definition: guiddef.h:117
IMoniker IMoniker_iface
enum device_type type
__wchar_t WCHAR
Definition: xmlstorage.h:180