func Rdp_new(chanId int64) *C.rdpContext { 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) C.setContextChan(context.instance, C.INT64(chanId)) return context }
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) }