initshutdown

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Syntax UUID
	InitShutdownSyntaxUUID = &uuid.UUID{TimeLow: 0x894de0c0, TimeMid: 0xd55, TimeHiAndVersion: 0x11d3, ClockSeqHiAndReserved: 0xa3, ClockSeqLow: 0x22, Node: [6]uint8{0x0, 0xc0, 0x4f, 0xa3, 0x21, 0xa1}}
	// Syntax ID
	InitShutdownSyntaxV1_0 = &dcerpc.SyntaxID{IfUUID: InitShutdownSyntaxUUID, IfVersionMajor: 1, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "rsp"
)

Functions

func InitShutdownServerHandle

func InitShutdownServerHandle(ctx context.Context, o InitShutdownServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)

func NewInitShutdownServerHandle

func NewInitShutdownServerHandle(o InitShutdownServer) dcerpc.ServerHandle

func RegisterInitShutdownServer

func RegisterInitShutdownServer(conn dcerpc.Conn, o InitShutdownServer, opts ...dcerpc.Option)

Types

type BaseAbortShutdownRequest

type BaseAbortShutdownRequest struct {
	// ServerName: The custom RPC binding handle (PREGISTRY_SERVER_NAME (section 2.2.1)).
	ServerName string `idl:"name:ServerName;pointer:unique" json:"server_name"`
}

BaseAbortShutdownRequest structure represents the BaseAbortShutdown operation request

func (*BaseAbortShutdownRequest) MarshalNDR

func (o *BaseAbortShutdownRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*BaseAbortShutdownRequest) UnmarshalNDR

func (o *BaseAbortShutdownRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type BaseAbortShutdownResponse

type BaseAbortShutdownResponse struct {
	// Return: The BaseAbortShutdown return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

BaseAbortShutdownResponse structure represents the BaseAbortShutdown operation response

func (*BaseAbortShutdownResponse) MarshalNDR

func (o *BaseAbortShutdownResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*BaseAbortShutdownResponse) UnmarshalNDR

func (o *BaseAbortShutdownResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type BaseInitiateShutdownExRequest

type BaseInitiateShutdownExRequest struct {
	// ServerName: The custom RPC binding handle (PREGISTRY_SERVER_NAME (section 2.2.1)).
	ServerName string `idl:"name:ServerName;pointer:unique" json:"server_name"`
	// lpMessage: Null-terminated Unicode string that contains the message to display during
	// the shutdown waiting period. If this parameter is NULL, no message MUST be displayed.
	Message *rsp.UnicodeString `idl:"name:lpMessage;pointer:unique" json:"message"`
	// dwTimeout: Number of seconds to wait before shutting down.
	Timeout uint32 `idl:"name:dwTimeout" json:"timeout"`
	// bForceAppsClosed: If TRUE, all applications SHOULD be terminated unconditionally.
	ForceAppsClosed uint8 `idl:"name:bForceAppsClosed" json:"force_apps_closed"`
	// bRebootAfterShutdown: If TRUE, the system SHOULD shut down and reboot. If FALSE,
	// the system SHOULD only shut down.
	RebootAfterShutdown uint8 `idl:"name:bRebootAfterShutdown" json:"reboot_after_shutdown"`
	// dwReason: Reason for initiating the shutdown (section 2.3).
	Reason uint32 `idl:"name:dwReason" json:"reason"`
}

BaseInitiateShutdownExRequest structure represents the BaseInitiateShutdownEx operation request

func (*BaseInitiateShutdownExRequest) MarshalNDR

func (*BaseInitiateShutdownExRequest) UnmarshalNDR

func (o *BaseInitiateShutdownExRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type BaseInitiateShutdownExResponse

type BaseInitiateShutdownExResponse struct {
	// Return: The BaseInitiateShutdownEx return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

BaseInitiateShutdownExResponse structure represents the BaseInitiateShutdownEx operation response

func (*BaseInitiateShutdownExResponse) MarshalNDR

func (*BaseInitiateShutdownExResponse) UnmarshalNDR

type BaseInitiateShutdownRequest

type BaseInitiateShutdownRequest struct {
	// ServerName: The custom RPC binding handle (PREGISTRY_SERVER_NAME (section 2.2.1)).
	ServerName string `idl:"name:ServerName;pointer:unique" json:"server_name"`
	// lpMessage: Null-terminated Unicode string that contains the message to display during
	// the shutdown waiting period. If this parameter is NULL, no message MUST be displayed.
	Message *rsp.UnicodeString `idl:"name:lpMessage;pointer:unique" json:"message"`
	// dwTimeout: Number of seconds to wait before shutting down.
	Timeout uint32 `idl:"name:dwTimeout" json:"timeout"`
	// bForceAppsClosed: If TRUE, all applications SHOULD be terminated unconditionally.
	ForceAppsClosed uint8 `idl:"name:bForceAppsClosed" json:"force_apps_closed"`
	// bRebootAfterShutdown: If TRUE, the system SHOULD shut down and reboot. If FALSE,
	// the system SHOULD only shut down.
	RebootAfterShutdown uint8 `idl:"name:bRebootAfterShutdown" json:"reboot_after_shutdown"`
}

BaseInitiateShutdownRequest structure represents the BaseInitiateShutdown operation request

func (*BaseInitiateShutdownRequest) MarshalNDR

func (*BaseInitiateShutdownRequest) UnmarshalNDR

func (o *BaseInitiateShutdownRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type BaseInitiateShutdownResponse

type BaseInitiateShutdownResponse struct {
	// Return: The BaseInitiateShutdown return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

BaseInitiateShutdownResponse structure represents the BaseInitiateShutdown operation response

func (*BaseInitiateShutdownResponse) MarshalNDR

func (*BaseInitiateShutdownResponse) UnmarshalNDR

func (o *BaseInitiateShutdownResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type InitShutdownClient

type InitShutdownClient interface {

	// The BaseInitiateShutdown method is used to initiate the shutdown of the remote computer.<8>
	//
	// Return Values: The method returns ERROR_SUCCESS (0x00000000) on success; otherwise,
	// it returns a nonzero error code.<9>
	BaseInitiateShutdown(context.Context, *BaseInitiateShutdownRequest, ...dcerpc.CallOption) (*BaseInitiateShutdownResponse, error)

	// The BaseAbortShutdown method is used to terminate the shutdown of the remote computer
	// within the waiting period.<10>
	//
	// Return Values: The method returns ERROR_SUCCESS (0x00000000) on success; otherwise,
	// it returns a nonzero error code.
	BaseAbortShutdown(context.Context, *BaseAbortShutdownRequest, ...dcerpc.CallOption) (*BaseAbortShutdownResponse, error)

	// The BaseInitiateShutdownEx method is used to initiate the shutdown of the remote
	// computer.<11>
	//
	// Return Values: The method returns ERROR_SUCCESS (0x00000000) on success; otherwise,
	// it returns a nonzero error code.
	BaseInitiateShutdownEx(context.Context, *BaseInitiateShutdownExRequest, ...dcerpc.CallOption) (*BaseInitiateShutdownExResponse, error)

	// AlterContext alters the client context.
	AlterContext(context.Context, ...dcerpc.Option) error
}

InitShutdown interface.

func NewInitShutdownClient

func NewInitShutdownClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (InitShutdownClient, error)

type InitShutdownServer

type InitShutdownServer interface {

	// The BaseInitiateShutdown method is used to initiate the shutdown of the remote computer.<8>
	//
	// Return Values: The method returns ERROR_SUCCESS (0x00000000) on success; otherwise,
	// it returns a nonzero error code.<9>
	BaseInitiateShutdown(context.Context, *BaseInitiateShutdownRequest) (*BaseInitiateShutdownResponse, error)

	// The BaseAbortShutdown method is used to terminate the shutdown of the remote computer
	// within the waiting period.<10>
	//
	// Return Values: The method returns ERROR_SUCCESS (0x00000000) on success; otherwise,
	// it returns a nonzero error code.
	BaseAbortShutdown(context.Context, *BaseAbortShutdownRequest) (*BaseAbortShutdownResponse, error)

	// The BaseInitiateShutdownEx method is used to initiate the shutdown of the remote
	// computer.<11>
	//
	// Return Values: The method returns ERROR_SUCCESS (0x00000000) on success; otherwise,
	// it returns a nonzero error code.
	BaseInitiateShutdownEx(context.Context, *BaseInitiateShutdownExRequest) (*BaseInitiateShutdownExResponse, error)
}

InitShutdown server interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL