Exemple #1
0
func Rdp_start(context *C.rdpContext) {
	log.Println(C.GoString(context.instance.settings.ServerHostname))
	C.freerdp_client_start(context)

	log.Println("Rdp_start end!")
	Rdp_free(context)
}
Exemple #2
0
func Rdp_new() {
	var clientEntryPoints C.RDP_CLIENT_ENTRY_POINTS
	clientEntryPoints.Size = C.DWORD(unsafe.Sizeof(clientEntryPoints))
	clientEntryPoints.Version = C.RDP_CLIENT_INTERFACE_VERSION
	log.Printf("size:%d version:%d", clientEntryPoints.Size, clientEntryPoints.Version)
	C.RdpClientEntry(&clientEntryPoints)
	log.Printf("size:%d version:%d", clientEntryPoints.Size, clientEntryPoints.Version)
	context := C.freerdp_client_context_new(&clientEntryPoints)
	setRdpInfo(context)
	log.Println(C.GoString(context.instance.settings.ServerHostname))
	C.freerdp_client_start(context)
}