mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
wineconsole: Use IOCTL_CONDRV_SET_INPUT_INFO in WINECON_SetEditionMode.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
bd12ec5dff
commit
96c5109a0f
1 changed files with 3 additions and 11 deletions
|
@ -173,17 +173,9 @@ BOOL WINECON_GetConsoleTitle(HANDLE hConIn, WCHAR* buffer, size_t len)
|
|||
*/
|
||||
static BOOL WINECON_SetEditionMode(HANDLE hConIn, int edition_mode)
|
||||
{
|
||||
BOOL ret;
|
||||
|
||||
SERVER_START_REQ( set_console_input_info )
|
||||
{
|
||||
req->handle = wine_server_obj_handle( hConIn );
|
||||
req->mask = SET_CONSOLE_INPUT_INFO_EDITION_MODE;
|
||||
req->edition_mode = edition_mode;
|
||||
ret = !wine_server_call_err( req );
|
||||
}
|
||||
SERVER_END_REQ;
|
||||
return ret;
|
||||
struct condrv_input_info_params params = { SET_CONSOLE_INPUT_INFO_EDITION_MODE };
|
||||
params.info.edition_mode = edition_mode;
|
||||
return DeviceIoControl(hConIn, IOCTL_CONDRV_SET_INPUT_INFO, ¶ms, sizeof(params), NULL, 0, NULL, NULL);
|
||||
}
|
||||
|
||||
/******************************************************************
|
||||
|
|
Loading…
Reference in a new issue