devenum_private.h 2.9 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
/*
 *	includes for devenum.dll
 *
 * Copyright (C) 2002 John K. Hohm
 * Copyright (C) 2002 Robert Shearman
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 * NOTES ON FILE:
 * - Private file where devenum globals are declared
 */

25 26
#include <stdarg.h>

27 28 29 30 31 32 33 34 35
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
#include "winreg.h"
#include "winerror.h"

#define COM_NO_WINDOWS_H
#include "ole2.h"
#include "strmif.h"
36
#include "olectl.h"
37 38 39 40 41 42 43 44 45 46 47 48 49 50
#include "wine/unicode.h"
#include "uuids.h"

/**********************************************************************
 * Dll lifetime tracking declaration for devenum.dll
 */
extern DWORD dll_ref;

/**********************************************************************
 * ClassFactory declaration for devenum.dll
 */
typedef struct
{
    /* IUnknown fields */
51
    IClassFactoryVtbl *lpVtbl;
52 53 54 55 56
    DWORD ref;
} ClassFactoryImpl;

typedef struct
{
57
    ICreateDevEnumVtbl *lpVtbl;
58 59 60 61 62
    DWORD ref;
} CreateDevEnumImpl;

typedef struct
{
63
    IEnumMonikerVtbl *lpVtbl;
64 65 66 67 68 69 70
    DWORD ref;
    DWORD index;
    HKEY hkey;
} EnumMonikerImpl;

typedef struct
{
71
    IMonikerVtbl *lpVtbl;
72 73 74 75 76 77 78

    DWORD ref;
    HKEY hkey;
} MediaCatMoniker;

typedef struct
{
79
    IPropertyBagVtbl *lpVtbl;
80 81 82 83 84 85
    DWORD ref;
    HKEY hkey;
} RegPropBagImpl;

typedef struct
{
86
    IParseDisplayNameVtbl *lpVtbl;
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
    DWORD ref;
} ParseDisplayNameImpl;

MediaCatMoniker * DEVENUM_IMediaCatMoniker_Construct();
HRESULT WINAPI DEVENUM_ICreateDevEnum_CreateClassEnumerator(
    ICreateDevEnum * iface,
    REFCLSID clsidDeviceClass,
    IEnumMoniker **ppEnumMoniker,
    DWORD dwFlags);

extern ClassFactoryImpl DEVENUM_ClassFactory;
extern CreateDevEnumImpl DEVENUM_CreateDevEnum;
extern ParseDisplayNameImpl DEVENUM_ParseDisplayName;

/**********************************************************************
 * Global string constant declarations
 */
extern const WCHAR clsid_keyname[6];
extern const WCHAR wszInstanceKeyName[];
#define CLSID_STR_LEN (sizeof(clsid_keyname) / sizeof(WCHAR))

/**********************************************************************
 * Resource IDs
 */
#define IDS_DEVENUM_DSDEFAULT 7
#define IDS_DEVENUM_DS        8
#define IDS_DEVENUM_WODEFAULT 9
#define IDS_DEVENUM_MIDEFAULT 10
#define IDS_DEVENUM_KSDEFAULT 11
#define IDS_DEVENUM_KS        12