新增动态链接库调用

This commit is contained in:
2025-03-21 22:33:07 +08:00
parent ded0148ba6
commit e3490fa5b1
4 changed files with 34 additions and 4 deletions

22
client/rdpClient_test.go Normal file
View File

@@ -0,0 +1,22 @@
package client
import (
"testing"
)
func TestGetScreen(t *testing.T) {
/* 测试成功版本:
Windows Server 2008 ✔
Windows Server 2012 ✔
Windows Server 2016 ✔
Windows 7 ✔
Windows 10 ✔
*/
imgBytes, err := getScreen("192.168.250.128:3389")
if err != nil {
t.Fatal(err)
}
t.Logf("Length of imgBytes: %v", len(imgBytes))
}