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
17d58c93
Commit
17d58c93
authored
Mar 15, 2019
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Mar 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Implement SetupDiOpenDeviceInfoA().
Signed-off-by:
Zhiyi Zhang
<
zzhang@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cb5d1910
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
11 deletions
+20
-11
devinst.c
dlls/setupapi/devinst.c
+20
-0
stubs.c
dlls/setupapi/stubs.c
+0
-11
No files found.
dlls/setupapi/devinst.c
View file @
17d58c93
...
@@ -3317,6 +3317,26 @@ HKEY WINAPI SetupDiOpenClassRegKeyExW(
...
@@ -3317,6 +3317,26 @@ HKEY WINAPI SetupDiOpenClassRegKeyExW(
}
}
/***********************************************************************
/***********************************************************************
* SetupDiOpenDeviceInfoA (SETUPAPI.@)
*/
BOOL
WINAPI
SetupDiOpenDeviceInfoA
(
HDEVINFO
devinfo
,
PCSTR
instance_id
,
HWND
hwnd_parent
,
DWORD
flags
,
PSP_DEVINFO_DATA
device_data
)
{
WCHAR
instance_idW
[
MAX_DEVICE_ID_LEN
];
TRACE
(
"%p %s %p 0x%08x %p
\n
"
,
devinfo
,
debugstr_a
(
instance_id
),
hwnd_parent
,
flags
,
device_data
);
if
(
!
instance_id
||
strlen
(
instance_id
)
>=
MAX_DEVICE_ID_LEN
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
}
MultiByteToWideChar
(
CP_ACP
,
0
,
instance_id
,
-
1
,
instance_idW
,
ARRAY_SIZE
(
instance_idW
));
return
SetupDiOpenDeviceInfoW
(
devinfo
,
instance_idW
,
hwnd_parent
,
flags
,
device_data
);
}
/***********************************************************************
* SetupDiOpenDeviceInfoW (SETUPAPI.@)
* SetupDiOpenDeviceInfoW (SETUPAPI.@)
*/
*/
BOOL
WINAPI
SetupDiOpenDeviceInfoW
(
HDEVINFO
devinfo
,
PCWSTR
instance_id
,
HWND
hwnd_parent
,
DWORD
flags
,
BOOL
WINAPI
SetupDiOpenDeviceInfoW
(
HDEVINFO
devinfo
,
PCWSTR
instance_id
,
HWND
hwnd_parent
,
DWORD
flags
,
...
...
dlls/setupapi/stubs.c
View file @
17d58c93
...
@@ -312,17 +312,6 @@ BOOL WINAPI SetupDiGetClassImageIndex(PSP_CLASSIMAGELIST_DATA ClassImageListData
...
@@ -312,17 +312,6 @@ BOOL WINAPI SetupDiGetClassImageIndex(PSP_CLASSIMAGELIST_DATA ClassImageListData
}
}
/***********************************************************************
/***********************************************************************
* SetupDiOpenDeviceInfoA (SETUPAPI.@)
*/
BOOL
WINAPI
SetupDiOpenDeviceInfoA
(
HDEVINFO
DeviceInfoSet
,
PCSTR
DeviceInstanceId
,
HWND
hwndParent
,
DWORD
OpenFlags
,
PSP_DEVINFO_DATA
DeviceInfoData
)
{
FIXME
(
"%p %s %p 0x%08x %p: stub
\n
"
,
DeviceInfoSet
,
debugstr_a
(
DeviceInstanceId
),
hwndParent
,
OpenFlags
,
DeviceInfoData
);
return
FALSE
;
}
/***********************************************************************
* CM_Locate_DevNodeA (SETUPAPI.@)
* CM_Locate_DevNodeA (SETUPAPI.@)
*/
*/
CONFIGRET
WINAPI
CM_Locate_DevNodeA
(
PDEVINST
pdnDevInst
,
DEVINSTID_A
pDeviceID
,
ULONG
ulFlags
)
CONFIGRET
WINAPI
CM_Locate_DevNodeA
(
PDEVINST
pdnDevInst
,
DEVINSTID_A
pDeviceID
,
ULONG
ulFlags
)
...
...
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