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
06547f12
Commit
06547f12
authored
Sep 24, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Sep 25, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Implement SetupDiGetClassDevsExA.
parent
1b023ff6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
11 deletions
+47
-11
devinst.c
dlls/setupapi/devinst.c
+47
-0
stubs.c
dlls/setupapi/stubs.c
+0
-11
No files found.
dlls/setupapi/devinst.c
View file @
06547f12
...
...
@@ -1769,6 +1769,53 @@ end:
return
ret
;
}
/***********************************************************************
* SetupDiGetClassDevsExA (SETUPAPI.@)
*/
HDEVINFO
WINAPI
SetupDiGetClassDevsExA
(
const
GUID
*
class
,
PCSTR
enumstr
,
HWND
parent
,
DWORD
flags
,
HDEVINFO
deviceset
,
PCSTR
machine
,
PVOID
reserved
)
{
HDEVINFO
ret
;
LPWSTR
enumstrW
=
NULL
,
machineW
=
NULL
;
if
(
enumstr
)
{
int
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
enumstr
,
-
1
,
NULL
,
0
);
enumstrW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
if
(
!
enumstrW
)
{
ret
=
(
HDEVINFO
)
INVALID_HANDLE_VALUE
;
goto
end
;
}
MultiByteToWideChar
(
CP_ACP
,
0
,
enumstr
,
-
1
,
enumstrW
,
len
);
}
if
(
machine
)
{
int
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
machine
,
-
1
,
NULL
,
0
);
machineW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
if
(
!
machineW
)
{
HeapFree
(
GetProcessHeap
(),
0
,
enumstrW
);
ret
=
(
HDEVINFO
)
INVALID_HANDLE_VALUE
;
goto
end
;
}
MultiByteToWideChar
(
CP_ACP
,
0
,
machine
,
-
1
,
machineW
,
len
);
}
ret
=
SetupDiGetClassDevsExW
(
class
,
enumstrW
,
parent
,
flags
,
deviceset
,
machineW
,
reserved
);
HeapFree
(
GetProcessHeap
(),
0
,
enumstrW
);
HeapFree
(
GetProcessHeap
(),
0
,
machineW
);
end:
return
ret
;
}
static
void
SETUPDI_AddDeviceInterfaces
(
SP_DEVINFO_DATA
*
dev
,
HKEY
key
,
const
GUID
*
interface
)
{
...
...
dlls/setupapi/stubs.c
View file @
06547f12
...
...
@@ -50,17 +50,6 @@ DWORD WINAPI suErrorToIds16( WORD w1, WORD w2 )
}
/***********************************************************************
* (SETUPAPI.@)
*
* NO WINAPI in description given
*/
HDEVINFO
WINAPI
SetupDiGetClassDevsExA
(
const
GUID
*
class
,
PCSTR
filter
,
HWND
parent
,
DWORD
flags
,
HDEVINFO
deviceset
,
PCSTR
machine
,
PVOID
reserved
)
{
FIXME
(
"filter %s machine %s
\n
"
,
debugstr_a
(
filter
),
debugstr_a
(
machine
));
return
FALSE
;
}
/***********************************************************************
* CM_Connect_MachineW (SETUPAPI.@)
*/
DWORD
WINAPI
CM_Connect_MachineW
(
LPCWSTR
name
,
void
*
machine
)
...
...
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