mirror of
https://github.com/yv1ing/ShotRDP.git
synced 2025-09-16 15:10:57 +08:00
基本适应win7,win10,win server 08,win server 12,win server 16的截图
This commit is contained in:
28
grdp/plugin/rdpgfx/rdpgfx.go
Normal file
28
grdp/plugin/rdpgfx/rdpgfx.go
Normal file
@@ -0,0 +1,28 @@
|
||||
package rdpgfx
|
||||
|
||||
import (
|
||||
"encoding/hex"
|
||||
|
||||
"ShotRDP/grdp/core"
|
||||
"ShotRDP/grdp/glog"
|
||||
"ShotRDP/grdp/plugin"
|
||||
)
|
||||
|
||||
const (
|
||||
ChannelName = plugin.RDPGFX_DVC_CHANNEL_NAME
|
||||
)
|
||||
|
||||
type gfxClient struct {
|
||||
}
|
||||
|
||||
func (c *gfxClient) Send(s []byte) (int, error) {
|
||||
glog.Debug("len:", len(s), "data:", hex.EncodeToString(s))
|
||||
name, _ := c.GetType()
|
||||
return c.w.SendToChannel(name, s)
|
||||
}
|
||||
func (c *gfxClient) Sender(f core.ChannelSender) {
|
||||
c.w = f
|
||||
}
|
||||
func (c *gfxClient) GetType() (string, uint32) {
|
||||
return ChannelName, 0
|
||||
}
|
||||
Reference in New Issue
Block a user