C# Class Microsoft.Protocols.TestSuites.Rdpbcgr.efs.RdpefsUtility

Encode/Decode MS-RDPEFS packets.
Show file Open project: Microsoft/WindowsProtocolTestSuites

Public Methods

Method Description
CreateServerAnnounceRequest ( ) : DR_CORE_SERVER_ANNOUNCE_REQ

Create Server Announce Request packet.

CreateServerClientIDConfirm ( uint clientId ) : DR_CORE_SERVER_CLIENTID_CONFIRM

Create Server Client ID Confirm packet.

CreateServerCoreCapabilityRequest ( ) : DR_CORE_CAPABILITY_REQ

Create Server Core Capability Request packet.

CreateServerUserLoggedOn ( ) : DR_CORE_USER_LOGGEDON

Create Server User Logged On packet

DecodeClientAnnounceReply ( byte data ) : DR_CORE_SERVER_ANNOUNCE_RSP

Decode Client Announce Reply packet.

DecodeClientCoreCapabilityRSP ( byte data ) : DR_CORE_CAPABILITY_RSP

Decode Client Core Capability Response packet

EncodeServerAnnounceRequest ( DR_CORE_SERVER_ANNOUNCE_REQ packet ) : byte[]

Encode Server Announce Request packet.

EncodeServerClientIDConfirm ( DR_CORE_SERVER_CLIENTID_CONFIRM packet ) : byte[]

Encode Server Client ID Confirm packet.

EncodeServerCoreCapabilityRequest ( DR_CORE_CAPABILITY_REQ packet ) : byte[]

Encode Server Core Capability Request packet.

EncodeServerUserLoggedOn ( DR_CORE_USER_LOGGEDON packet ) : byte[]

Encode a Server User Logged On packet

Private Methods

Method Description
DecodeCapabilityHeader ( byte data, int &index, bool isBigEndian ) : CAPABILITY_HEADER
DecodeRdpdrHeader ( byte data, int &index, bool isBigEndian ) : RDPDR_HEADER
EncodeStructure ( List buffer, object structure ) : void

Encode a structure to a byte list.

GetBytes ( byte data, int &startIndex, int bytesToRead ) : byte[]

Get specified length of bytes from a byte array (start index is updated according to the specified length)

ParseUInt16 ( byte data, int &index, bool isBigEndian ) : UInt16

Parse UInt16 (parser index is updated according to parsed length)

ParseUInt32 ( byte data, int &index, bool isBigEndian ) : UInt32

Parse UInt32 (parser index is updated according to parsed length)

StructToBytes ( object structp ) : byte[]

Method to covert struct to byte[]

Method Details

CreateServerAnnounceRequest() public static method

Create Server Announce Request packet.
public static CreateServerAnnounceRequest ( ) : DR_CORE_SERVER_ANNOUNCE_REQ
return DR_CORE_SERVER_ANNOUNCE_REQ

CreateServerClientIDConfirm() public static method

Create Server Client ID Confirm packet.
public static CreateServerClientIDConfirm ( uint clientId ) : DR_CORE_SERVER_CLIENTID_CONFIRM
clientId uint Client Id.
return DR_CORE_SERVER_CLIENTID_CONFIRM

CreateServerCoreCapabilityRequest() public static method

Create Server Core Capability Request packet.
public static CreateServerCoreCapabilityRequest ( ) : DR_CORE_CAPABILITY_REQ
return DR_CORE_CAPABILITY_REQ

CreateServerUserLoggedOn() public static method

Create Server User Logged On packet
public static CreateServerUserLoggedOn ( ) : DR_CORE_USER_LOGGEDON
return DR_CORE_USER_LOGGEDON

DecodeClientAnnounceReply() public static method

Decode Client Announce Reply packet.
public static DecodeClientAnnounceReply ( byte data ) : DR_CORE_SERVER_ANNOUNCE_RSP
data byte Packet data.
return DR_CORE_SERVER_ANNOUNCE_RSP

DecodeClientCoreCapabilityRSP() public static method

Decode Client Core Capability Response packet
public static DecodeClientCoreCapabilityRSP ( byte data ) : DR_CORE_CAPABILITY_RSP
data byte Packet data
return DR_CORE_CAPABILITY_RSP

EncodeServerAnnounceRequest() public static method

Encode Server Announce Request packet.
public static EncodeServerAnnounceRequest ( DR_CORE_SERVER_ANNOUNCE_REQ packet ) : byte[]
packet DR_CORE_SERVER_ANNOUNCE_REQ Server Announce Request packet
return byte[]

EncodeServerClientIDConfirm() public static method

Encode Server Client ID Confirm packet.
public static EncodeServerClientIDConfirm ( DR_CORE_SERVER_CLIENTID_CONFIRM packet ) : byte[]
packet DR_CORE_SERVER_CLIENTID_CONFIRM Server Client ID Confirm packet.
return byte[]

EncodeServerCoreCapabilityRequest() public static method

Encode Server Core Capability Request packet.
public static EncodeServerCoreCapabilityRequest ( DR_CORE_CAPABILITY_REQ packet ) : byte[]
packet DR_CORE_CAPABILITY_REQ Server Core Capability Request packet.
return byte[]

EncodeServerUserLoggedOn() public static method

Encode a Server User Logged On packet
public static EncodeServerUserLoggedOn ( DR_CORE_USER_LOGGEDON packet ) : byte[]
packet DR_CORE_USER_LOGGEDON
return byte[]