setupapi: Implement SetupDiOpenDeviceInfoA().
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
cb5d191064
commit
17d58c93f3
|
@ -3316,6 +3316,26 @@ HKEY WINAPI SetupDiOpenClassRegKeyExW(
|
|||
return key;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* 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.@)
|
||||
*/
|
||||
|
|
|
@ -311,17 +311,6 @@ BOOL WINAPI SetupDiGetClassImageIndex(PSP_CLASSIMAGELIST_DATA ClassImageListData
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* 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.@)
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue