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
794ecdc5
Commit
794ecdc5
authored
Jul 01, 2021
by
Huw Davies
Committed by
Alexandre Julliard
Jul 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nsi: Implement NsiGetParameterEx().
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8f7f4f13
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
2 deletions
+29
-2
nsi.c
dlls/nsi/nsi.c
+29
-2
No files found.
dlls/nsi/nsi.c
View file @
794ecdc5
...
...
@@ -257,7 +257,7 @@ DWORD WINAPI NsiGetParameter( DWORD unk, const NPI_MODULEID *module, DWORD table
{
struct
nsi_get_parameter_ex
params
;
FIXME
(
"%d %p %d %p %d %d %p %d %d: stub
\n
"
,
unk
,
module
,
table
,
key
,
key_size
,
TRACE
(
"%d %p %d %p %d %d %p %d %d
\n
"
,
unk
,
module
,
table
,
key
,
key_size
,
param_type
,
data
,
data_size
,
data_offset
);
params
.
unknown
[
0
]
=
0
;
...
...
@@ -277,5 +277,32 @@ DWORD WINAPI NsiGetParameter( DWORD unk, const NPI_MODULEID *module, DWORD table
DWORD
WINAPI
NsiGetParameterEx
(
struct
nsi_get_parameter_ex
*
params
)
{
return
ERROR_CALL_NOT_IMPLEMENTED
;
HANDLE
device
=
get_nsi_device
();
struct
nsiproxy_get_parameter
*
in
;
ULONG
in_size
=
FIELD_OFFSET
(
struct
nsiproxy_get_parameter
,
key
[
params
->
key_size
]
),
received
;
DWORD
err
=
ERROR_SUCCESS
;
if
(
device
==
INVALID_HANDLE_VALUE
)
return
GetLastError
();
in
=
heap_alloc
(
in_size
);
if
(
!
in
)
{
err
=
ERROR_OUTOFMEMORY
;
goto
err
;
}
in
->
module
=
*
params
->
module
;
in
->
first_arg
=
params
->
first_arg
;
in
->
table
=
params
->
table
;
in
->
key_size
=
params
->
key_size
;
in
->
param_type
=
params
->
param_type
;
in
->
data_offset
=
params
->
data_offset
;
memcpy
(
in
->
key
,
params
->
key
,
params
->
key_size
);
if
(
!
DeviceIoControl
(
device
,
IOCTL_NSIPROXY_WINE_GET_PARAMETER
,
in
,
in_size
,
params
->
data
,
params
->
data_size
,
&
received
,
NULL
))
err
=
GetLastError
();
err:
heap_free
(
in
);
CloseHandle
(
device
);
return
err
;
}
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