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
09524be5
Commit
09524be5
authored
Sep 23, 2013
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Sep 23, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Avoid using CONST.
parent
9fefae61
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
42 deletions
+15
-42
devinst.c
dlls/setupapi/devinst.c
+13
-40
devinst.c
dlls/setupapi/tests/devinst.c
+2
-2
No files found.
dlls/setupapi/devinst.c
View file @
09524be5
...
...
@@ -1310,14 +1310,9 @@ HKEY WINAPI SetupDiCreateDevRegKeyW(
/***********************************************************************
* SetupDiCreateDeviceInfoA (SETUPAPI.@)
*/
BOOL
WINAPI
SetupDiCreateDeviceInfoA
(
HDEVINFO
DeviceInfoSet
,
PCSTR
DeviceName
,
CONST
GUID
*
ClassGuid
,
PCSTR
DeviceDescription
,
HWND
hwndParent
,
DWORD
CreationFlags
,
PSP_DEVINFO_DATA
DeviceInfoData
)
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
;
...
...
@@ -1373,14 +1368,9 @@ static DWORD SETUPDI_DevNameToDevID(LPCWSTR devName)
/***********************************************************************
* SetupDiCreateDeviceInfoW (SETUPAPI.@)
*/
BOOL
WINAPI
SetupDiCreateDeviceInfoW
(
HDEVINFO
DeviceInfoSet
,
PCWSTR
DeviceName
,
CONST
GUID
*
ClassGuid
,
PCWSTR
DeviceDescription
,
HWND
hwndParent
,
DWORD
CreationFlags
,
PSP_DEVINFO_DATA
DeviceInfoData
)
BOOL
WINAPI
SetupDiCreateDeviceInfoW
(
HDEVINFO
DeviceInfoSet
,
PCWSTR
DeviceName
,
const
GUID
*
ClassGuid
,
PCWSTR
DeviceDescription
,
HWND
hwndParent
,
DWORD
CreationFlags
,
PSP_DEVINFO_DATA
DeviceInfoData
)
{
struct
DeviceInfoSet
*
set
=
DeviceInfoSet
;
BOOL
ret
=
FALSE
,
allocatedInstanceId
=
FALSE
;
...
...
@@ -1922,11 +1912,7 @@ BOOL WINAPI SetupDiGetClassDescriptionExW(
/***********************************************************************
* SetupDiGetClassDevsA (SETUPAPI.@)
*/
HDEVINFO
WINAPI
SetupDiGetClassDevsA
(
CONST
GUID
*
class
,
LPCSTR
enumstr
,
HWND
parent
,
DWORD
flags
)
HDEVINFO
WINAPI
SetupDiGetClassDevsA
(
const
GUID
*
class
,
LPCSTR
enumstr
,
HWND
parent
,
DWORD
flags
)
{
HDEVINFO
ret
;
LPWSTR
enumstrW
=
NULL
;
...
...
@@ -2328,11 +2314,7 @@ static void SETUPDI_EnumerateDevices(HDEVINFO DeviceInfoSet, const GUID *class,
/***********************************************************************
* SetupDiGetClassDevsW (SETUPAPI.@)
*/
HDEVINFO
WINAPI
SetupDiGetClassDevsW
(
CONST
GUID
*
class
,
LPCWSTR
enumstr
,
HWND
parent
,
DWORD
flags
)
HDEVINFO
WINAPI
SetupDiGetClassDevsW
(
const
GUID
*
class
,
LPCWSTR
enumstr
,
HWND
parent
,
DWORD
flags
)
{
return
SetupDiGetClassDevsExW
(
class
,
enumstr
,
parent
,
flags
,
NULL
,
NULL
,
NULL
);
...
...
@@ -2341,14 +2323,8 @@ HDEVINFO WINAPI SetupDiGetClassDevsW(
/***********************************************************************
* SetupDiGetClassDevsExW (SETUPAPI.@)
*/
HDEVINFO
WINAPI
SetupDiGetClassDevsExW
(
CONST
GUID
*
class
,
PCWSTR
enumstr
,
HWND
parent
,
DWORD
flags
,
HDEVINFO
deviceset
,
PCWSTR
machine
,
PVOID
reserved
)
HDEVINFO
WINAPI
SetupDiGetClassDevsExW
(
const
GUID
*
class
,
PCWSTR
enumstr
,
HWND
parent
,
DWORD
flags
,
HDEVINFO
deviceset
,
PCWSTR
machine
,
void
*
reserved
)
{
static
const
DWORD
unsupportedFlags
=
DIGCF_DEFAULT
|
DIGCF_PRESENT
|
DIGCF_PROFILE
;
...
...
@@ -2790,12 +2766,9 @@ BOOL WINAPI SetupDiDeleteDeviceInterfaceRegKey(
* Success: non-zero value.
* Failure: FALSE. Call GetLastError() for more info.
*/
BOOL
WINAPI
SetupDiEnumDeviceInterfaces
(
HDEVINFO
DeviceInfoSet
,
PSP_DEVINFO_DATA
DeviceInfoData
,
CONST
GUID
*
InterfaceClassGuid
,
DWORD
MemberIndex
,
PSP_DEVICE_INTERFACE_DATA
DeviceInterfaceData
)
BOOL
WINAPI
SetupDiEnumDeviceInterfaces
(
HDEVINFO
DeviceInfoSet
,
PSP_DEVINFO_DATA
DeviceInfoData
,
const
GUID
*
InterfaceClassGuid
,
DWORD
MemberIndex
,
PSP_DEVICE_INTERFACE_DATA
DeviceInterfaceData
)
{
struct
DeviceInfoSet
*
set
=
DeviceInfoSet
;
BOOL
ret
=
FALSE
;
...
...
dlls/setupapi/tests/devinst.c
View file @
09524be5
...
...
@@ -52,8 +52,8 @@ static BOOL (WINAPI *pSetupDiGetDeviceInstanceIdA)(HDEVINFO, PSP_DEVINFO_DAT
static
BOOL
(
WINAPI
*
pSetupDiGetDeviceInterfaceDetailA
)(
HDEVINFO
,
PSP_DEVICE_INTERFACE_DATA
,
PSP_DEVICE_INTERFACE_DETAIL_DATA_A
,
DWORD
,
PDWORD
,
PSP_DEVINFO_DATA
);
static
BOOL
(
WINAPI
*
pSetupDiGetDeviceInterfaceDetailW
)(
HDEVINFO
,
PSP_DEVICE_INTERFACE_DATA
,
PSP_DEVICE_INTERFACE_DETAIL_DATA_W
,
DWORD
,
PDWORD
,
PSP_DEVINFO_DATA
);
static
BOOL
(
WINAPI
*
pSetupDiRegisterDeviceInfo
)(
HDEVINFO
,
PSP_DEVINFO_DATA
,
DWORD
,
PSP_DETSIG_CMPPROC
,
PVOID
,
PSP_DEVINFO_DATA
);
static
HDEVINFO
(
WINAPI
*
pSetupDiGetClassDevsA
)(
CONST
GUID
*
,
LPCSTR
,
HWND
,
DWORD
);
static
HDEVINFO
(
WINAPI
*
pSetupDiGetClassDevsW
)(
CONST
GUID
*
,
LPCWSTR
,
HWND
,
DWORD
);
static
HDEVINFO
(
WINAPI
*
pSetupDiGetClassDevsA
)(
const
GUID
*
,
LPCSTR
,
HWND
,
DWORD
);
static
HDEVINFO
(
WINAPI
*
pSetupDiGetClassDevsW
)(
const
GUID
*
,
LPCWSTR
,
HWND
,
DWORD
);
static
BOOL
(
WINAPI
*
pSetupDiSetDeviceRegistryPropertyA
)(
HDEVINFO
,
PSP_DEVINFO_DATA
,
DWORD
,
const
BYTE
*
,
DWORD
);
static
BOOL
(
WINAPI
*
pSetupDiSetDeviceRegistryPropertyW
)(
HDEVINFO
,
PSP_DEVINFO_DATA
,
DWORD
,
const
BYTE
*
,
DWORD
);
static
BOOL
(
WINAPI
*
pSetupDiGetDeviceRegistryPropertyA
)(
HDEVINFO
,
PSP_DEVINFO_DATA
,
DWORD
,
PDWORD
,
PBYTE
,
DWORD
,
PDWORD
);
...
...
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