Documentation ¶
Index ¶
- Variables
- func InitShutdownServerHandle(ctx context.Context, o InitShutdownServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)
- func NewInitShutdownServerHandle(o InitShutdownServer) dcerpc.ServerHandle
- func RegisterInitShutdownServer(conn dcerpc.Conn, o InitShutdownServer, opts ...dcerpc.Option)
- type BaseAbortShutdownRequest
- type BaseAbortShutdownResponse
- type BaseInitiateShutdownExRequest
- type BaseInitiateShutdownExResponse
- type BaseInitiateShutdownRequest
- type BaseInitiateShutdownResponse
- type InitShutdownClient
- type InitShutdownServer
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 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 (*BaseAbortShutdownRequest) UnmarshalNDR ¶
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 (*BaseAbortShutdownResponse) UnmarshalNDR ¶
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 ¶
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 ¶
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 ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.