ivdsserviceloader

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IVdsServiceLoader interface identifier e0393303-90d4-4a97-ab71-e9b671ee2729
	ServiceLoaderIID = &dcom.IID{Data1: 0xe0393303, Data2: 0x90d4, Data3: 0x4a97, Data4: []byte{0xab, 0x71, 0xe9, 0xb6, 0x71, 0xee, 0x27, 0x29}}
	// Syntax UUID
	ServiceLoaderSyntaxUUID = &uuid.UUID{TimeLow: 0xe0393303, TimeMid: 0x90d4, TimeHiAndVersion: 0x4a97, ClockSeqHiAndReserved: 0xab, ClockSeqLow: 0x71, Node: [6]uint8{0xe9, 0xb6, 0x71, 0xee, 0x27, 0x29}}
	// Syntax ID
	ServiceLoaderSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: ServiceLoaderSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/vds"
)

Functions

func NewServiceLoaderServerHandle

func NewServiceLoaderServerHandle(o ServiceLoaderServer) dcerpc.ServerHandle

func RegisterServiceLoaderServer

func RegisterServiceLoaderServer(conn dcerpc.Conn, o ServiceLoaderServer, opts ...dcerpc.Option)

func ServiceLoaderServerHandle

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

Types

type LoadServiceRequest

type LoadServiceRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// pwszMachineName: A pointer to a string that contains the name of the machine on which
	// the VDS service is loaded.
	MachineName string `idl:"name:pwszMachineName;string;pointer:unique" json:"machine_name"`
}

LoadServiceRequest structure represents the LoadService operation request

func (*LoadServiceRequest) MarshalNDR

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

func (*LoadServiceRequest) UnmarshalNDR

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

type LoadServiceResponse

type LoadServiceResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// ppService: A pointer to the IVdsService interface that, if successfully completed,
	// returns the IVdsService interface to the VDS service that runs on the machine represented
	// by pwszMachineName.
	Service *vds.Service `idl:"name:ppService" json:"service"`
	// Return: The LoadService return value.
	Return int32 `idl:"name:Return" json:"return"`
}

LoadServiceResponse structure represents the LoadService operation response

func (*LoadServiceResponse) MarshalNDR

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

func (*LoadServiceResponse) UnmarshalNDR

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

type ServiceLoaderClient

type ServiceLoaderClient interface {

	// IUnknown retrieval method.
	Unknown() iunknown.UnknownClient

	// The LoadService method is used by client applications to load the VDS service on
	// a remote machine.
	//
	// Return Values: The method MUST return zero or a non-error HRESULT (as specified in
	// [MS-ERREF]) to indicate success or return an implementation-specific nonzero error
	// code to indicate failure. For the HRESULT values predefined by the Virtual Disk Service
	// Remote Protocol, see section 2.2.3.
	LoadService(context.Context, *LoadServiceRequest, ...dcerpc.CallOption) (*LoadServiceResponse, error)

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

	// IPID sets the object interface identifier.
	IPID(context.Context, *dcom.IPID) ServiceLoaderClient
}

IVdsServiceLoader interface.

func NewServiceLoaderClient

func NewServiceLoaderClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (ServiceLoaderClient, error)

type ServiceLoaderServer

type ServiceLoaderServer interface {

	// IUnknown base class.
	iunknown.UnknownServer

	// The LoadService method is used by client applications to load the VDS service on
	// a remote machine.
	//
	// Return Values: The method MUST return zero or a non-error HRESULT (as specified in
	// [MS-ERREF]) to indicate success or return an implementation-specific nonzero error
	// code to indicate failure. For the HRESULT values predefined by the Virtual Disk Service
	// Remote Protocol, see section 2.2.3.
	LoadService(context.Context, *LoadServiceRequest) (*LoadServiceResponse, error)
}

IVdsServiceLoader server interface.

Jump to

Keyboard shortcuts

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