2011-08-10 01:42:10 +04:00
|
|
|
/**
|
2012-10-09 07:02:04 +04:00
|
|
|
* FreeRDP: A Remote Desktop Protocol Implementation
|
2011-08-10 01:42:10 +04:00
|
|
|
* Remote Applications Integrated Locally (RAIL)
|
|
|
|
*
|
|
|
|
* Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
|
|
|
* Copyright 2011 Roman Barabanov <romanbarabanov@gmail.com>
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2012-12-14 09:25:48 +04:00
|
|
|
#ifndef FREERDP_RAIL_GLOBAL_H
|
|
|
|
#define FREERDP_RAIL_GLOBAL_H
|
2011-08-10 01:42:10 +04:00
|
|
|
|
2014-08-19 01:25:48 +04:00
|
|
|
#include <winpr/wnd.h>
|
2019-05-08 16:36:20 +03:00
|
|
|
#include <winpr/windows.h>
|
2014-08-19 01:25:48 +04:00
|
|
|
|
2011-08-10 10:24:06 +04:00
|
|
|
#include <freerdp/types.h>
|
2011-08-10 01:42:10 +04:00
|
|
|
|
2019-07-04 10:58:08 +03:00
|
|
|
#define RAIL_SVC_CHANNEL_NAME "rail"
|
|
|
|
|
2019-05-08 16:36:20 +03:00
|
|
|
/* DEPRECATED: RAIL PDU flags use the spec conformant naming with TS_ prefix */
|
2021-06-22 15:39:10 +03:00
|
|
|
#if defined(WITH_FREERDP_DEPRECATED)
|
2019-11-06 17:24:51 +03:00
|
|
|
#define RAIL_EXEC_FLAG_EXPAND_WORKINGDIRECTORY 0x0001
|
|
|
|
#define RAIL_EXEC_FLAG_TRANSLATE_FILES 0x0002
|
|
|
|
#define RAIL_EXEC_FLAG_FILE 0x0004
|
|
|
|
#define RAIL_EXEC_FLAG_EXPAND_ARGUMENTS 0x0008
|
2021-06-22 15:39:10 +03:00
|
|
|
#endif
|
2011-08-10 01:42:10 +04:00
|
|
|
|
2019-05-08 16:36:20 +03:00
|
|
|
/* RAIL PDU flags */
|
|
|
|
#define TS_RAIL_EXEC_FLAG_EXPAND_WORKINGDIRECTORY 0x0001
|
2019-11-06 17:24:51 +03:00
|
|
|
#define TS_RAIL_EXEC_FLAG_TRANSLATE_FILES 0x0002
|
|
|
|
#define TS_RAIL_EXEC_FLAG_FILE 0x0004
|
|
|
|
#define TS_RAIL_EXEC_FLAG_EXPAND_ARGUMENTS 0x0008
|
|
|
|
#define TS_RAIL_EXEC_FLAG_APP_USER_MODEL_ID 0x0010
|
2019-05-08 16:36:20 +03:00
|
|
|
|
2011-08-10 01:42:10 +04:00
|
|
|
/* Notification Icon Balloon Tooltip */
|
2019-11-06 17:24:51 +03:00
|
|
|
#define NIIF_NONE 0x00000000
|
|
|
|
#define NIIF_INFO 0x00000001
|
|
|
|
#define NIIF_WARNING 0x00000002
|
|
|
|
#define NIIF_ERROR 0x00000003
|
|
|
|
#define NIIF_NOSOUND 0x00000010
|
|
|
|
#define NIIF_LARGE_ICON 0x00000020
|
2011-08-10 01:42:10 +04:00
|
|
|
|
|
|
|
/* Client Execute PDU Flags */
|
2019-11-06 17:24:51 +03:00
|
|
|
#define RAIL_EXEC_FLAG_EXPAND_WORKING_DIRECTORY 0x0001
|
|
|
|
#define RAIL_EXEC_FLAG_TRANSLATE_FILES 0x0002
|
|
|
|
#define RAIL_EXEC_FLAG_FILE 0x0004
|
|
|
|
#define RAIL_EXEC_FLAG_EXPAND_ARGUMENTS 0x0008
|
|
|
|
#define RAIL_EXEC_FLAG_APP_USER_MODEL_ID 0x0010
|
2011-08-10 01:42:10 +04:00
|
|
|
|
|
|
|
/* Server Execute Result PDU */
|
2019-11-06 17:24:51 +03:00
|
|
|
#define RAIL_EXEC_S_OK 0x0000
|
|
|
|
#define RAIL_EXEC_E_HOOK_NOT_LOADED 0x0001
|
|
|
|
#define RAIL_EXEC_E_DECODE_FAILED 0x0002
|
|
|
|
#define RAIL_EXEC_E_NOT_IN_ALLOWLIST 0x0003
|
|
|
|
#define RAIL_EXEC_E_FILE_NOT_FOUND 0x0005
|
|
|
|
#define RAIL_EXEC_E_FAIL 0x0006
|
|
|
|
#define RAIL_EXEC_E_SESSION_LOCKED 0x0007
|
2011-08-10 01:42:10 +04:00
|
|
|
|
2019-05-08 16:36:20 +03:00
|
|
|
/* DEPRECATED: Server System Parameters Update PDU
|
|
|
|
* use the spec conformant naming scheme from winpr/windows.h
|
|
|
|
*/
|
2019-11-06 17:24:51 +03:00
|
|
|
#define SPI_SET_SCREEN_SAVE_ACTIVE 0x00000011
|
|
|
|
#define SPI_SET_SCREEN_SAVE_SECURE 0x00000077
|
2011-08-10 01:42:10 +04:00
|
|
|
|
2011-08-19 17:42:58 +04:00
|
|
|
/*Bit mask values for SPI_ parameters*/
|
|
|
|
enum SPI_MASK
|
|
|
|
{
|
2019-11-06 17:24:51 +03:00
|
|
|
SPI_MASK_SET_DRAG_FULL_WINDOWS = 0x00000001,
|
|
|
|
SPI_MASK_SET_KEYBOARD_CUES = 0x00000002,
|
|
|
|
SPI_MASK_SET_KEYBOARD_PREF = 0x00000004,
|
|
|
|
SPI_MASK_SET_MOUSE_BUTTON_SWAP = 0x00000008,
|
|
|
|
SPI_MASK_SET_WORK_AREA = 0x00000010,
|
|
|
|
SPI_MASK_DISPLAY_CHANGE = 0x00000020,
|
|
|
|
SPI_MASK_TASKBAR_POS = 0x00000040,
|
|
|
|
SPI_MASK_SET_HIGH_CONTRAST = 0x00000080,
|
|
|
|
SPI_MASK_SET_SCREEN_SAVE_ACTIVE = 0x00000100,
|
|
|
|
SPI_MASK_SET_SET_SCREEN_SAVE_SECURE = 0x00000200,
|
|
|
|
SPI_MASK_SET_CARET_WIDTH = 0x00000400,
|
|
|
|
SPI_MASK_SET_STICKY_KEYS = 0x00000800,
|
|
|
|
SPI_MASK_SET_TOGGLE_KEYS = 0x00001000,
|
|
|
|
SPI_MASK_SET_FILTER_KEYS = 0x00002000,
|
2011-08-19 17:42:58 +04:00
|
|
|
};
|
|
|
|
|
2019-05-08 16:36:20 +03:00
|
|
|
/* Client System Parameters Update PDU
|
|
|
|
* some are defined in winuser.h (winpr/windows.h wrapper)
|
|
|
|
*/
|
2019-11-06 17:24:51 +03:00
|
|
|
#define SPI_SET_DRAG_FULL_WINDOWS 0x00000025
|
|
|
|
#define SPI_SET_KEYBOARD_CUES 0x0000100B
|
|
|
|
#define SPI_SET_KEYBOARD_PREF 0x00000045
|
|
|
|
#define SPI_SET_MOUSE_BUTTON_SWAP 0x00000021
|
|
|
|
#define SPI_SET_WORK_AREA 0x0000002F
|
|
|
|
#define SPI_DISPLAY_CHANGE 0x0000F001
|
|
|
|
#define SPI_TASKBAR_POS 0x0000F000
|
|
|
|
#define SPI_SET_HIGH_CONTRAST 0x00000043
|
2019-05-08 16:36:20 +03:00
|
|
|
|
2011-08-10 01:42:10 +04:00
|
|
|
/* Client System Command PDU */
|
2019-11-06 17:24:51 +03:00
|
|
|
#define SC_SIZE 0xF000
|
|
|
|
#define SC_MOVE 0xF010
|
|
|
|
#define SC_MINIMIZE 0xF020
|
|
|
|
#define SC_MAXIMIZE 0xF030
|
|
|
|
#define SC_CLOSE 0xF060
|
|
|
|
#define SC_KEYMENU 0xF100
|
|
|
|
#define SC_RESTORE 0xF120
|
|
|
|
#define SC_DEFAULT 0xF160
|
2011-08-10 01:42:10 +04:00
|
|
|
|
|
|
|
/* Client Notify Event PDU */
|
2011-08-16 01:05:48 +04:00
|
|
|
#ifndef _WIN32
|
2019-11-06 17:24:51 +03:00
|
|
|
#define NIN_SELECT 0x00000400
|
|
|
|
#define NIN_KEYSELECT 0x00000401
|
|
|
|
#define NIN_BALLOONSHOW 0x00000402
|
|
|
|
#define NIN_BALLOONHIDE 0x00000403
|
|
|
|
#define NIN_BALLOONTIMEOUT 0x00000404
|
2019-05-08 16:36:20 +03:00
|
|
|
#define NIN_BALLOONUSERCLICK 0x00000405
|
|
|
|
#else
|
|
|
|
#include <shellapi.h>
|
2011-08-16 01:05:48 +04:00
|
|
|
#endif
|
2011-08-10 01:42:10 +04:00
|
|
|
|
2019-05-08 16:36:20 +03:00
|
|
|
/* DEPRECATED: Client Information PDU
|
|
|
|
* use the spec conformant naming scheme TS_ below
|
|
|
|
*/
|
2019-11-06 17:24:51 +03:00
|
|
|
#define RAIL_CLIENTSTATUS_ALLOWLOCALMOVESIZE 0x00000001
|
|
|
|
#define RAIL_CLIENTSTATUS_AUTORECONNECT 0x00000002
|
2011-08-10 01:42:10 +04:00
|
|
|
|
2019-05-08 16:36:20 +03:00
|
|
|
/* Client Information PDU */
|
2019-11-06 17:24:51 +03:00
|
|
|
#define TS_RAIL_CLIENTSTATUS_ALLOWLOCALMOVESIZE 0x00000001
|
|
|
|
#define TS_RAIL_CLIENTSTATUS_AUTORECONNECT 0x00000002
|
|
|
|
#define TS_RAIL_CLIENTSTATUS_ZORDER_SYNC 0x00000004
|
|
|
|
#define TS_RAIL_CLIENTSTATUS_WINDOW_RESIZE_MARGIN_SUPPORTED 0x00000010
|
|
|
|
#define TS_RAIL_CLIENTSTATUS_HIGH_DPI_ICONS_SUPPORTED 0x00000020
|
|
|
|
#define TS_RAIL_CLIENTSTATUS_APPBAR_REMOTING_SUPPORTED 0x00000040
|
2019-05-08 16:36:20 +03:00
|
|
|
#define TS_RAIL_CLIENTSTATUS_POWER_DISPLAY_REQUEST_SUPPORTED 0x00000080
|
2021-10-16 21:53:05 +03:00
|
|
|
#define TS_RAIL_CLIENTSTATUS_GET_APPID_RESPONSE_EX_SUPPORTED 0x00000100
|
2019-11-06 17:24:51 +03:00
|
|
|
#define TS_RAIL_CLIENTSTATUS_BIDIRECTIONAL_CLOAK_SUPPORTED 0x00000200
|
2011-08-10 01:42:10 +04:00
|
|
|
|
|
|
|
/* Server Move/Size Start PDU */
|
2019-11-06 17:24:51 +03:00
|
|
|
#define RAIL_WMSZ_LEFT 0x0001
|
|
|
|
#define RAIL_WMSZ_RIGHT 0x0002
|
|
|
|
#define RAIL_WMSZ_TOP 0x0003
|
|
|
|
#define RAIL_WMSZ_TOPLEFT 0x0004
|
|
|
|
#define RAIL_WMSZ_TOPRIGHT 0x0005
|
|
|
|
#define RAIL_WMSZ_BOTTOM 0x0006
|
|
|
|
#define RAIL_WMSZ_BOTTOMLEFT 0x0007
|
|
|
|
#define RAIL_WMSZ_BOTTOMRIGHT 0x0008
|
|
|
|
#define RAIL_WMSZ_MOVE 0x0009
|
|
|
|
#define RAIL_WMSZ_KEYMOVE 0x000A
|
|
|
|
#define RAIL_WMSZ_KEYSIZE 0x000B
|
2011-08-10 01:42:10 +04:00
|
|
|
|
|
|
|
/* Language Bar Information PDU */
|
2019-11-06 17:24:51 +03:00
|
|
|
#define TF_SFT_SHOWNORMAL 0x00000001
|
|
|
|
#define TF_SFT_DOCK 0x00000002
|
|
|
|
#define TF_SFT_MINIMIZED 0x00000004
|
|
|
|
#define TF_SFT_HIDDEN 0x00000008
|
|
|
|
#define TF_SFT_NOTRANSPARENCY 0x00000010
|
|
|
|
#define TF_SFT_LOWTRANSPARENCY 0x00000020
|
|
|
|
#define TF_SFT_HIGHTRANSPARENCY 0x00000040
|
|
|
|
#define TF_SFT_LABELS 0x00000080
|
|
|
|
#define TF_SFT_NOLABELS 0x00000100
|
|
|
|
#define TF_SFT_EXTRAICONSONMINIMIZED 0x00000200
|
|
|
|
#define TF_SFT_NOEXTRAICONSONMINIMIZED 0x00000400
|
|
|
|
#define TF_SFT_DESKBAND 0x00000800
|
2019-05-08 16:36:20 +03:00
|
|
|
|
|
|
|
/* DEPRECATED: Extended Handshake Flags
|
|
|
|
* use the spec conformant naming scheme TS_ below
|
|
|
|
*/
|
2019-11-06 17:24:51 +03:00
|
|
|
#define RAIL_ORDER_HANDSHAKEEX_FLAGS_HIDEF 0x00000001
|
|
|
|
#define RAIL_ORDER_HANDSHAKE_EX_FLAGS_EXTENDED_SPI_SUPPORTED 0x00000002
|
|
|
|
#define RAIL_ORDER_HANDSHAKE_EX_FLAGS_SNAP_ARRANGE_SUPPORTED 0x00000004
|
2013-10-12 01:09:36 +04:00
|
|
|
|
2019-05-08 16:36:20 +03:00
|
|
|
/* Extended Handshake Flags */
|
2019-11-06 17:24:51 +03:00
|
|
|
#define TS_RAIL_ORDER_HANDSHAKEEX_FLAGS_HIDEF 0x00000001
|
|
|
|
#define TS_RAIL_ORDER_HANDSHAKE_EX_FLAGS_EXTENDED_SPI_SUPPORTED 0x00000002
|
|
|
|
#define TS_RAIL_ORDER_HANDSHAKE_EX_FLAGS_SNAP_ARRANGE_SUPPORTED 0x00000004
|
2019-05-08 16:36:20 +03:00
|
|
|
|
2013-10-12 01:09:36 +04:00
|
|
|
/* Language Profile Information Flags */
|
2019-11-06 17:24:51 +03:00
|
|
|
#define TF_PROFILETYPE_INPUTPROCESSOR 0x00000001
|
|
|
|
#define TF_PROFILETYPE_KEYBOARDLAYOUT 0x00000002
|
2013-10-12 01:09:36 +04:00
|
|
|
|
2019-05-08 16:36:20 +03:00
|
|
|
/* LanguageProfileCLSID and ProfileGUID */
|
|
|
|
#ifndef _WIN32
|
2019-11-06 17:24:51 +03:00
|
|
|
#define GUID_NULL \
|
|
|
|
{ \
|
|
|
|
0x00000000, 0x0000, 0x0000, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 \
|
|
|
|
}
|
2019-05-08 16:36:20 +03:00
|
|
|
#else
|
|
|
|
#include <cguid.h>
|
|
|
|
#endif
|
2019-11-06 17:24:51 +03:00
|
|
|
#define GUID_MSIME_JPN \
|
|
|
|
{ \
|
|
|
|
0x03B5835F, 0xF03C, 0x411B, 0x9C, 0xE2, 0xAA, 0x23, 0xE1, 0x17, 0x1E, 0x36 \
|
|
|
|
}
|
|
|
|
#define GUID_MSIME_KOR \
|
|
|
|
{ \
|
|
|
|
0xA028AE76, 0x01B1, 0x46C2, 0x99, 0xC4, 0xAC, 0xD9, 0x85, 0x8A, 0xE0, 0x02 \
|
|
|
|
}
|
|
|
|
#define GUID_CHSIME \
|
|
|
|
{ \
|
|
|
|
0x81D4E9C9, 0x1D3B, 0x41BC, 0x9E, 0x6C, 0x4B, 0x40, 0xBF, 0x79, 0xE3, 0x5E \
|
|
|
|
}
|
|
|
|
#define GUID_CHTIME \
|
|
|
|
{ \
|
|
|
|
0x531FDEBF, 0x9B4C, 0x4A43, 0xA2, 0xAA, 0x96, 0x0E, 0x8F, 0xCD, 0xC7, 0x32 \
|
|
|
|
}
|
|
|
|
#define GUID_PROFILE_NEWPHONETIC \
|
|
|
|
{ \
|
|
|
|
0xB2F9C502, 0x1742, 0x11D4, 0x97, 0x90, 0x00, 0x80, 0xC8, 0x82, 0x68, 0x7E \
|
|
|
|
}
|
|
|
|
#define GUID_PROFILE_CHANGJIE \
|
|
|
|
{ \
|
|
|
|
0x4BDF9F03, 0xC7D3, 0x11D4, 0xB2, 0xAB, 0x00, 0x80, 0xC8, 0x82, 0x68, 0x7E \
|
|
|
|
}
|
|
|
|
#define GUID_PROFILE_QUICK \
|
|
|
|
{ \
|
|
|
|
0x6024B45F, 0x5C54, 0x11D4, 0xB9, 0x21, 0x00, 0x80, 0xC8, 0x82, 0x68, 0x7E \
|
|
|
|
}
|
|
|
|
#define GUID_PROFILE_CANTONESE \
|
|
|
|
{ \
|
|
|
|
0x0AEC109C, 0x7E96, 0x11D4, 0xB2, 0xEF, 0x00, 0x80, 0xC8, 0x82, 0x68, 0x7E \
|
|
|
|
}
|
|
|
|
#define GUID_PROFILE_PINYIN \
|
|
|
|
{ \
|
|
|
|
0xF3BA9077, 0x6C7E, 0x11D4, 0x97, 0xFA, 0x00, 0x80, 0xC8, 0x82, 0x68, 0x7E \
|
|
|
|
}
|
|
|
|
#define GUID_PROFILE_SIMPLEFAST \
|
|
|
|
{ \
|
|
|
|
0xFA550B04, 0x5AD7, 0x411F, 0xA5, 0xAC, 0xCA, 0x03, 0x8E, 0xC5, 0x15, 0xD7 \
|
|
|
|
}
|
|
|
|
#define GUID_GUID_PROFILE_MSIME_JPN \
|
|
|
|
{ \
|
|
|
|
0xA76C93D9, 0x5523, 0x4E90, 0xAA, 0xFA, 0x4D, 0xB1, 0x12, 0xF9, 0xAC, 0x76 \
|
|
|
|
}
|
|
|
|
#define GUID_PROFILE_MSIME_KOR \
|
|
|
|
{ \
|
|
|
|
0xB5FE1F02, 0xD5F2, 0x4445, 0x9C, 0x03, 0xC5, 0x68, 0xF2, 0x3C, 0x99, 0xA1 \
|
|
|
|
}
|
2019-05-08 16:36:20 +03:00
|
|
|
|
|
|
|
/* ImeState */
|
2019-11-06 17:24:51 +03:00
|
|
|
#define IME_STATE_CLOSED 0x00000000
|
|
|
|
#define IME_STATE_OPEN 0x00000001
|
2013-10-12 01:09:36 +04:00
|
|
|
|
2019-05-08 16:36:20 +03:00
|
|
|
/* ImeConvMode */
|
2021-05-24 08:23:49 +03:00
|
|
|
#if !defined(_IME_CMODES_) && !defined(__MINGW32__)
|
2019-11-06 17:24:51 +03:00
|
|
|
#define IME_CMODE_NATIVE 0x00000001
|
|
|
|
#define IME_CMODE_KATAKANA 0x00000002
|
|
|
|
#define IME_CMODE_FULLSHAPE 0x00000008
|
|
|
|
#define IME_CMODE_ROMAN 0x00000010
|
|
|
|
#define IME_CMODE_CHARCODE 0x00000020
|
|
|
|
#define IME_CMODE_HANJACONVERT 0x00000040
|
|
|
|
#define IME_CMODE_SOFTKBD 0x00000080
|
|
|
|
#define IME_CMODE_NOCONVERSION 0x00000100
|
|
|
|
#define IME_CMODE_EUDC 0x00000200
|
|
|
|
#define IME_CMODE_SYMBOL 0x00000400
|
|
|
|
#define IME_CMODE_FIXED 0x00000800
|
2013-10-15 23:20:12 +04:00
|
|
|
#endif
|
2013-10-12 01:09:36 +04:00
|
|
|
|
2019-05-08 16:36:20 +03:00
|
|
|
/* ImeSentenceMode */
|
2013-10-15 23:20:12 +04:00
|
|
|
#ifndef _IMM_
|
2019-11-06 17:24:51 +03:00
|
|
|
#define IME_SMODE_NONE 0x00000000
|
|
|
|
#define IME_SMODE_PLURALCASE 0x00000001
|
|
|
|
#define IME_SMODE_SINGLECONVERT 0x00000002
|
|
|
|
#define IME_SMODE_AUTOMATIC 0x00000004
|
|
|
|
#define IME_SMODE_PHRASEPREDICT 0x00000008
|
|
|
|
#define IME_SMODE_CONVERSATION 0x00000010
|
2013-10-15 23:20:12 +04:00
|
|
|
#endif
|
2013-10-12 01:09:36 +04:00
|
|
|
|
2019-05-08 16:36:20 +03:00
|
|
|
/* KANAMode */
|
2019-11-06 17:24:51 +03:00
|
|
|
#define KANA_MODE_OFF 0x00000000
|
|
|
|
#define KANA_MODE_ON 0x00000001
|
2013-10-12 01:09:36 +04:00
|
|
|
|
2019-05-08 16:36:20 +03:00
|
|
|
/* Taskbar */
|
2019-11-06 17:24:51 +03:00
|
|
|
#define RAIL_TASKBAR_MSG_TAB_REGISTER 0x00000001
|
2019-05-08 16:36:20 +03:00
|
|
|
#define RAIL_TASKBAR_MSG_TAB_UNREGISTER 0x00000002
|
2019-11-06 17:24:51 +03:00
|
|
|
#define RAIL_TASKBAR_MSG_TAB_ORDER 0x00000003
|
|
|
|
#define RAIL_TASKBAR_MSG_TAB_ACTIVE 0x00000004
|
2019-05-08 16:36:20 +03:00
|
|
|
#define RAIL_TASKBAR_MSG_TAB_PROPERTIES 0x00000005
|
|
|
|
|
|
|
|
/* Taskbar body */
|
2019-11-06 17:24:51 +03:00
|
|
|
#define RAIL_TASKBAR_MSG_TAB_REGISTER 0x00000001
|
2019-05-08 16:36:20 +03:00
|
|
|
#define RAIL_TASKBAR_MSG_TAB_UNREGISTER 0x00000002
|
2019-11-06 17:24:51 +03:00
|
|
|
#define RAIL_TASKBAR_MSG_TAB_ORDER 0x00000003
|
|
|
|
#define RAIL_TASKBAR_MSG_TAB_ACTIVE 0x00000004
|
2019-05-08 16:36:20 +03:00
|
|
|
#define RAIL_TASKBAR_MSG_TAB_PROPERTIES 0x00000005
|
|
|
|
|
2012-06-20 01:26:37 +04:00
|
|
|
struct _RAIL_UNICODE_STRING
|
2011-08-10 10:24:06 +04:00
|
|
|
{
|
2012-10-09 11:01:37 +04:00
|
|
|
UINT16 length;
|
|
|
|
BYTE* string;
|
2011-08-10 10:24:06 +04:00
|
|
|
};
|
2012-06-20 01:26:37 +04:00
|
|
|
typedef struct _RAIL_UNICODE_STRING RAIL_UNICODE_STRING;
|
2011-08-10 01:42:10 +04:00
|
|
|
|
2013-08-29 01:47:37 +04:00
|
|
|
struct _RAIL_HIGH_CONTRAST
|
2011-08-11 00:33:15 +04:00
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
UINT32 flags;
|
|
|
|
UINT32 colorSchemeLength;
|
2012-06-20 01:26:37 +04:00
|
|
|
RAIL_UNICODE_STRING colorScheme;
|
2011-08-11 00:33:15 +04:00
|
|
|
};
|
2013-08-29 01:47:37 +04:00
|
|
|
typedef struct _RAIL_HIGH_CONTRAST RAIL_HIGH_CONTRAST;
|
2011-08-11 00:33:15 +04:00
|
|
|
|
2011-08-10 10:24:06 +04:00
|
|
|
/* RAIL Orders */
|
2011-08-10 01:42:10 +04:00
|
|
|
|
2011-08-10 10:24:06 +04:00
|
|
|
struct _RAIL_HANDSHAKE_ORDER
|
2011-08-10 01:42:10 +04:00
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
UINT32 buildNumber;
|
2011-08-10 10:24:06 +04:00
|
|
|
};
|
|
|
|
typedef struct _RAIL_HANDSHAKE_ORDER RAIL_HANDSHAKE_ORDER;
|
|
|
|
|
2013-10-12 01:09:36 +04:00
|
|
|
struct _RAIL_HANDSHAKE_EX_ORDER
|
|
|
|
{
|
|
|
|
UINT32 buildNumber;
|
|
|
|
UINT32 railHandshakeFlags;
|
|
|
|
};
|
|
|
|
typedef struct _RAIL_HANDSHAKE_EX_ORDER RAIL_HANDSHAKE_EX_ORDER;
|
|
|
|
|
2011-08-10 10:24:06 +04:00
|
|
|
struct _RAIL_CLIENT_STATUS_ORDER
|
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
UINT32 flags;
|
2011-08-10 10:24:06 +04:00
|
|
|
};
|
|
|
|
typedef struct _RAIL_CLIENT_STATUS_ORDER RAIL_CLIENT_STATUS_ORDER;
|
|
|
|
|
|
|
|
struct _RAIL_EXEC_ORDER
|
|
|
|
{
|
2012-10-09 11:01:37 +04:00
|
|
|
UINT16 flags;
|
2013-10-15 07:16:40 +04:00
|
|
|
char* RemoteApplicationProgram;
|
|
|
|
char* RemoteApplicationWorkingDir;
|
|
|
|
char* RemoteApplicationArguments;
|
2011-08-10 10:24:06 +04:00
|
|
|
};
|
|
|
|
typedef struct _RAIL_EXEC_ORDER RAIL_EXEC_ORDER;
|
|
|
|
|
|
|
|
struct _RAIL_EXEC_RESULT_ORDER
|
|
|
|
{
|
2012-10-09 11:01:37 +04:00
|
|
|
UINT16 flags;
|
|
|
|
UINT16 execResult;
|
2012-10-09 11:26:39 +04:00
|
|
|
UINT32 rawResult;
|
2012-06-20 01:26:37 +04:00
|
|
|
RAIL_UNICODE_STRING exeOrFile;
|
2011-08-10 10:24:06 +04:00
|
|
|
};
|
|
|
|
typedef struct _RAIL_EXEC_RESULT_ORDER RAIL_EXEC_RESULT_ORDER;
|
|
|
|
|
2019-05-08 16:36:20 +03:00
|
|
|
struct _TS_FILTERKEYS
|
|
|
|
{
|
|
|
|
UINT32 Flags;
|
|
|
|
UINT32 WaitTime;
|
|
|
|
UINT32 DelayTime;
|
|
|
|
UINT32 RepeatTime;
|
|
|
|
UINT32 BounceTime;
|
|
|
|
};
|
|
|
|
typedef struct _TS_FILTERKEYS TS_FILTERKEYS;
|
|
|
|
|
2011-08-10 10:24:06 +04:00
|
|
|
struct _RAIL_SYSPARAM_ORDER
|
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
UINT32 param;
|
|
|
|
UINT32 params;
|
2012-10-09 10:38:39 +04:00
|
|
|
BOOL dragFullWindows;
|
|
|
|
BOOL keyboardCues;
|
|
|
|
BOOL keyboardPref;
|
|
|
|
BOOL mouseButtonSwap;
|
2011-08-18 05:33:22 +04:00
|
|
|
RECTANGLE_16 workArea;
|
|
|
|
RECTANGLE_16 displayChange;
|
|
|
|
RECTANGLE_16 taskbarPos;
|
2013-08-29 01:47:37 +04:00
|
|
|
RAIL_HIGH_CONTRAST highContrast;
|
2019-05-09 13:28:27 +03:00
|
|
|
UINT32 caretWidth;
|
2019-05-08 16:36:20 +03:00
|
|
|
UINT32 stickyKeys;
|
|
|
|
UINT32 toggleKeys;
|
|
|
|
TS_FILTERKEYS filterKeys;
|
2012-10-09 10:38:39 +04:00
|
|
|
BOOL setScreenSaveActive;
|
|
|
|
BOOL setScreenSaveSecure;
|
2011-08-10 10:24:06 +04:00
|
|
|
};
|
|
|
|
typedef struct _RAIL_SYSPARAM_ORDER RAIL_SYSPARAM_ORDER;
|
|
|
|
|
|
|
|
struct _RAIL_ACTIVATE_ORDER
|
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
UINT32 windowId;
|
2012-10-09 10:38:39 +04:00
|
|
|
BOOL enabled;
|
2011-08-10 10:24:06 +04:00
|
|
|
};
|
|
|
|
typedef struct _RAIL_ACTIVATE_ORDER RAIL_ACTIVATE_ORDER;
|
|
|
|
|
|
|
|
struct _RAIL_SYSMENU_ORDER
|
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
UINT32 windowId;
|
2019-10-02 12:32:30 +03:00
|
|
|
INT16 left;
|
|
|
|
INT16 top;
|
2011-08-10 10:24:06 +04:00
|
|
|
};
|
|
|
|
typedef struct _RAIL_SYSMENU_ORDER RAIL_SYSMENU_ORDER;
|
|
|
|
|
|
|
|
struct _RAIL_SYSCOMMAND_ORDER
|
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
UINT32 windowId;
|
2012-10-09 11:01:37 +04:00
|
|
|
UINT16 command;
|
2011-08-10 10:24:06 +04:00
|
|
|
};
|
|
|
|
typedef struct _RAIL_SYSCOMMAND_ORDER RAIL_SYSCOMMAND_ORDER;
|
|
|
|
|
|
|
|
struct _RAIL_NOTIFY_EVENT_ORDER
|
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
UINT32 windowId;
|
|
|
|
UINT32 notifyIconId;
|
|
|
|
UINT32 message;
|
2011-08-10 10:24:06 +04:00
|
|
|
};
|
|
|
|
typedef struct _RAIL_NOTIFY_EVENT_ORDER RAIL_NOTIFY_EVENT_ORDER;
|
|
|
|
|
|
|
|
struct _RAIL_MINMAXINFO_ORDER
|
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
UINT32 windowId;
|
2019-10-02 12:32:30 +03:00
|
|
|
INT16 maxWidth;
|
|
|
|
INT16 maxHeight;
|
|
|
|
INT16 maxPosX;
|
|
|
|
INT16 maxPosY;
|
|
|
|
INT16 minTrackWidth;
|
|
|
|
INT16 minTrackHeight;
|
|
|
|
INT16 maxTrackWidth;
|
|
|
|
INT16 maxTrackHeight;
|
2011-08-10 10:24:06 +04:00
|
|
|
};
|
|
|
|
typedef struct _RAIL_MINMAXINFO_ORDER RAIL_MINMAXINFO_ORDER;
|
|
|
|
|
|
|
|
struct _RAIL_LOCALMOVESIZE_ORDER
|
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
UINT32 windowId;
|
2012-10-09 10:38:39 +04:00
|
|
|
BOOL isMoveSizeStart;
|
2012-10-09 11:01:37 +04:00
|
|
|
UINT16 moveSizeType;
|
2019-10-02 12:32:30 +03:00
|
|
|
INT16 posX;
|
|
|
|
INT16 posY;
|
2011-08-10 10:24:06 +04:00
|
|
|
};
|
|
|
|
typedef struct _RAIL_LOCALMOVESIZE_ORDER RAIL_LOCALMOVESIZE_ORDER;
|
|
|
|
|
|
|
|
struct _RAIL_WINDOWMOVE_ORDER
|
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
UINT32 windowId;
|
2019-10-02 12:32:30 +03:00
|
|
|
INT16 left;
|
|
|
|
INT16 top;
|
|
|
|
INT16 right;
|
|
|
|
INT16 bottom;
|
2011-08-10 10:24:06 +04:00
|
|
|
};
|
2011-08-11 00:33:15 +04:00
|
|
|
typedef struct _RAIL_WINDOWMOVE_ORDER RAIL_WINDOW_MOVE_ORDER;
|
2011-08-10 10:24:06 +04:00
|
|
|
|
|
|
|
struct _RAIL_GET_APPID_REQ_ORDER
|
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
UINT32 windowId;
|
2011-08-10 10:24:06 +04:00
|
|
|
};
|
|
|
|
typedef struct _RAIL_GET_APPID_REQ_ORDER RAIL_GET_APPID_REQ_ORDER;
|
|
|
|
|
|
|
|
struct _RAIL_GET_APPID_RESP_ORDER
|
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
UINT32 windowId;
|
2019-10-02 12:32:30 +03:00
|
|
|
WCHAR applicationId[260];
|
2011-08-10 10:24:06 +04:00
|
|
|
};
|
|
|
|
typedef struct _RAIL_GET_APPID_RESP_ORDER RAIL_GET_APPID_RESP_ORDER;
|
|
|
|
|
2014-04-23 01:21:14 +04:00
|
|
|
struct _RAIL_LANGBAR_INFO_ORDER
|
2011-08-10 10:24:06 +04:00
|
|
|
{
|
2012-10-09 11:26:39 +04:00
|
|
|
UINT32 languageBarStatus;
|
2011-08-10 10:24:06 +04:00
|
|
|
};
|
2014-04-23 01:21:14 +04:00
|
|
|
typedef struct _RAIL_LANGBAR_INFO_ORDER RAIL_LANGBAR_INFO_ORDER;
|
|
|
|
|
|
|
|
struct _RAIL_COMPARTMENT_INFO_ORDER
|
|
|
|
{
|
|
|
|
UINT32 ImeState;
|
|
|
|
UINT32 ImeConvMode;
|
|
|
|
UINT32 ImeSentenceMode;
|
|
|
|
UINT32 KanaMode;
|
|
|
|
};
|
|
|
|
typedef struct _RAIL_COMPARTMENT_INFO_ORDER RAIL_COMPARTMENT_INFO_ORDER;
|
2011-08-10 10:24:06 +04:00
|
|
|
|
2019-04-26 14:14:30 +03:00
|
|
|
struct _RAIL_ZORDER_SYNC
|
2019-02-19 16:13:34 +03:00
|
|
|
{
|
|
|
|
UINT32 windowIdMarker;
|
|
|
|
};
|
2019-04-26 14:14:30 +03:00
|
|
|
typedef struct _RAIL_ZORDER_SYNC RAIL_ZORDER_SYNC;
|
2019-02-19 16:13:34 +03:00
|
|
|
|
|
|
|
struct _RAIL_CLOAK
|
|
|
|
{
|
|
|
|
UINT32 windowId;
|
|
|
|
BOOL cloak;
|
|
|
|
};
|
|
|
|
typedef struct _RAIL_CLOAK RAIL_CLOAK;
|
|
|
|
|
|
|
|
struct _RAIL_POWER_DISPLAY_REQUEST
|
|
|
|
{
|
|
|
|
UINT32 active;
|
|
|
|
};
|
|
|
|
typedef struct _RAIL_POWER_DISPLAY_REQUEST RAIL_POWER_DISPLAY_REQUEST;
|
|
|
|
|
2019-05-08 16:36:20 +03:00
|
|
|
struct _RAIL_TASKBAR_INFO_ORDER
|
|
|
|
{
|
|
|
|
UINT32 TaskbarMessage;
|
|
|
|
UINT32 WindowIdTab;
|
|
|
|
UINT32 Body;
|
|
|
|
};
|
|
|
|
typedef struct _RAIL_TASKBAR_INFO_ORDER RAIL_TASKBAR_INFO_ORDER;
|
|
|
|
|
|
|
|
struct _RAIL_LANGUAGEIME_INFO_ORDER
|
|
|
|
{
|
|
|
|
UINT32 ProfileType;
|
|
|
|
UINT32 LanguageID;
|
|
|
|
GUID LanguageProfileCLSID;
|
|
|
|
GUID ProfileGUID;
|
|
|
|
UINT32 KeyboardLayout;
|
|
|
|
};
|
|
|
|
typedef struct _RAIL_LANGUAGEIME_INFO_ORDER RAIL_LANGUAGEIME_INFO_ORDER;
|
|
|
|
|
2019-02-19 16:13:34 +03:00
|
|
|
struct _RAIL_SNAP_ARRANGE
|
|
|
|
{
|
|
|
|
UINT32 windowId;
|
2019-10-02 12:32:30 +03:00
|
|
|
INT16 left;
|
|
|
|
INT16 top;
|
|
|
|
INT16 right;
|
|
|
|
INT16 bottom;
|
2019-02-19 16:13:34 +03:00
|
|
|
};
|
|
|
|
typedef struct _RAIL_SNAP_ARRANGE RAIL_SNAP_ARRANGE;
|
|
|
|
|
|
|
|
struct _RAIL_GET_APPID_RESP_EX
|
|
|
|
{
|
|
|
|
UINT32 windowID;
|
2019-10-02 12:32:30 +03:00
|
|
|
WCHAR applicationID[520 / sizeof(WCHAR)];
|
2019-02-19 16:13:34 +03:00
|
|
|
UINT32 processId;
|
2019-10-02 12:32:30 +03:00
|
|
|
WCHAR processImageName[520 / sizeof(WCHAR)];
|
2019-02-19 16:13:34 +03:00
|
|
|
};
|
|
|
|
typedef struct _RAIL_GET_APPID_RESP_EX RAIL_GET_APPID_RESP_EX;
|
|
|
|
|
2019-05-08 16:36:20 +03:00
|
|
|
/* DEPRECATED: RAIL Constants
|
|
|
|
* use the spec conformant naming scheme TS_ below
|
|
|
|
*/
|
2011-08-10 10:24:06 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define RDP_RAIL_ORDER_EXEC 0x0001
|
|
|
|
#define RDP_RAIL_ORDER_ACTIVATE 0x0002
|
|
|
|
#define RDP_RAIL_ORDER_SYSPARAM 0x0003
|
|
|
|
#define RDP_RAIL_ORDER_SYSCOMMAND 0x0004
|
|
|
|
#define RDP_RAIL_ORDER_HANDSHAKE 0x0005
|
|
|
|
#define RDP_RAIL_ORDER_NOTIFY_EVENT 0x0006
|
|
|
|
#define RDP_RAIL_ORDER_WINDOWMOVE 0x0008
|
|
|
|
#define RDP_RAIL_ORDER_LOCALMOVESIZE 0x0009
|
|
|
|
#define RDP_RAIL_ORDER_MINMAXINFO 0x000A
|
|
|
|
#define RDP_RAIL_ORDER_CLIENTSTATUS 0x000B
|
|
|
|
#define RDP_RAIL_ORDER_SYSMENU 0x000C
|
|
|
|
#define RDP_RAIL_ORDER_LANGBARINFO 0x000D
|
|
|
|
#define RDP_RAIL_ORDER_EXEC_RESULT 0x0080
|
|
|
|
#define RDP_RAIL_ORDER_GET_APPID_REQ 0x000E
|
|
|
|
#define RDP_RAIL_ORDER_GET_APPID_RESP 0x000F
|
|
|
|
#define RDP_RAIL_ORDER_LANGUAGEIMEINFO 0x0011
|
|
|
|
#define RDP_RAIL_ORDER_COMPARTMENTINFO 0x0012
|
|
|
|
#define RDP_RAIL_ORDER_HANDSHAKE_EX 0x0013
|
|
|
|
#define RDP_RAIL_ORDER_ZORDER_SYNC 0x0014
|
|
|
|
#define RDP_RAIL_ORDER_CLOAK 0x0015
|
|
|
|
#define RDP_RAIL_ORDER_POWER_DISPLAY_REQUEST 0x0016
|
|
|
|
#define RDP_RAIL_ORDER_SNAP_ARRANGE 0x0017
|
|
|
|
#define RDP_RAIL_ORDER_GET_APPID_RESP_EX 0x0018
|
2011-08-10 10:24:06 +04:00
|
|
|
|
2019-05-08 16:36:20 +03:00
|
|
|
/* RAIL Constants */
|
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define TS_RAIL_ORDER_EXEC 0x0001
|
|
|
|
#define TS_RAIL_ORDER_ACTIVATE 0x0002
|
|
|
|
#define TS_RAIL_ORDER_SYSPARAM 0x0003
|
|
|
|
#define TS_RAIL_ORDER_SYSCOMMAND 0x0004
|
|
|
|
#define TS_RAIL_ORDER_HANDSHAKE 0x0005
|
|
|
|
#define TS_RAIL_ORDER_NOTIFY_EVENT 0x0006
|
|
|
|
#define TS_RAIL_ORDER_WINDOWMOVE 0x0008
|
|
|
|
#define TS_RAIL_ORDER_LOCALMOVESIZE 0x0009
|
|
|
|
#define TS_RAIL_ORDER_MINMAXINFO 0x000A
|
|
|
|
#define TS_RAIL_ORDER_CLIENTSTATUS 0x000B
|
|
|
|
#define TS_RAIL_ORDER_SYSMENU 0x000C
|
|
|
|
#define TS_RAIL_ORDER_LANGBARINFO 0x000D
|
|
|
|
#define TS_RAIL_ORDER_GET_APPID_REQ 0x000E
|
|
|
|
#define TS_RAIL_ORDER_GET_APPID_RESP 0x000F
|
|
|
|
#define TS_RAIL_ORDER_TASKBARINFO 0x0010
|
|
|
|
#define TS_RAIL_ORDER_LANGUAGEIMEINFO 0x0011
|
|
|
|
#define TS_RAIL_ORDER_COMPARTMENTINFO 0x0012
|
|
|
|
#define TS_RAIL_ORDER_HANDSHAKE_EX 0x0013
|
|
|
|
#define TS_RAIL_ORDER_ZORDER_SYNC 0x0014
|
|
|
|
#define TS_RAIL_ORDER_CLOAK 0x0015
|
|
|
|
#define TS_RAIL_ORDER_POWER_DISPLAY_REQUEST 0x0016
|
|
|
|
#define TS_RAIL_ORDER_SNAP_ARRANGE 0x0017
|
|
|
|
#define TS_RAIL_ORDER_GET_APPID_RESP_EX 0x0018
|
|
|
|
#define TS_RAIL_ORDER_EXEC_RESULT 0x0080
|
2015-05-18 12:28:00 +03:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2019-11-06 17:24:51 +03:00
|
|
|
extern "C"
|
|
|
|
{
|
2015-05-18 12:28:00 +03:00
|
|
|
#endif
|
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
FREERDP_API BOOL rail_read_unicode_string(wStream* s, RAIL_UNICODE_STRING* unicode_string);
|
2019-07-04 10:58:08 +03:00
|
|
|
FREERDP_API BOOL utf8_string_to_rail_string(const char* string,
|
|
|
|
RAIL_UNICODE_STRING* unicode_string);
|
2015-05-18 12:28:00 +03:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2012-12-14 09:25:48 +04:00
|
|
|
#endif /* FREERDP_RAIL_GLOBAL_H */
|