1 /**
2  * FreeRDP: A Remote Desktop Protocol Implementation
3  * Remote Applications Integrated Locally (RAIL)
4  *
5  * Copyright 2009 Marc-Andre Moreau <marcandre.moreau@gmail.com>
6  * Copyright 2011 Roman Barabanov <romanbarabanov@gmail.com>
7  * Copyright 2015 Thincast Technologies GmbH
8  * Copyright 2015 DI (FH) Martin Haimberger <martin.haimberger@thincast.com>
9  *
10  * Licensed under the Apache License, Version 2.0 (the "License");
11  * you may not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  *     http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  */
22 
23 #ifndef FREERDP_CHANNEL_RAIL_CLIENT_ORDERS_H
24 #define FREERDP_CHANNEL_RAIL_CLIENT_ORDERS_H
25 
26 #include <freerdp/channels/log.h>
27 
28 #include "rail_main.h"
29 
30 #define TAG CHANNELS_TAG("rail.client")
31 
32 UINT rail_order_recv(railPlugin* rail, wStream* s);
33 UINT rail_send_pdu(railPlugin* rail, wStream* s, UINT16 orderType);
34 
35 UINT rail_send_handshake_order(railPlugin* rail, const RAIL_HANDSHAKE_ORDER* handshake);
36 UINT rail_send_handshake_ex_order(railPlugin* rail, const RAIL_HANDSHAKE_EX_ORDER* handshakeEx);
37 UINT rail_send_client_status_order(railPlugin* rail, const RAIL_CLIENT_STATUS_ORDER* clientStatus);
38 UINT rail_send_client_exec_order(railPlugin* rail, UINT16 flags,
39                                  const RAIL_UNICODE_STRING* exeOrFile,
40                                  const RAIL_UNICODE_STRING* workingDir,
41                                  const RAIL_UNICODE_STRING* arguments);
42 UINT rail_send_client_activate_order(railPlugin* rail, const RAIL_ACTIVATE_ORDER* activate);
43 UINT rail_send_client_sysmenu_order(railPlugin* rail, const RAIL_SYSMENU_ORDER* sysmenu);
44 UINT rail_send_client_syscommand_order(railPlugin* rail, const RAIL_SYSCOMMAND_ORDER* syscommand);
45 
46 UINT rail_send_client_notify_event_order(railPlugin* rail,
47                                          const RAIL_NOTIFY_EVENT_ORDER* notifyEvent);
48 UINT rail_send_client_window_move_order(railPlugin* rail, const RAIL_WINDOW_MOVE_ORDER* windowMove);
49 UINT rail_send_client_get_appid_req_order(railPlugin* rail,
50                                           const RAIL_GET_APPID_REQ_ORDER* getAppIdReq);
51 UINT rail_send_client_langbar_info_order(railPlugin* rail,
52                                          const RAIL_LANGBAR_INFO_ORDER* langBarInfo);
53 UINT rail_send_client_languageime_info_order(railPlugin* rail,
54                                              const RAIL_LANGUAGEIME_INFO_ORDER* langImeInfo);
55 UINT rail_send_client_cloak_order(railPlugin* rail, const RAIL_CLOAK* cloak);
56 UINT rail_send_client_snap_arrange_order(railPlugin* rail, const RAIL_SNAP_ARRANGE* snap);
57 UINT rail_send_client_compartment_info_order(railPlugin* rail,
58                                              const RAIL_COMPARTMENT_INFO_ORDER* compartmentInfo);
59 
60 #endif /* FREERDP_CHANNEL_RAIL_CLIENT_ORDERS_H */
61