blob: 6e379a7db9860e4bdd42bf86a2e5f66ef395e5d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
package tschexec
import (
"github.com/oiweiwei/go-msrpc/dcerpc"
"github.com/oiweiwei/go-msrpc/msrpc/tsch/itaskschedulerservice/v1"
"time"
)
type Module struct {
// dce holds the working DCE connection interface
dce dcerpc.Conn
// tsch holds the ITaskSchedulerService client
tsch itaskschedulerservice.TaskSchedulerServiceClient
}
type MethodRegisterConfig struct {
NoDelete bool
CallDelete bool
//TaskName string
TaskPath string
StartDelay time.Duration
StopDelay time.Duration
DeleteDelay time.Duration
}
type MethodDemandConfig struct {
NoDelete bool
CallDelete bool
TaskName string
TaskPath string
StopDelay time.Duration
DeleteDelay time.Duration
}
type MethodDeleteConfig struct {
TaskPath string
}
const (
MethodRegister string = "register"
MethodDemand string = "demand"
MethodDelete string = "delete"
MethodChange string = "update"
)
|