ivdsremovable

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IVdsRemovable interface identifier 0316560b-5db4-4ed9-bbb5-213436ddc0d9
	RemovableIID = &dcom.IID{Data1: 0x0316560b, Data2: 0x5db4, Data3: 0x4ed9, Data4: []byte{0xbb, 0xb5, 0x21, 0x34, 0x36, 0xdd, 0xc0, 0xd9}}
	// Syntax UUID
	RemovableSyntaxUUID = &uuid.UUID{TimeLow: 0x316560b, TimeMid: 0x5db4, TimeHiAndVersion: 0x4ed9, ClockSeqHiAndReserved: 0xbb, ClockSeqLow: 0xb5, Node: [6]uint8{0x21, 0x34, 0x36, 0xdd, 0xc0, 0xd9}}
	// Syntax ID
	RemovableSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: RemovableSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/vds"
)

Functions

func NewRemovableServerHandle

func NewRemovableServerHandle(o RemovableServer) dcerpc.ServerHandle

func RegisterRemovableServer

func RegisterRemovableServer(conn dcerpc.Conn, o RemovableServer, opts ...dcerpc.Option)

func RemovableServerHandle

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

Types

type EjectRequest

type EjectRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
}

EjectRequest structure represents the Eject operation request

func (*EjectRequest) MarshalNDR

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

func (*EjectRequest) UnmarshalNDR

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

type EjectResponse

type EjectResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// Return: The Eject return value.
	Return int32 `idl:"name:Return" json:"return"`
}

EjectResponse structure represents the Eject operation response

func (*EjectResponse) MarshalNDR

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

func (*EjectResponse) UnmarshalNDR

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

type QueryMediaRequest

type QueryMediaRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
}

QueryMediaRequest structure represents the QueryMedia operation request

func (*QueryMediaRequest) MarshalNDR

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

func (*QueryMediaRequest) UnmarshalNDR

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

type QueryMediaResponse

type QueryMediaResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// Return: The QueryMedia return value.
	Return int32 `idl:"name:Return" json:"return"`
}

QueryMediaResponse structure represents the QueryMedia operation response

func (*QueryMediaResponse) MarshalNDR

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

func (*QueryMediaResponse) UnmarshalNDR

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

type RemovableClient

type RemovableClient interface {

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

	// The QueryMedia method identifies the media in the drive.
	//
	// This method has no parameters.
	//
	// 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.
	//
	// ERROR_SUCCESS (0x00000000)
	QueryMedia(context.Context, *QueryMediaRequest, ...dcerpc.CallOption) (*QueryMediaResponse, error)

	// The Eject method ejects the media in the drive.
	//
	// This method has no parameters.
	//
	// 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.
	Eject(context.Context, *EjectRequest, ...dcerpc.CallOption) (*EjectResponse, error)

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

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

IVdsRemovable interface.

func NewRemovableClient

func NewRemovableClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (RemovableClient, error)

type RemovableServer

type RemovableServer interface {

	// IUnknown base class.
	iunknown.UnknownServer

	// The QueryMedia method identifies the media in the drive.
	//
	// This method has no parameters.
	//
	// 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.
	//
	// ERROR_SUCCESS (0x00000000)
	QueryMedia(context.Context, *QueryMediaRequest) (*QueryMediaResponse, error)

	// The Eject method ejects the media in the drive.
	//
	// This method has no parameters.
	//
	// 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.
	Eject(context.Context, *EjectRequest) (*EjectResponse, error)
}

IVdsRemovable server interface.

Jump to

Keyboard shortcuts

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