Documentation
¶
Index ¶
Constants ¶
View Source
const ( ModuleName = "SCMR" DefaultEndpoint = "ncacn_np:[svcctl]" ScmrUuid = "367ABB81-9844-35F1-AD32-98F038001003" )
View Source
const ( ErrorServiceRequestTimeout uint32 = 0x0000041d ErrorServiceNotActive uint32 = 0x00000426 ServiceDemandStart uint32 = 0x00000003 ServiceWin32OwnProcess uint32 = 0x00000010 ServiceQueryConfig uint32 = 0x00000001 ServiceChangeConfig uint32 = 0x00000002 ServiceStart uint32 = 0x00000010 ServiceStop uint32 = 0x00000020 ServiceDelete uint32 = 0x00010000 // special permission ServiceControlStop uint32 = 0x00000001 ScManagerCreateService uint32 = 0x00000002 ServiceDeleteAccess = ServiceDelete ServiceModifyAccess = ServiceQueryConfig | ServiceChangeConfig | ServiceStop | ServiceStart | ServiceDelete ServiceCreateAccess = ScManagerCreateService | ServiceStart | ServiceStop | ServiceDelete ServiceAllAccess = ServiceCreateAccess | ServiceModifyAccess )
View Source
const (
MethodChange = "Change"
)
View Source
const (
MethodCreate = "Create"
)
View Source
const (
MethodDelete = "Delete"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScmrChange ¶
type ScmrChange struct {
Scmr
goexec.Cleaner
goexec.Executor
IO goexec.ExecutionIO
NoStart bool
NoRevert bool
ServiceName string
}
func (*ScmrChange) Execute ¶
func (m *ScmrChange) Execute(ctx context.Context, in *goexec.ExecutionIO) (err error)
type ScmrCreate ¶
type ScmrCreate struct {
Scmr
goexec.Cleaner
goexec.Executor
IO goexec.ExecutionIO
NoDelete bool
NoStart bool
ServiceName string
DisplayName string
}
func (*ScmrCreate) Execute ¶
func (m *ScmrCreate) Execute(ctx context.Context, in *goexec.ExecutionIO) (err error)
type ScmrDelete ¶
Click to show internal directories.
Click to hide internal directories.