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
ce31d125
Commit
ce31d125
authored
Jun 15, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Introduce IOCTL_AFD_WINE_MESSAGE_SELECT.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0272f190
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
0 deletions
+38
-0
afd.h
include/wine/afd.h
+9
-0
sock.c
server/sock.c
+29
-0
No files found.
include/wine/afd.h
View file @
ce31d125
...
...
@@ -147,6 +147,7 @@ struct afd_get_events_params
#define IOCTL_AFD_WINE_SIOCATMARK CTL_CODE(FILE_DEVICE_NETWORK, 212, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_AFD_WINE_GET_INTERFACE_LIST CTL_CODE(FILE_DEVICE_NETWORK, 213, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_AFD_WINE_KEEPALIVE_VALS CTL_CODE(FILE_DEVICE_NETWORK, 214, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_AFD_WINE_MESSAGE_SELECT CTL_CODE(FILE_DEVICE_NETWORK, 215, METHOD_BUFFERED, FILE_ANY_ACCESS)
struct
afd_create_params
{
...
...
@@ -199,4 +200,12 @@ struct afd_transmit_params
DWORD
flags
;
};
struct
afd_message_select_params
{
obj_handle_t
handle
;
user_handle_t
window
;
unsigned
int
message
;
int
mask
;
};
#endif
server/sock.c
View file @
ce31d125
...
...
@@ -2095,6 +2095,35 @@ static int sock_ioctl( struct fd *fd, ioctl_code_t code, struct async *async )
return
1
;
}
case
IOCTL_AFD_WINE_MESSAGE_SELECT
:
{
const
struct
afd_message_select_params
*
params
=
get_req_data
();
if
(
get_req_data_size
()
<
sizeof
(
params
))
{
set_error
(
STATUS_BUFFER_TOO_SMALL
);
return
0
;
}
if
(
sock
->
event
)
release_object
(
sock
->
event
);
if
(
params
->
window
)
{
sock
->
pending_events
=
0
;
sock
->
reported_events
=
0
;
}
sock
->
event
=
NULL
;
sock
->
mask
=
params
->
mask
;
sock
->
window
=
params
->
window
;
sock
->
message
=
params
->
message
;
sock
->
wparam
=
params
->
handle
;
sock
->
nonblocking
=
1
;
sock_reselect
(
sock
);
return
1
;
}
default:
set_error
(
STATUS_NOT_SUPPORTED
);
return
0
;
...
...
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