Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
6b055830
Commit
6b055830
authored
Jan 19, 2017
by
Christoph Brill
Committed by
Alexandre Julliard
Jan 25, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Stub CM_Open_DevNode_Key and CM_Get_Child.
Signed-off-by:
Christoph Brill
<
egore911@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0df25df8
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
6 deletions
+42
-6
api-ms-win-devices-config-l1-1-1.spec
...vices-config-l1-1-1/api-ms-win-devices-config-l1-1-1.spec
+2
-2
cfgmgr32.spec
dlls/cfgmgr32/cfgmgr32.spec
+2
-2
setupapi.spec
dlls/setupapi/setupapi.spec
+2
-2
stubs.c
dlls/setupapi/stubs.c
+22
-0
cfgmgr32.h
include/cfgmgr32.h
+14
-0
No files found.
dlls/api-ms-win-devices-config-l1-1-1/api-ms-win-devices-config-l1-1-1.spec
View file @
6b055830
...
...
@@ -3,7 +3,7 @@
@ stub CM_Delete_DevNode_Key
@ stub CM_Disable_DevNode
@ stub CM_Enable_DevNode
@ st
ub
CM_Get_Child
@ st
dcall CM_Get_Child(ptr long long) setupapi.
CM_Get_Child
@ stub CM_Get_Class_Property_Keys
@ stub CM_Get_Class_PropertyW
@ stdcall CM_Get_Class_Registry_PropertyW(ptr long ptr ptr long long ptr) setupapi.CM_Get_Class_Registry_PropertyW
...
...
@@ -26,7 +26,7 @@
@ stub CM_MapCrToWin32Err
@ stub CM_Open_Class_KeyW
@ stub CM_Open_Device_Interface_KeyW
@ st
ub
CM_Open_DevNode_Key
@ st
dcall CM_Open_DevNode_Key(long long long long ptr long) setupapi.
CM_Open_DevNode_Key
@ stub CM_Query_And_Remove_SubTreeW
@ stub CM_Register_Notification
@ stub CM_Set_Class_PropertyW
...
...
dlls/cfgmgr32/cfgmgr32.spec
View file @
6b055830
...
...
@@ -42,7 +42,7 @@
@ stub CM_Free_Res_Des
@ stub CM_Free_Res_Des_Ex
@ stub CM_Free_Res_Des_Handle
@ st
ub
CM_Get_Child
@ st
dcall CM_Get_Child(ptr long long) setupapi.
CM_Get_Child
@ stub CM_Get_Child_Ex
@ stub CM_Get_Class_Key_NameA
@ stub CM_Get_Class_Key_NameW
...
...
@@ -133,7 +133,7 @@
@ stub CM_Open_Class_KeyW
@ stub CM_Open_Class_Key_ExA
@ stub CM_Open_Class_Key_ExW
@ st
ub
CM_Open_DevNode_Key
@ st
dcall CM_Open_DevNode_Key(long long long long ptr long) setupapi.
CM_Open_DevNode_Key
@ stub CM_Open_DevNode_Key_Ex
@ stub CM_Query_Arbitrator_Free_Data
@ stub CM_Query_Arbitrator_Free_Data_Ex
...
...
dlls/setupapi/setupapi.spec
View file @
6b055830
...
...
@@ -53,7 +53,7 @@
@ stub CM_Free_Res_Des
@ stub CM_Free_Res_Des_Ex
@ stub CM_Free_Res_Des_Handle
@ st
ub CM_Get_Child
@ st
dcall CM_Get_Child(ptr long long)
@ stub CM_Get_Child_Ex
@ stub CM_Get_Class_Key_NameA
@ stub CM_Get_Class_Key_NameW
...
...
@@ -144,7 +144,7 @@
@ stub CM_Open_Class_KeyW
@ stub CM_Open_Class_Key_ExA
@ stub CM_Open_Class_Key_ExW
@ st
ub CM_Open_DevNode_Key
@ st
dcall CM_Open_DevNode_Key(long long long long ptr long)
@ stub CM_Open_DevNode_Key_Ex
@ stub CM_Query_And_Remove_SubTreeA
@ stub CM_Query_And_Remove_SubTreeW
...
...
dlls/setupapi/stubs.c
View file @
6b055830
...
...
@@ -79,6 +79,28 @@ CONFIGRET WINAPI CM_Disconnect_Machine(HMACHINE handle)
}
/***********************************************************************
* CM_Open_DevNode_Key (SETUPAPI.@)
*/
CONFIGRET
WINAPI
CM_Open_DevNode_Key
(
DEVINST
dnDevInst
,
REGSAM
access
,
ULONG
ulHardwareProfile
,
REGDISPOSITION
disposition
,
PHKEY
phkDevice
,
ULONG
ulFlags
)
{
FIXME
(
"0x%08x 0x%08x 0x%08x 0x%08x %p 0x%08x : stub
\n
"
,
dnDevInst
,
access
,
ulHardwareProfile
,
disposition
,
phkDevice
,
ulFlags
);
return
CR_SUCCESS
;
}
/***********************************************************************
* CM_Get_Child (SETUPAPI.@)
*/
CONFIGRET
WINAPI
CM_Get_Child
(
PDEVINST
pdnDevInst
,
DEVINST
dnDevInst
,
ULONG
ulFlags
)
{
FIXME
(
"%p 0x%08x 0x%08x: stub
\n
"
,
pdnDevInst
,
dnDevInst
,
ulFlags
);
return
CR_SUCCESS
;
}
/***********************************************************************
* CM_Get_Device_ID_ExA (SETUPAPI.@)
*/
DWORD
WINAPI
CM_Get_Device_ID_ExA
(
...
...
include/cfgmgr32.h
View file @
6b055830
...
...
@@ -25,6 +25,8 @@
# include <guiddef.h>
#endif
#include <winreg.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 */
...
...
@@ -158,11 +160,20 @@ typedef DWORD CONFIGRET;
#define CM_CRP_MIN CM_DRP_MIN
#define CM_CRP_MAX CM_DRP_MAX
#define RegDisposition_OpenAlways 0x00
#define RegDisposition_OpenExisting 0x01
#define CM_REGISTRY_HARDWARE 0x0000
#define CM_REGISTRY_SOFTWARE 0x0001
#define CM_REGISTRY_USER 0x0100
#define CM_REGISTRY_CONFIG 0x0200
typedef
DWORD
DEVINST
,
*
PDEVINST
;
typedef
DWORD
DEVNODE
,
*
PDEVNODE
;
typedef
HANDLE
HMACHINE
,
*
PHMACHINE
;
typedef
CHAR
*
DEVNODEID_A
,
*
DEVINSTID_A
;
typedef
WCHAR
*
DEVNODEID_W
,
*
DEVINSTID_W
;
typedef
ULONG
REGDISPOSITION
;
DECL_WINELIB_CFGMGR32_TYPE_AW
(
DEVNODEID
)
DECL_WINELIB_CFGMGR32_TYPE_AW
(
DEVINSTID
)
...
...
@@ -196,6 +207,9 @@ CMAPI WORD WINAPI CM_Get_Version(void);
CMAPI
CONFIGRET
WINAPI
CM_Locate_DevNodeA
(
PDEVINST
,
DEVINSTID_A
,
ULONG
);
CMAPI
CONFIGRET
WINAPI
CM_Locate_DevNodeW
(
PDEVINST
,
DEVINSTID_W
,
ULONG
);
#define CM_Locate_DevNode WINELIB_NAME_AW(CM_Locate_DevNode)
CMAPI
CONFIGRET
WINAPI
CM_Open_DevNode_Key
(
DEVINST
dnDevInst
,
REGSAM
access
,
ULONG
ulHardwareProfile
,
REGDISPOSITION
disposition
,
PHKEY
phkDevice
,
ULONG
ulFlags
);
CMAPI
CONFIGRET
WINAPI
CM_Get_Child
(
PDEVINST
pdnDevInst
,
DEVINST
dnDevInst
,
ULONG
ulFlags
);
#ifdef __cplusplus
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment