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
409160bb
Commit
409160bb
authored
Jul 13, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 13, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Introduce IOCTL_CONDRV_GET_MODE ioctl.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
58c3b5c1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
condrv.h
include/wine/condrv.h
+3
-0
console.c
server/console.c
+16
-0
No files found.
include/wine/condrv.h
View file @
409160bb
...
...
@@ -23,6 +23,9 @@
#include "winioctl.h"
/* common console input and output ioctls */
#define IOCTL_CONDRV_GET_MODE CTL_CODE(FILE_DEVICE_CONSOLE, 0, METHOD_BUFFERED, FILE_READ_PROPERTIES)
/* console input ioctls */
#define IOCTL_CONDRV_READ_INPUT CTL_CODE(FILE_DEVICE_CONSOLE, 10, METHOD_BUFFERED, FILE_READ_ACCESS)
#define IOCTL_CONDRV_WRITE_INPUT CTL_CODE(FILE_DEVICE_CONSOLE, 11, METHOD_BUFFERED, FILE_WRITE_PROPERTIES)
...
...
server/console.c
View file @
409160bb
...
...
@@ -1576,6 +1576,14 @@ static int console_input_ioctl( struct fd *fd, ioctl_code_t code, struct async *
switch
(
code
)
{
case
IOCTL_CONDRV_GET_MODE
:
if
(
get_reply_max_size
()
!=
sizeof
(
console
->
mode
))
{
set_error
(
STATUS_INVALID_PARAMETER
);
return
0
;
}
return
set_reply_data
(
&
console
->
mode
,
sizeof
(
console
->
mode
)
)
!=
NULL
;
case
IOCTL_CONDRV_READ_INPUT
:
{
int
blocking
=
0
;
...
...
@@ -1641,6 +1649,14 @@ static int screen_buffer_ioctl( struct fd *fd, ioctl_code_t code, struct async *
switch
(
code
)
{
case
IOCTL_CONDRV_GET_MODE
:
if
(
get_reply_max_size
()
!=
sizeof
(
screen_buffer
->
mode
))
{
set_error
(
STATUS_INVALID_PARAMETER
);
return
0
;
}
return
set_reply_data
(
&
screen_buffer
->
mode
,
sizeof
(
screen_buffer
->
mode
)
)
!=
NULL
;
case
IOCTL_CONDRV_GET_OUTPUT_INFO
:
{
struct
condrv_output_info
*
info
;
...
...
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