ivdsadvanceddisk2

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 (
	// IVdsAdvancedDisk2 interface identifier 9723f420-9355-42de-ab66-e31bb15beeac
	AdvancedDisk2IID = &dcom.IID{Data1: 0x9723f420, Data2: 0x9355, Data3: 0x42de, Data4: []byte{0xab, 0x66, 0xe3, 0x1b, 0xb1, 0x5b, 0xee, 0xac}}
	// Syntax UUID
	AdvancedDisk2SyntaxUUID = &uuid.UUID{TimeLow: 0x9723f420, TimeMid: 0x9355, TimeHiAndVersion: 0x42de, ClockSeqHiAndReserved: 0xab, ClockSeqLow: 0x66, Node: [6]uint8{0xe3, 0x1b, 0xb1, 0x5b, 0xee, 0xac}}
	// Syntax ID
	AdvancedDisk2SyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: AdvancedDisk2SyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/vds"
)

Functions

func AdvancedDisk2ServerHandle

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

func NewAdvancedDisk2ServerHandle

func NewAdvancedDisk2ServerHandle(o AdvancedDisk2Server) dcerpc.ServerHandle

func RegisterAdvancedDisk2Server

func RegisterAdvancedDisk2Server(conn dcerpc.Conn, o AdvancedDisk2Server, opts ...dcerpc.Option)

Types

type AdvancedDisk2Client

type AdvancedDisk2Client interface {

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

	// The ChangePartitionType method changes the partition type on the disk at a specified
	// byte offset.
	//
	// 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)
	ChangePartitionType(context.Context, *ChangePartitionTypeRequest, ...dcerpc.CallOption) (*ChangePartitionTypeResponse, error)

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

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

IVdsAdvancedDisk2 interface.

func NewAdvancedDisk2Client

func NewAdvancedDisk2Client(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (AdvancedDisk2Client, error)

type AdvancedDisk2Server

type AdvancedDisk2Server interface {

	// IUnknown base class.
	iunknown.UnknownServer

	// The ChangePartitionType method changes the partition type on the disk at a specified
	// byte offset.
	//
	// 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)
	ChangePartitionType(context.Context, *ChangePartitionTypeRequest) (*ChangePartitionTypeResponse, error)
}

IVdsAdvancedDisk2 server interface.

type ChangePartitionTypeRequest

type ChangePartitionTypeRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// ullOffset: The byte offset of the partition, from the beginning of the disk. This
	// offset MUST be the offset of a start of a partition.
	Offset uint64 `idl:"name:ullOffset" json:"offset"`
	// bForce: A Boolean value that indicates whether a change will be forced even if the
	// volume cannot be locked for exclusive access. When bForce is false, ChangePartitionType
	// MUST lock and dismount the volume before changing the partition type. If bForce is
	// true, the volume MUST be dismounted and the change MUST be made even if the locking
	// of the volume fails.
	Force int32 `idl:"name:bForce" json:"force"`
	// para: A pointer to a CHANGE_PARTITION_TYPE_PARAMETERS structure that contains the
	// partition type that the partition at the location specified by ullOffset is changed
	// to.
	Parameters *vds.ChangePartitionTypeParameters `idl:"name:para" json:"parameters"`
}

ChangePartitionTypeRequest structure represents the ChangePartitionType operation request

func (*ChangePartitionTypeRequest) MarshalNDR

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

func (*ChangePartitionTypeRequest) UnmarshalNDR

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

type ChangePartitionTypeResponse

type ChangePartitionTypeResponse 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 ChangePartitionType return value.
	Return int32 `idl:"name:Return" json:"return"`
}

ChangePartitionTypeResponse structure represents the ChangePartitionType operation response

func (*ChangePartitionTypeResponse) MarshalNDR

func (*ChangePartitionTypeResponse) UnmarshalNDR

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

Jump to

Keyboard shortcuts

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