2014-06-29 01:24:44 +04:00
|
|
|
/**
|
|
|
|
* FreeRDP: A Remote Desktop Protocol Implementation
|
|
|
|
* Remote Assistance Virtual Channel
|
|
|
|
*
|
|
|
|
* Copyright 2014 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FREERDP_CHANNEL_REMDESK_H
|
|
|
|
#define FREERDP_CHANNEL_REMDESK_H
|
|
|
|
|
|
|
|
#include <freerdp/api.h>
|
|
|
|
#include <freerdp/types.h>
|
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define REMDESK_SVC_CHANNEL_NAME "remdesk"
|
|
|
|
|
|
|
|
#define REMDESK_ERROR_NOERROR 0
|
|
|
|
#define REMDESK_ERROR_NOINFO 1
|
|
|
|
#define REMDESK_ERROR_LOCALNOTERROR 3
|
|
|
|
#define REMDESK_ERROR_REMOTEBYUSER 4
|
|
|
|
#define REMDESK_ERROR_BYSERVER 5
|
|
|
|
#define REMDESK_ERROR_DNSLOOKUPFAILED 6
|
|
|
|
#define REMDESK_ERROR_OUTOFMEMORY 7
|
|
|
|
#define REMDESK_ERROR_CONNECTIONTIMEDOUT 8
|
|
|
|
#define REMDESK_ERROR_SOCKETCONNECTFAILED 9
|
|
|
|
#define REMDESK_ERROR_HOSTNOTFOUND 11
|
|
|
|
#define REMDESK_ERROR_WINSOCKSENDFAILED 12
|
|
|
|
#define REMDESK_ERROR_INVALIDIPADDR 14
|
|
|
|
#define REMDESK_ERROR_SOCKETRECVFAILED 15
|
|
|
|
#define REMDESK_ERROR_INVALIDENCRYPTION 18
|
|
|
|
#define REMDESK_ERROR_GETHOSTBYNAMEFAILED 20
|
|
|
|
#define REMDESK_ERROR_LICENSINGFAILED 21
|
|
|
|
#define REMDESK_ERROR_ENCRYPTIONERROR 22
|
|
|
|
#define REMDESK_ERROR_DECRYPTIONERROR 23
|
|
|
|
#define REMDESK_ERROR_INVALIDPARAMETERSTRING 24
|
|
|
|
#define REMDESK_ERROR_HELPSESSIONNOTFOUND 25
|
|
|
|
#define REMDESK_ERROR_INVALIDPASSWORD 26
|
|
|
|
#define REMDESK_ERROR_HELPSESSIONEXPIRED 27
|
|
|
|
#define REMDESK_ERROR_CANTOPENRESOLVER 28
|
|
|
|
#define REMDESK_ERROR_UNKNOWNSESSMGRERROR 29
|
|
|
|
#define REMDESK_ERROR_CANTFORMLINKTOUSERSESSION 30
|
|
|
|
#define REMDESK_ERROR_RCPROTOCOLERROR 32
|
|
|
|
#define REMDESK_ERROR_RCUNKNOWNERROR 33
|
|
|
|
#define REMDESK_ERROR_INTERNALERROR 34
|
|
|
|
#define REMDESK_ERROR_HELPEERESPONSEPENDING 35
|
|
|
|
#define REMDESK_ERROR_HELPEESAIDYES 36
|
|
|
|
#define REMDESK_ERROR_HELPEEALREADYBEINGHELPED 37
|
|
|
|
#define REMDESK_ERROR_HELPEECONSIDERINGHELP 38
|
|
|
|
#define REMDESK_ERROR_HELPEENEVERRESPONDED 40
|
|
|
|
#define REMDESK_ERROR_HELPEESAIDNO 41
|
|
|
|
#define REMDESK_ERROR_HELPSESSIONACCESSDENIED 42
|
|
|
|
#define REMDESK_ERROR_USERNOTFOUND 43
|
|
|
|
#define REMDESK_ERROR_SESSMGRERRORNOTINIT 44
|
|
|
|
#define REMDESK_ERROR_SELFHELPNOTSUPPORTED 45
|
|
|
|
#define REMDESK_ERROR_INCOMPATIBLEVERSION 47
|
|
|
|
#define REMDESK_ERROR_SESSIONNOTCONNECTED 48
|
|
|
|
#define REMDESK_ERROR_SYSTEMSHUTDOWN 50
|
|
|
|
#define REMDESK_ERROR_STOPLISTENBYUSER 51
|
|
|
|
#define REMDESK_ERROR_WINSOCK_FAILED 52
|
|
|
|
#define REMDESK_ERROR_MISMATCHPARMS 53
|
|
|
|
#define REMDESK_ERROR_PASSWORDS_DONT_MATCH 61
|
|
|
|
#define REMDESK_ERROR_SHADOWEND_BASE 300
|
|
|
|
#define REMDESK_ERROR_SHADOWEND_CONFIGCHANGE 301
|
|
|
|
#define REMDESK_ERROR_SHADOWEND_UNKNOWN 302
|
2014-07-16 04:09:19 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2014-06-29 04:22:36 +04:00
|
|
|
{
|
|
|
|
UINT32 DataLength;
|
|
|
|
char ChannelName[32];
|
2022-02-14 16:59:22 +03:00
|
|
|
} REMDESK_CHANNEL_HEADER;
|
2014-06-29 04:22:36 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define REMDESK_CHANNEL_CTL_NAME "RC_CTL"
|
|
|
|
#define REMDESK_CHANNEL_CTL_SIZE 22
|
2014-06-29 04:22:36 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2014-06-29 04:22:36 +04:00
|
|
|
{
|
2021-09-06 17:11:48 +03:00
|
|
|
REMDESK_CHANNEL_HEADER ch;
|
2014-06-29 04:22:36 +04:00
|
|
|
|
|
|
|
UINT32 msgType;
|
2022-02-14 16:59:22 +03:00
|
|
|
} REMDESK_CTL_HEADER;
|
2014-06-29 04:22:36 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define REMDESK_CTL_REMOTE_CONTROL_DESKTOP 1
|
|
|
|
#define REMDESK_CTL_RESULT 2
|
|
|
|
#define REMDESK_CTL_AUTHENTICATE 3
|
|
|
|
#define REMDESK_CTL_SERVER_ANNOUNCE 4
|
|
|
|
#define REMDESK_CTL_DISCONNECT 5
|
|
|
|
#define REMDESK_CTL_VERSIONINFO 6
|
|
|
|
#define REMDESK_CTL_ISCONNECTED 7
|
|
|
|
#define REMDESK_CTL_VERIFY_PASSWORD 8
|
|
|
|
#define REMDESK_CTL_EXPERT_ON_VISTA 9
|
|
|
|
#define REMDESK_CTL_RANOVICE_NAME 10
|
|
|
|
#define REMDESK_CTL_RAEXPERT_NAME 11
|
|
|
|
#define REMDESK_CTL_TOKEN 12
|
2014-06-29 04:22:36 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2014-07-16 02:38:32 +04:00
|
|
|
{
|
|
|
|
REMDESK_CTL_HEADER ctlHeader;
|
|
|
|
|
|
|
|
UINT32 result;
|
2022-02-14 16:59:22 +03:00
|
|
|
} REMDESK_CTL_RESULT_PDU;
|
2014-07-16 02:38:32 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2014-06-29 04:22:36 +04:00
|
|
|
{
|
|
|
|
REMDESK_CTL_HEADER ctlHeader;
|
|
|
|
|
|
|
|
UINT32 versionMajor;
|
|
|
|
UINT32 versionMinor;
|
2022-02-14 16:59:22 +03:00
|
|
|
} REMDESK_CTL_VERSION_INFO_PDU;
|
2014-06-29 04:22:36 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2014-06-30 03:57:46 +04:00
|
|
|
{
|
|
|
|
REMDESK_CTL_HEADER ctlHeader;
|
|
|
|
|
|
|
|
char* raConnectionString;
|
|
|
|
char* expertBlob;
|
2022-02-14 16:59:22 +03:00
|
|
|
} REMDESK_CTL_AUTHENTICATE_PDU;
|
2014-06-30 03:57:46 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2014-06-30 21:26:11 +04:00
|
|
|
{
|
|
|
|
REMDESK_CTL_HEADER ctlHeader;
|
|
|
|
|
|
|
|
char* raConnectionString;
|
2022-02-14 16:59:22 +03:00
|
|
|
} REMDESK_CTL_REMOTE_CONTROL_DESKTOP_PDU;
|
2014-06-30 21:26:11 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2014-06-30 03:57:46 +04:00
|
|
|
{
|
|
|
|
REMDESK_CTL_HEADER ctlHeader;
|
|
|
|
|
|
|
|
char* expertBlob;
|
2022-02-14 16:59:22 +03:00
|
|
|
} REMDESK_CTL_VERIFY_PASSWORD_PDU;
|
2014-06-30 03:57:46 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2014-06-30 03:57:46 +04:00
|
|
|
{
|
|
|
|
REMDESK_CTL_HEADER ctlHeader;
|
|
|
|
|
|
|
|
BYTE* EncryptedPassword;
|
|
|
|
UINT32 EncryptedPasswordLength;
|
2022-02-14 16:59:22 +03:00
|
|
|
} REMDESK_CTL_EXPERT_ON_VISTA_PDU;
|
2014-06-30 03:57:46 +04:00
|
|
|
|
2014-06-29 01:24:44 +04:00
|
|
|
#endif /* FREERDP_CHANNEL_REMDESK_H */
|