[DEVENUM]

* Move some inclusions to the main header.
* Set the default debugging channel globally through the main header.
* Extract the resource IDs into resource.h and include it in both the main header and the resource file.
* Remove inclusions and definitions that already exist in the main header.
CORE-7716

svn path=/trunk/; revision=61327
This commit is contained in:
Amine Khaldi 2013-12-21 18:21:51 +00:00
parent cd74723d2f
commit b54cee4f88
8 changed files with 19 additions and 42 deletions

View file

@ -23,18 +23,9 @@
* - Also creates the special registry keys created at run-time
*/
#define NONAMELESSSTRUCT
#define NONAMELESSUNION
#include "devenum_private.h"
#include <vfw.h>
#include <wine/debug.h>
//#include "wine/unicode.h"
//#include "mmddk.h"
WINE_DEFAULT_DEBUG_CHANNEL(devenum);
extern HINSTANCE DEVENUM_hInstance;
const WCHAR wszInstanceKeyName[] ={'I','n','s','t','a','n','c','e',0};

View file

@ -20,10 +20,8 @@
#pragma code_page(65001)
//#include "windef.h"
//#include "winbase.h"
//#include "winnls.h"
#include "devenum_private.h"
#include <windef.h>
#include "resource.h"
LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT

View file

@ -21,9 +21,6 @@
#include "devenum_private.h"
#include <rpcproxy.h>
#include <wine/debug.h>
WINE_DEFAULT_DEBUG_CHANNEL(devenum);
DECLSPEC_HIDDEN LONG dll_refs;
DECLSPEC_HIDDEN HINSTANCE DEVENUM_hInstance;

View file

@ -30,24 +30,29 @@
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H
#define NONAMELESSSTRUCT
#define NONAMELESSUNION
#include <windef.h>
#include <winbase.h>
#include <wingdi.h>
//#include "winuser.h"
#include <winreg.h>
//#include "winerror.h"
#define COBJMACROS
#include <ole2.h>
#include <strmif.h>
//#include "olectl.h"
#include <uuids.h>
#include <wine/debug.h>
WINE_DEFAULT_DEBUG_CHANNEL(devenum);
#ifndef RC_INVOKED
#include <wine/unicode.h>
#endif
#include "resource.h"
/**********************************************************************
* Dll lifetime tracking declaration for devenum.dll
*/
@ -89,13 +94,3 @@ HRESULT DEVENUM_GetCategoryKey(REFCLSID clsidDeviceClass, HKEY *pBaseKey, WCHAR
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

View file

@ -21,10 +21,6 @@
#include "devenum_private.h"
#include <wine/debug.h>
WINE_DEFAULT_DEBUG_CHANNEL(devenum);
/**********************************************************************
* DEVENUM_IClassFactory_QueryInterface (also IUnknown)
*/

View file

@ -23,13 +23,8 @@
*/
#include "devenum_private.h"
//#include "oleauto.h"
#include <ocidl.h>
#include <wine/debug.h>
WINE_DEFAULT_DEBUG_CHANNEL(devenum);
typedef struct
{
IEnumMoniker IEnumMoniker_iface;

View file

@ -21,12 +21,9 @@
* - Implements IParseDisplayName interface which creates a moniker
* from a string in a special format
*/
#include "devenum_private.h"
#include <wine/debug.h>
WINE_DEFAULT_DEBUG_CHANNEL(devenum);
static HRESULT WINAPI DEVENUM_IParseDisplayName_QueryInterface(IParseDisplayName *iface,
REFIID riid, void **ppv)
{

View file

@ -0,0 +1,8 @@
#pragma once
#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