Documentation ¶
Index ¶
- Constants
- Variables
- type CHANNEL_INIT_EVENT_EX_FN
- type CHANNEL_OPEN_EVENT_EX_FN
- type ChannelClient
- type ChannelDef
- type ChannelEntryPointsEx
- type ChannelTransport
- type Channels
- type VIRTUALCHANNELCLOSEEX
- type VIRTUALCHANNELENTRYEX
- type VIRTUALCHANNELINITEX
- type VIRTUALCHANNELOPENEX
- type VIRTUALCHANNELWRITEEX
Constants ¶
View Source
const ( CHANNEL_RC_OK = 0 CHANNEL_RC_ALREADY_INITIALIZED = 1 CHANNEL_RC_NOT_INITIALIZED = 2 CHANNEL_RC_ALREADY_CONNECTED = 3 CHANNEL_RC_NOT_CONNECTED = 4 CHANNEL_RC_TOO_MANY_CHANNELS = 5 CHANNEL_RC_BAD_CHANNEL = 6 CHANNEL_RC_BAD_CHANNEL_HANDLE = 7 CHANNEL_RC_NO_BUFFER = 8 CHANNEL_RC_BAD_INIT_HANDLE = 9 CHANNEL_RC_NOT_OPEN = 10 CHANNEL_RC_BAD_PROC = 11 CHANNEL_RC_NO_MEMORY = 12 CHANNEL_RC_UNKNOWN_CHANNEL_NAME = 13 CHANNEL_RC_ALREADY_OPEN = 14 CHANNEL_RC_NOT_IN_VIRTUALCHANNELENTRY = 15 CHANNEL_RC_NULL_DATA = 16 CHANNEL_RC_ZERO_LENGTH = 17 CHANNEL_RC_INVALID_INSTANCE = 18 CHANNEL_RC_UNSUPPORTED_VERSION = 19 CHANNEL_RC_INITIALIZATION_ERROR = 20 )
View Source
const ( CHANNEL_EVENT_INITIALIZED = 0 CHANNEL_EVENT_CONNECTED = 1 CHANNEL_EVENT_V1_CONNECTED = 2 CHANNEL_EVENT_DISCONNECTED = 3 CHANNEL_EVENT_TERMINATED = 4 CHANNEL_EVENT_REMOTE_CONTROL_START = 5 CHANNEL_EVENT_REMOTE_CONTROL_STOP = 6 CHANNEL_EVENT_ATTACHED = 7 CHANNEL_EVENT_DETACHED = 8 CHANNEL_EVENT_DATA_RECEIVED = 10 CHANNEL_EVENT_WRITE_COMPLETE = 11 CHANNEL_EVENT_WRITE_CANCELLED = 12 )
View Source
const ( CHANNEL_OPTION_INITIALIZED = 0x80000000 CHANNEL_OPTION_ENCRYPT_RDP = 0x40000000 CHANNEL_OPTION_ENCRYPT_SC = 0x20000000 CHANNEL_OPTION_ENCRYPT_CS = 0x10000000 CHANNEL_OPTION_PRI_HIGH = 0x08000000 CHANNEL_OPTION_PRI_MED = 0x04000000 CHANNEL_OPTION_PRI_LOW = 0x02000000 CHANNEL_OPTION_COMPRESS_RDP = 0x00800000 CHANNEL_OPTION_COMPRESS = 0x00400000 CHANNEL_OPTION_SHOW_PROTOCOL = 0x00200000 CHANNEL_OPTION_REMOTE_CONTROL_PERSISTENT = 0x00100000 )
View Source
const ( CLIPRDR_SVC_CHANNEL_NAME = "cliprdr" //剪切板 RDPDR_SVC_CHANNEL_NAME = "rdpdr" //设备重定向(打印机,磁盘,端口,智能卡等) RDPSND_SVC_CHANNEL_NAME = "rdpsnd" //音频输出 RAIL_SVC_CHANNEL_NAME = "rail" //远程应用 ENCOMSP_SVC_CHANNEL_NAME = "encomsp" //多方虚拟通道 REMDESK_SVC_CHANNEL_NAME = "remdesk" //远程协助 )
static channel name
View Source
const ( CHANNEL_CHUNK_LENGTH = 1600 CHANNEL_FLAG_FIRST = 0x01 CHANNEL_FLAG_LAST = 0x02 CHANNEL_FLAG_SHOW_PROTOCOL = 0x10 )
View Source
const (
VIRTUAL_CHANNEL_VERSION_WIN2000 = 1
)
Variables ¶
View Source
var StaticVirtualChannels = map[string]int{ CLIPRDR_SVC_CHANNEL_NAME: CHANNEL_OPTION_INITIALIZED | CHANNEL_OPTION_ENCRYPT_RDP | CHANNEL_OPTION_COMPRESS_RDP | CHANNEL_OPTION_SHOW_PROTOCOL, RDPDR_SVC_CHANNEL_NAME: CHANNEL_OPTION_INITIALIZED | CHANNEL_OPTION_ENCRYPT_RDP | CHANNEL_OPTION_COMPRESS_RDP, RDPSND_SVC_CHANNEL_NAME: CHANNEL_OPTION_INITIALIZED | CHANNEL_OPTION_ENCRYPT_RDP | CHANNEL_OPTION_COMPRESS_RDP | CHANNEL_OPTION_SHOW_PROTOCOL, RAIL_SVC_CHANNEL_NAME: CHANNEL_OPTION_INITIALIZED | CHANNEL_OPTION_ENCRYPT_RDP | CHANNEL_OPTION_COMPRESS_RDP | CHANNEL_OPTION_SHOW_PROTOCOL, }
Functions ¶
This section is empty.
Types ¶
type ChannelClient ¶
type ChannelClient struct { ChannelDef // contains filtered or unexported fields }
type ChannelDef ¶
type ChannelEntryPointsEx ¶
type ChannelEntryPointsEx struct { CbSize uint32 ProtocolVersion uint32 PVirtualChannelInitEx VIRTUALCHANNELINITEX PVirtualChannelOpenEx VIRTUALCHANNELOPENEX PVirtualChannelCloseEx VIRTUALCHANNELCLOSEEX PVirtualChannelWriteEx VIRTUALCHANNELWRITEEX }
func NewChannelEntryPointsEx ¶
func NewChannelEntryPointsEx() *ChannelEntryPointsEx
type ChannelTransport ¶
type ChannelTransport interface { GetType() (string, uint32) Sender(core.ChannelSender) Process(s []byte) }
type Channels ¶
func NewChannels ¶
func (*Channels) Register ¶
func (c *Channels) Register(t ChannelTransport)
func (*Channels) SendToChannel ¶
func (*Channels) SetChannelSender ¶
func (c *Channels) SetChannelSender(f core.ChannelSender)
type VIRTUALCHANNELCLOSEEX ¶
type VIRTUALCHANNELENTRYEX ¶
type VIRTUALCHANNELENTRYEX func(pEntryPointsEx *ChannelEntryPointsEx, pInitHandle interface{}) error
type VIRTUALCHANNELINITEX ¶
type VIRTUALCHANNELINITEX func(lpUserParam interface{}, clientContext interface{}, pInitHandle interface{}, pChannel []ChannelDef, channelCount int, versionRequested uint32, pChannelInitEventProcEx CHANNEL_INIT_EVENT_EX_FN) uint
type VIRTUALCHANNELOPENEX ¶
type VIRTUALCHANNELOPENEX func(pInitHandle interface{}, pOpenHandle *uint32, pChannelName string, pChannelOpenEventProcEx *CHANNEL_OPEN_EVENT_EX_FN) uint
type VIRTUALCHANNELWRITEEX ¶
Click to show internal directories.
Click to hide internal directories.