2013-10-12 01:09:36 +04:00
|
|
|
/**
|
|
|
|
* FreeRDP: A Remote Desktop Protocol Implementation
|
|
|
|
* Remote Applications Integrated Locally (RAIL)
|
|
|
|
*
|
|
|
|
* Copyright 2013 Marc-Andre Moreau <marcandre.moreau@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.
|
|
|
|
*/
|
|
|
|
|
2017-06-06 15:01:41 +03:00
|
|
|
#ifndef FREERDP_CHANNEL_RAIL_CLIENT_RAIL_H
|
|
|
|
#define FREERDP_CHANNEL_RAIL_CLIENT_RAIL_H
|
2013-10-12 01:09:36 +04:00
|
|
|
|
|
|
|
#include <freerdp/api.h>
|
|
|
|
#include <freerdp/types.h>
|
|
|
|
|
|
|
|
#include <freerdp/rail.h>
|
|
|
|
#include <freerdp/message.h>
|
|
|
|
#include <freerdp/channels/rail.h>
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Client Interface
|
|
|
|
*/
|
|
|
|
|
2013-10-15 07:16:40 +04:00
|
|
|
#define RAIL_SVC_CHANNEL_NAME "rail"
|
2013-10-12 01:09:36 +04:00
|
|
|
|
|
|
|
typedef struct _rail_client_context RailClientContext;
|
|
|
|
|
2018-09-14 11:04:16 +03:00
|
|
|
typedef UINT(*pcRailClientExecute)(RailClientContext* context, const RAIL_EXEC_ORDER* exec);
|
|
|
|
typedef UINT(*pcRailClientActivate)(RailClientContext* context,
|
|
|
|
const RAIL_ACTIVATE_ORDER* activate);
|
|
|
|
typedef UINT(*pcRailClientSystemParam)(RailClientContext* context,
|
|
|
|
const RAIL_SYSPARAM_ORDER* sysparam);
|
|
|
|
typedef UINT(*pcRailServerSystemParam)(RailClientContext* context,
|
|
|
|
const RAIL_SYSPARAM_ORDER* sysparam);
|
|
|
|
typedef UINT(*pcRailClientSystemCommand)(RailClientContext* context,
|
|
|
|
const RAIL_SYSCOMMAND_ORDER* syscommand);
|
|
|
|
typedef UINT(*pcRailClientHandshake)(RailClientContext* context,
|
|
|
|
const RAIL_HANDSHAKE_ORDER* handshake);
|
|
|
|
typedef UINT(*pcRailServerHandshake)(RailClientContext* context,
|
|
|
|
const RAIL_HANDSHAKE_ORDER* handshake);
|
|
|
|
typedef UINT(*pcRailServerHandshakeEx)(RailClientContext* context,
|
|
|
|
const RAIL_HANDSHAKE_EX_ORDER* handshakeEx);
|
|
|
|
typedef UINT(*pcRailClientNotifyEvent)(RailClientContext* context,
|
|
|
|
const RAIL_NOTIFY_EVENT_ORDER* notifyEvent);
|
|
|
|
typedef UINT(*pcRailClientWindowMove)(RailClientContext* context,
|
|
|
|
const RAIL_WINDOW_MOVE_ORDER* windowMove);
|
|
|
|
typedef UINT(*pcRailServerLocalMoveSize)(RailClientContext* context,
|
|
|
|
const RAIL_LOCALMOVESIZE_ORDER* localMoveSize);
|
|
|
|
typedef UINT(*pcRailServerMinMaxInfo)(RailClientContext* context,
|
|
|
|
const RAIL_MINMAXINFO_ORDER* minMaxInfo);
|
|
|
|
typedef UINT(*pcRailClientInformation)(RailClientContext* context,
|
|
|
|
const RAIL_CLIENT_STATUS_ORDER* clientStatus);
|
|
|
|
typedef UINT(*pcRailClientSystemMenu)(RailClientContext* context,
|
|
|
|
const RAIL_SYSMENU_ORDER* sysmenu);
|
2019-05-08 16:36:20 +03:00
|
|
|
typedef UINT(*pcRailServerTaskBarInfo)(RailClientContext* context,
|
|
|
|
const RAIL_TASKBAR_INFO_ORDER* taskBarInfo);
|
2018-09-14 11:04:16 +03:00
|
|
|
typedef UINT(*pcRailClientLanguageBarInfo)(RailClientContext* context,
|
|
|
|
const RAIL_LANGBAR_INFO_ORDER* langBarInfo);
|
|
|
|
typedef UINT(*pcRailServerLanguageBarInfo)(RailClientContext* context,
|
|
|
|
const RAIL_LANGBAR_INFO_ORDER* langBarInfo);
|
2019-05-08 16:36:20 +03:00
|
|
|
typedef UINT(*pcRailClientLanguageIMEInfo)(RailClientContext* context,
|
|
|
|
const RAIL_LANGUAGEIME_INFO_ORDER* langBarInfo);
|
2018-09-14 11:04:16 +03:00
|
|
|
typedef UINT(*pcRailServerExecuteResult)(RailClientContext* context,
|
|
|
|
const RAIL_EXEC_RESULT_ORDER* execResult);
|
|
|
|
typedef UINT(*pcRailClientGetAppIdRequest)(RailClientContext* context,
|
|
|
|
const RAIL_GET_APPID_REQ_ORDER* getAppIdReq);
|
|
|
|
typedef UINT(*pcRailServerGetAppIdResponse)(RailClientContext* context,
|
|
|
|
const RAIL_GET_APPID_RESP_ORDER* getAppIdResp);
|
2019-02-19 16:13:34 +03:00
|
|
|
typedef UINT(*pcRailServerZOrderSync)(RailClientContext* context,
|
2019-04-26 14:14:30 +03:00
|
|
|
const RAIL_ZORDER_SYNC* zorder);
|
2019-05-08 16:36:20 +03:00
|
|
|
typedef UINT(*pcRailServerCloak)(RailClientContext* context,
|
|
|
|
const RAIL_CLOAK* cloak);
|
2019-02-19 16:13:34 +03:00
|
|
|
typedef UINT(*pcRailClientCloak)(RailClientContext* context,
|
|
|
|
const RAIL_CLOAK* cloak);
|
|
|
|
typedef UINT(*pcRailServerPowerDisplayRequest)(RailClientContext* context,
|
|
|
|
const RAIL_POWER_DISPLAY_REQUEST* power);
|
|
|
|
typedef UINT(*pcRailClientSnapArrange)(RailClientContext* context,
|
|
|
|
const RAIL_SNAP_ARRANGE* snap);
|
|
|
|
typedef UINT(*pcRailServerGetAppidResponseExtended)(RailClientContext* context,
|
|
|
|
const RAIL_GET_APPID_RESP_EX* id);
|
2013-10-12 01:09:36 +04:00
|
|
|
|
|
|
|
struct _rail_client_context
|
|
|
|
{
|
|
|
|
void* handle;
|
|
|
|
void* custom;
|
|
|
|
|
|
|
|
pcRailClientExecute ClientExecute;
|
|
|
|
pcRailClientActivate ClientActivate;
|
|
|
|
pcRailClientSystemParam ClientSystemParam;
|
|
|
|
pcRailServerSystemParam ServerSystemParam;
|
|
|
|
pcRailClientSystemCommand ClientSystemCommand;
|
|
|
|
pcRailClientHandshake ClientHandshake;
|
|
|
|
pcRailServerHandshake ServerHandshake;
|
2013-10-21 05:59:03 +04:00
|
|
|
pcRailServerHandshakeEx ServerHandshakeEx;
|
2013-10-12 01:09:36 +04:00
|
|
|
pcRailClientNotifyEvent ClientNotifyEvent;
|
|
|
|
pcRailClientWindowMove ClientWindowMove;
|
|
|
|
pcRailServerLocalMoveSize ServerLocalMoveSize;
|
|
|
|
pcRailServerMinMaxInfo ServerMinMaxInfo;
|
|
|
|
pcRailClientInformation ClientInformation;
|
|
|
|
pcRailClientSystemMenu ClientSystemMenu;
|
2019-05-08 16:36:20 +03:00
|
|
|
pcRailServerTaskBarInfo ServerTaskBarInfo;
|
2013-10-12 01:09:36 +04:00
|
|
|
pcRailClientLanguageBarInfo ClientLanguageBarInfo;
|
|
|
|
pcRailServerLanguageBarInfo ServerLanguageBarInfo;
|
2019-05-08 16:36:20 +03:00
|
|
|
pcRailClientLanguageIMEInfo ClientLanguageIMEInfo;
|
2013-10-12 01:09:36 +04:00
|
|
|
pcRailServerExecuteResult ServerExecuteResult;
|
|
|
|
pcRailClientGetAppIdRequest ClientGetAppIdRequest;
|
|
|
|
pcRailServerGetAppIdResponse ServerGetAppIdResponse;
|
2019-02-19 16:13:34 +03:00
|
|
|
pcRailServerZOrderSync ServerZOrderSync;
|
|
|
|
pcRailClientCloak ClientCloak;
|
2019-05-08 16:36:20 +03:00
|
|
|
pcRailServerCloak ServerCloak;
|
2019-02-19 16:13:34 +03:00
|
|
|
pcRailServerPowerDisplayRequest ServerPowerDisplayRequest;
|
|
|
|
pcRailClientSnapArrange ClientSnapArrange;
|
|
|
|
pcRailServerGetAppidResponseExtended ServerGetAppidResponseExtended;
|
2013-10-12 01:09:36 +04:00
|
|
|
};
|
|
|
|
|
2017-06-06 15:01:41 +03:00
|
|
|
#endif /* FREERDP_CHANNEL_RAIL_CLIENT_RAIL_H */
|
2013-10-12 01:09:36 +04:00
|
|
|
|