Commit 27a537d1 authored by Ricardo Filipe's avatar Ricardo Filipe Committed by Alexandre Julliard

include: Add DEVNODEID and DEVINSTID definitions.

parent f36172ff
...@@ -21,6 +21,13 @@ ...@@ -21,6 +21,13 @@
/* FIXME: #include <cfg.h> */ /* FIXME: #include <cfg.h> */
/* cfgmgr32 doesn't use the normal convention, it adds an underscore before A/W */
#ifdef WINE_NO_UNICODE_MACROS
# define DECL_WINELIB_CFGMGR32_TYPE_AW(type) /* nothing */
#else
# define DECL_WINELIB_CFGMGR32_TYPE_AW(type) typedef WINELIB_NAME_AW(type##_) type;
#endif
#define CMAPI #define CMAPI
typedef DWORD CONFIGRET; typedef DWORD CONFIGRET;
...@@ -97,6 +104,11 @@ typedef DWORD CONFIGRET; ...@@ -97,6 +104,11 @@ typedef DWORD CONFIGRET;
typedef DWORD DEVINST, *PDEVINST; typedef DWORD DEVINST, *PDEVINST;
typedef DWORD DEVNODE, *PDEVNODE; typedef DWORD DEVNODE, *PDEVNODE;
typedef HANDLE HMACHINE, *PHMACHINE; typedef HANDLE HMACHINE, *PHMACHINE;
typedef CHAR *DEVNODEID_A, *DEVINSTID_A;
typedef WCHAR *DEVNODEID_W, *DEVINSTID_W;
DECL_WINELIB_CFGMGR32_TYPE_AW(DEVNODEID)
DECL_WINELIB_CFGMGR32_TYPE_AW(DEVINSTID)
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
...@@ -122,4 +134,6 @@ CMAPI CONFIGRET WINAPI CM_Get_Device_ID_Size_Ex(PULONG,DEVINST,ULONG,HMACHINE); ...@@ -122,4 +134,6 @@ CMAPI CONFIGRET WINAPI CM_Get_Device_ID_Size_Ex(PULONG,DEVINST,ULONG,HMACHINE);
} }
#endif #endif
#undef DECL_WINELIB_CFGMGR32_TYPE_AW
#endif /* _CFGMGR32_H_ */ #endif /* _CFGMGR32_H_ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment