Sweden-Number/dlls/devenum/devenum_private.h

117 lines
2.9 KiB
C
Raw Normal View History

2003-07-01 06:30:30 +02:00
/*
* 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
*/
#include <stdarg.h>
2003-07-01 06:30:30 +02:00
#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"
#include "olectl.h"
2003-07-01 06:30:30 +02:00
#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 */
IClassFactoryVtbl *lpVtbl;
2003-07-01 06:30:30 +02:00
DWORD ref;
} ClassFactoryImpl;
typedef struct
{
ICreateDevEnumVtbl *lpVtbl;
2003-07-01 06:30:30 +02:00
DWORD ref;
} CreateDevEnumImpl;
typedef struct
{
IEnumMonikerVtbl *lpVtbl;
2003-07-01 06:30:30 +02:00
DWORD ref;
DWORD index;
HKEY hkey;
} EnumMonikerImpl;
typedef struct
{
IMonikerVtbl *lpVtbl;
2003-07-01 06:30:30 +02:00
DWORD ref;
HKEY hkey;
} MediaCatMoniker;
typedef struct
{
IPropertyBagVtbl *lpVtbl;
2003-07-01 06:30:30 +02:00
DWORD ref;
HKEY hkey;
} RegPropBagImpl;
typedef struct
{
IParseDisplayNameVtbl *lpVtbl;
2003-07-01 06:30:30 +02:00
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