| 1 | /** |
| 2 | * FreeRDP: A Remote Desktop Protocol Implementation |
| 3 | * Device Redirection Virtual Channel |
| 4 | * |
| 5 | * Copyright 2010-2011 Vic Lee |
| 6 | * Copyright 2010-2012 Marc-Andre Moreau <[email protected]> |
| 7 | * Copyright 2015 Thincast Technologies GmbH |
| 8 | * Copyright 2015 DI (FH) Martin Haimberger <[email protected]> |
| 9 | * Copyright 2016 Inuvika Inc. |
| 10 | * Copyright 2016 David PHAM-VAN <[email protected]> |
| 11 | * |
| 12 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 13 | * you may not use this file except in compliance with the License. |
| 14 | * You may obtain a copy of the License at |
| 15 | * |
| 16 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 17 | * |
| 18 | * Unless required by applicable law or agreed to in writing, software |
| 19 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 20 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 21 | * See the License for the specific language governing permissions and |
| 22 | * limitations under the License. |
| 23 | */ |
| 24 | |
| 25 | #ifndef FREERDP_CHANNEL_RDPDR_CLIENT_MAIN_H |
| 26 | #define FREERDP_CHANNEL_RDPDR_CLIENT_MAIN_Hcxx . . $ `channels/rdpdr/client/rdpdr_main.h:26:9`! |
| 27 | |
| 28 | #include <winpr/crt.h>cxx . . $ `<file>/winpr/include/winpr/crt.h`/ |
| 29 | #include <winpr/synch.h>cxx . . $ `<file>/winpr/include/winpr/synch.h`/ |
| 30 | #include <winpr/thread.h>cxx . . $ `<file>/winpr/include/winpr/thread.h`/ |
| 31 | #include <winpr/stream.h>cxx . . $ `<file>/winpr/include/winpr/stream.h`/ |
| 32 | #include <winpr/collections.h>cxx . . $ `<file>/winpr/include/winpr/collections.h`/ |
| 33 | |
| 34 | #include <freerdp/api.h>cxx . . $ `<file>/include/freerdp/api.h`/ |
| 35 | #include <freerdp/svc.h>cxx . . $ `<file>/include/freerdp/svc.h`/ |
| 36 | #include <freerdp/addin.h>cxx . . $ `<file>/include/freerdp/addin.h`/ |
| 37 | |
| 38 | #include <freerdp/channels/rdpdr.h>cxx . . $ `<file>/include/freerdp/channels/rdpdr.h`/ |
| 39 | #include <freerdp/client/rdpdr.h>cxx . . $ `<file>/include/freerdp/client/rdpdr.h`/ |
| 40 | #include <freerdp/channels/log.h>cxx . . $ `<file>/include/freerdp/channels/log.h`/ |
| 41 | |
| 42 | #ifdef __MACOSX__ |
| 43 | #include <CoreServices/CoreServices.h> |
| 44 | #endif |
| 45 | |
| 46 | enum RDPDR_CHANNEL_STATEcxx . . $ RDPDR_CHANNEL_STATE# |
| 47 | { |
| 48 | RDPDR_CHANNEL_STATE_INITIALcxx . . $ RDPDR_CHANNEL_STATE_INITIAL. = 0, |
| 49 | RDPDR_CHANNEL_STATE_ANNOUNCEcxx . . $ RDPDR_CHANNEL_STATE_ANNOUNCE., |
| 50 | RDPDR_CHANNEL_STATE_ANNOUNCE_REPLYcxx . . $ RDPDR_CHANNEL_STATE_ANNOUNCE_REPLY., |
| 51 | RDPDR_CHANNEL_STATE_NAME_REQUESTcxx . . $ RDPDR_CHANNEL_STATE_NAME_REQUEST., |
| 52 | RDPDR_CHANNEL_STATE_SERVER_CAPScxx . . $ RDPDR_CHANNEL_STATE_SERVER_CAPS., |
| 53 | RDPDR_CHANNEL_STATE_CLIENT_CAPScxx . . $ RDPDR_CHANNEL_STATE_CLIENT_CAPS., |
| 54 | RDPDR_CHANNEL_STATE_CLIENTID_CONFIRMcxx . . $ RDPDR_CHANNEL_STATE_CLIENTID_CONFIRM., |
| 55 | RDPDR_CHANNEL_STATE_READYcxx . . $ RDPDR_CHANNEL_STATE_READY., |
| 56 | RDPDR_CHANNEL_STATE_USER_LOGGEDONcxx . . $ RDPDR_CHANNEL_STATE_USER_LOGGEDON. |
| 57 | }; |
| 58 | |
| 59 | typedef structcxx . . $ $anonymous_type_66d80bacb00e8218_0# |
| 60 | { |
| 61 | CHANNEL_DEFcxx . . $ CHANNEL_DEF# channelDefcxx . . $ $anonymous_type_66d80bacb00e8218_0#channelDef.; |
| 62 | CHANNEL_ENTRY_POINTS_FREERDP_EXcxx . . $ CHANNEL_ENTRY_POINTS_FREERDP_EX# channelEntryPointscxx . . $ $anonymous_type_66d80bacb00e8218_0#channelEntryPoints.; |
| 63 | |
| 64 | enum RDPDR_CHANNEL_STATEcxx . . $ RDPDR_CHANNEL_STATE# statecxx . . $ $anonymous_type_66d80bacb00e8218_0#state.; |
| 65 | HANDLEcxx . . $ HANDLE# threadcxx . . $ $anonymous_type_66d80bacb00e8218_0#thread.; |
| 66 | wStreamcxx . . $ wStream#* data_incxx . . $ $anonymous_type_66d80bacb00e8218_0#data_in.; |
| 67 | void* InitHandlecxx . . $ $anonymous_type_66d80bacb00e8218_0#InitHandle.; |
| 68 | DWORDcxx . . $ DWORD# OpenHandlecxx . . $ $anonymous_type_66d80bacb00e8218_0#OpenHandle.; |
| 69 | wMessageQueuecxx . . $ wMessageQueue#* queuecxx . . $ $anonymous_type_66d80bacb00e8218_0#queue.; |
| 70 | |
| 71 | DEVMANcxx . . $ DEVMAN#* devmancxx . . $ $anonymous_type_66d80bacb00e8218_0#devman.; |
| 72 | BOOLcxx . . $ BOOL# ignoreInvalidDevicescxx . . $ $anonymous_type_66d80bacb00e8218_0#ignoreInvalidDevices.; |
| 73 | |
| 74 | UINT32cxx . . $ UINT32# serverOsTypecxx . . $ $anonymous_type_66d80bacb00e8218_0#serverOsType.; |
| 75 | UINT32cxx . . $ UINT32# serverOsVersioncxx . . $ $anonymous_type_66d80bacb00e8218_0#serverOsVersion.; |
| 76 | UINT16cxx . . $ UINT16# serverVersionMajorcxx . . $ $anonymous_type_66d80bacb00e8218_0#serverVersionMajor.; |
| 77 | UINT16cxx . . $ UINT16# serverVersionMinorcxx . . $ $anonymous_type_66d80bacb00e8218_0#serverVersionMinor.; |
| 78 | UINT32cxx . . $ UINT32# serverExtendedPDUcxx . . $ $anonymous_type_66d80bacb00e8218_0#serverExtendedPDU.; |
| 79 | UINT32cxx . . $ UINT32# serverIOCode1cxx . . $ $anonymous_type_66d80bacb00e8218_0#serverIOCode1.; |
| 80 | UINT32cxx . . $ UINT32# serverIOCode2cxx . . $ $anonymous_type_66d80bacb00e8218_0#serverIOCode2.; |
| 81 | UINT32cxx . . $ UINT32# serverExtraFlags1cxx . . $ $anonymous_type_66d80bacb00e8218_0#serverExtraFlags1.; |
| 82 | UINT32cxx . . $ UINT32# serverExtraFlags2cxx . . $ $anonymous_type_66d80bacb00e8218_0#serverExtraFlags2.; |
| 83 | UINT32cxx . . $ UINT32# serverSpecialTypeDeviceCapcxx . . $ $anonymous_type_66d80bacb00e8218_0#serverSpecialTypeDeviceCap.; |
| 84 | |
| 85 | UINT32cxx . . $ UINT32# clientOsTypecxx . . $ $anonymous_type_66d80bacb00e8218_0#clientOsType.; |
| 86 | UINT32cxx . . $ UINT32# clientOsVersioncxx . . $ $anonymous_type_66d80bacb00e8218_0#clientOsVersion.; |
| 87 | UINT16cxx . . $ UINT16# clientVersionMajorcxx . . $ $anonymous_type_66d80bacb00e8218_0#clientVersionMajor.; |
| 88 | UINT16cxx . . $ UINT16# clientVersionMinorcxx . . $ $anonymous_type_66d80bacb00e8218_0#clientVersionMinor.; |
| 89 | UINT32cxx . . $ UINT32# clientExtendedPDUcxx . . $ $anonymous_type_66d80bacb00e8218_0#clientExtendedPDU.; |
| 90 | UINT32cxx . . $ UINT32# clientIOCode1cxx . . $ $anonymous_type_66d80bacb00e8218_0#clientIOCode1.; |
| 91 | UINT32cxx . . $ UINT32# clientIOCode2cxx . . $ $anonymous_type_66d80bacb00e8218_0#clientIOCode2.; |
| 92 | UINT32cxx . . $ UINT32# clientExtraFlags1cxx . . $ $anonymous_type_66d80bacb00e8218_0#clientExtraFlags1.; |
| 93 | UINT32cxx . . $ UINT32# clientExtraFlags2cxx . . $ $anonymous_type_66d80bacb00e8218_0#clientExtraFlags2.; |
| 94 | UINT32cxx . . $ UINT32# clientSpecialTypeDeviceCapcxx . . $ $anonymous_type_66d80bacb00e8218_0#clientSpecialTypeDeviceCap.; |
| 95 | |
| 96 | UINT32cxx . . $ UINT32# clientIDcxx . . $ $anonymous_type_66d80bacb00e8218_0#clientID.; |
| 97 | char computerNamecxx . . $ $anonymous_type_66d80bacb00e8218_0#computerName.[256]; |
| 98 | |
| 99 | UINT32cxx . . $ UINT32# sequenceIdcxx . . $ $anonymous_type_66d80bacb00e8218_0#sequenceId.; |
| 100 | BOOLcxx . . $ BOOL# userLoggedOncxx . . $ $anonymous_type_66d80bacb00e8218_0#userLoggedOn.; |
| 101 | |
| 102 | /* hotplug support */ |
| 103 | HANDLEcxx . . $ HANDLE# hotplugThreadcxx . . $ $anonymous_type_66d80bacb00e8218_0#hotplugThread.; |
| 104 | #ifdef _WIN32 |
| 105 | HWND hotplug_wnd; |
| 106 | #endif |
| 107 | #ifndef _WIN32 |
| 108 | HANDLEcxx . . $ HANDLE# stopEventcxx . . $ $anonymous_type_66d80bacb00e8218_0#stopEvent.; |
| 109 | #endif |
| 110 | rdpContextcxx . . $ rdpContext#* rdpcontextcxx . . $ $anonymous_type_66d80bacb00e8218_0#rdpcontext.; |
| 111 | wStreamPoolcxx . . $ wStreamPool#* poolcxx . . $ $anonymous_type_66d80bacb00e8218_0#pool.; |
| 112 | wLogcxx . . $ wLog#* logcxx . . $ $anonymous_type_66d80bacb00e8218_0#log.; |
| 113 | BOOLcxx . . $ BOOL# asynccxx . . $ $anonymous_type_66d80bacb00e8218_0#async.; |
| 114 | BOOLcxx . . $ BOOL# capabilitiescxx . . $ $anonymous_type_66d80bacb00e8218_0#capabilities.[6]; |
| 115 | BOOLcxx . . $ BOOL# haveClientIdcxx . . $ $anonymous_type_66d80bacb00e8218_0#haveClientId.; |
| 116 | BOOLcxx . . $ BOOL# haveServerCapscxx . . $ $anonymous_type_66d80bacb00e8218_0#haveServerCaps.; |
| 117 | |
| 118 | RdpdrClientContextcxx . . $ RdpdrClientContext# contextcxx . . $ $anonymous_type_66d80bacb00e8218_0#context.; |
| 119 | BOOLcxx . . $ BOOL# clearingcxx . . $ $anonymous_type_66d80bacb00e8218_0#clearing.; |
| 120 | } rdpdrPlugincxx . . $ rdpdrPlugin#; |
| 121 | |
| 122 | WINPR_ATTR_NODISCARDcxx . . $ `winpr/include/winpr/platform.h:105:9`! |
| 123 | FREERDP_LOCALcxx . . $ `include/freerdp/api.h:80:9`! BOOLcxx . . $ BOOL# rdpdr_state_advancecxx . . $ rdpdr_state_advance(d355f83af0fe19d4).(rdpdrPlugincxx . . $ rdpdrPlugin#* rdpdr, enum RDPDR_CHANNEL_STATEcxx . . $ RDPDR_CHANNEL_STATE# next); |
| 124 | |
| 125 | WINPR_ATTR_NODISCARDcxx . . $ `winpr/include/winpr/platform.h:105:9`! |
| 126 | FREERDP_LOCALcxx . . $ `include/freerdp/api.h:80:9`! UINTcxx . . $ UINT# rdpdr_sendcxx . . $ rdpdr_send(1e9b945fb8012111).(rdpdrPlugincxx . . $ rdpdrPlugin#* rdpdr, wStreamcxx . . $ wStream#* s); |
| 127 | |
| 128 | #endif /* FREERDP_CHANNEL_RDPDR_CLIENT_MAIN_H */ |