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
51cd07c3
Commit
51cd07c3
authored
Jul 20, 2006
by
Christian Gmeiner
Committed by
Alexandre Julliard
Jul 21, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Implemented SetupDiCreateDeviceInfoA.
parent
dce52c1b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
1 deletion
+44
-1
devinst.c
dlls/setupapi/devinst.c
+40
-0
setupapi.spec
dlls/setupapi/setupapi.spec
+1
-1
setupapi.h
include/setupapi.h
+3
-0
No files found.
dlls/setupapi/devinst.c
View file @
51cd07c3
...
@@ -697,6 +697,46 @@ SetupDiCreateDeviceInfoListExW(const GUID *ClassGuid,
...
@@ -697,6 +697,46 @@ SetupDiCreateDeviceInfoListExW(const GUID *ClassGuid,
}
}
/***********************************************************************
/***********************************************************************
* SetupDiCreateDeviceInfoA (SETUPAPI.@)
*/
BOOL
WINAPI
SetupDiCreateDeviceInfoA
(
HDEVINFO
DeviceInfoSet
,
PCSTR
DeviceName
,
CONST
GUID
*
ClassGuid
,
PCSTR
DeviceDescription
,
HWND
hwndParent
,
DWORD
CreationFlags
,
PSP_DEVINFO_DATA
DeviceInfoData
)
{
BOOL
ret
=
FALSE
;
LPWSTR
DeviceNameW
=
NULL
;
LPWSTR
DeviceDescriptionW
=
NULL
;
if
(
DeviceName
)
{
DeviceNameW
=
MultiByteToUnicode
(
DeviceName
,
CP_ACP
);
if
(
DeviceNameW
==
NULL
)
return
FALSE
;
}
if
(
DeviceDescription
)
{
DeviceDescriptionW
=
MultiByteToUnicode
(
DeviceDescription
,
CP_ACP
);
if
(
DeviceDescriptionW
==
NULL
)
{
MyFree
(
DeviceNameW
);
return
FALSE
;
}
}
ret
=
SetupDiCreateDeviceInfoW
(
DeviceInfoSet
,
DeviceNameW
,
ClassGuid
,
DeviceDescriptionW
,
hwndParent
,
CreationFlags
,
DeviceInfoData
);
MyFree
(
DeviceNameW
);
MyFree
(
DeviceDescriptionW
);
return
ret
;
}
/***********************************************************************
* SetupDiCreateDeviceInfoW (SETUPAPI.@)
* SetupDiCreateDeviceInfoW (SETUPAPI.@)
*/
*/
BOOL
WINAPI
SetupDiCreateDeviceInfoW
(
BOOL
WINAPI
SetupDiCreateDeviceInfoW
(
...
...
dlls/setupapi/setupapi.spec
View file @
51cd07c3
...
@@ -282,7 +282,7 @@
...
@@ -282,7 +282,7 @@
@ stdcall SetupDiClassNameFromGuidW(ptr wstr long ptr)
@ stdcall SetupDiClassNameFromGuidW(ptr wstr long ptr)
@ stub SetupDiCreateDevRegKeyA
@ stub SetupDiCreateDevRegKeyA
@ stub SetupDiCreateDevRegKeyW
@ stub SetupDiCreateDevRegKeyW
@ st
ub SetupDiCreateDeviceInfoA
@ st
dcall SetupDiCreateDeviceInfoA(long str ptr str long long ptr)
@ stdcall SetupDiCreateDeviceInfoList(ptr ptr)
@ stdcall SetupDiCreateDeviceInfoList(ptr ptr)
@ stdcall SetupDiCreateDeviceInfoListExA(ptr long str ptr)
@ stdcall SetupDiCreateDeviceInfoListExA(ptr long str ptr)
@ stdcall SetupDiCreateDeviceInfoListExW(ptr long str ptr)
@ stdcall SetupDiCreateDeviceInfoListExW(ptr long str ptr)
...
...
include/setupapi.h
View file @
51cd07c3
...
@@ -744,6 +744,9 @@ HDEVINFO WINAPI SetupDiCreateDeviceInfoList(const GUID *, HWND);
...
@@ -744,6 +744,9 @@ HDEVINFO WINAPI SetupDiCreateDeviceInfoList(const GUID *, HWND);
HDEVINFO
WINAPI
SetupDiCreateDeviceInfoListExA
(
const
GUID
*
,
HWND
,
PCSTR
,
PVOID
);
HDEVINFO
WINAPI
SetupDiCreateDeviceInfoListExA
(
const
GUID
*
,
HWND
,
PCSTR
,
PVOID
);
HDEVINFO
WINAPI
SetupDiCreateDeviceInfoListExW
(
const
GUID
*
,
HWND
,
PCWSTR
,
PVOID
);
HDEVINFO
WINAPI
SetupDiCreateDeviceInfoListExW
(
const
GUID
*
,
HWND
,
PCWSTR
,
PVOID
);
#define SetupDiCreateDeviceInfoListEx WINELIB_NAME_AW(SetupDiCreateDeviceInfoListEx)
#define SetupDiCreateDeviceInfoListEx WINELIB_NAME_AW(SetupDiCreateDeviceInfoListEx)
BOOL
WINAPI
SetupDiCreateDeviceInfoA
(
HDEVINFO
,
PCSTR
,
CONST
GUID
*
,
PCSTR
,
HWND
,
DWORD
,
PSP_DEVINFO_DATA
);
BOOL
WINAPI
SetupDiCreateDeviceInfoW
(
HDEVINFO
,
PCWSTR
,
CONST
GUID
*
,
PCWSTR
,
HWND
,
DWORD
,
PSP_DEVINFO_DATA
);
#define SetupDiCreateDeviceInfo WINELIB_NAME_AW(SetupDiCreateDeviceInfo)
BOOL
WINAPI
SetupDiDestroyDeviceInfoList
(
HDEVINFO
);
BOOL
WINAPI
SetupDiDestroyDeviceInfoList
(
HDEVINFO
);
BOOL
WINAPI
SetupDiEnumDeviceInfo
(
HDEVINFO
,
DWORD
,
PSP_DEVINFO_DATA
);
BOOL
WINAPI
SetupDiEnumDeviceInfo
(
HDEVINFO
,
DWORD
,
PSP_DEVINFO_DATA
);
BOOL
WINAPI
SetupDiEnumDeviceInterfaces
(
HDEVINFO
,
PSP_DEVINFO_DATA
,
const
GUID
*
,
DWORD
,
PSP_DEVICE_INTERFACE_DATA
);
BOOL
WINAPI
SetupDiEnumDeviceInterfaces
(
HDEVINFO
,
PSP_DEVINFO_DATA
,
const
GUID
*
,
DWORD
,
PSP_DEVICE_INTERFACE_DATA
);
...
...
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