ivdsadvanceddisk

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IVdsAdvancedDisk interface identifier 6e6f6b40-977c-4069-bddd-ac710059f8c0
	AdvancedDiskIID = &dcom.IID{Data1: 0x6e6f6b40, Data2: 0x977c, Data3: 0x4069, Data4: []byte{0xbd, 0xdd, 0xac, 0x71, 0x00, 0x59, 0xf8, 0xc0}}
	// Syntax UUID
	AdvancedDiskSyntaxUUID = &uuid.UUID{TimeLow: 0x6e6f6b40, TimeMid: 0x977c, TimeHiAndVersion: 0x4069, ClockSeqHiAndReserved: 0xbd, ClockSeqLow: 0xdd, Node: [6]uint8{0xac, 0x71, 0x0, 0x59, 0xf8, 0xc0}}
	// Syntax ID
	AdvancedDiskSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: AdvancedDiskSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/vds"
)

Functions

func AdvancedDiskServerHandle

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

func NewAdvancedDiskServerHandle

func NewAdvancedDiskServerHandle(o AdvancedDiskServer) dcerpc.ServerHandle

func RegisterAdvancedDiskServer

func RegisterAdvancedDiskServer(conn dcerpc.Conn, o AdvancedDiskServer, opts ...dcerpc.Option)

Types

type AdvancedDiskClient

type AdvancedDiskClient interface {

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

	// The GetPartitionProperties method retrieves the properties of a partition 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.
	GetPartitionProperties(context.Context, *GetPartitionPropertiesRequest, ...dcerpc.CallOption) (*GetPartitionPropertiesResponse, error)

	// The QueryPartitions method enumerates a disk's partitions.
	//
	// 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.
	QueryPartitions(context.Context, *QueryPartitionsRequest, ...dcerpc.CallOption) (*QueryPartitionsResponse, error)

	// The CreatePartition method creates a partition on a 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.<94>
	//
	// Note  Creating or deleting partitions on dynamic disks is not supported.
	CreatePartition(context.Context, *CreatePartitionRequest, ...dcerpc.CallOption) (*CreatePartitionResponse, error)

	// The DeletePartition method deletes a partition from 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.
	//
	// Note  Creating or deleting partitions on dynamic disks is not supported.
	//
	// ERROR_SUCCESS (0x00000000)
	DeletePartition(context.Context, *DeletePartitionRequest, ...dcerpc.CallOption) (*DeletePartitionResponse, error)

	// The ChangeAttributes method changes the attributes of the partition at byte offset
	// ullOffset on the disk.
	//
	// 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.
	ChangeAttributes(context.Context, *ChangeAttributesRequest, ...dcerpc.CallOption) (*ChangeAttributesResponse, error)

	// The AssignDriveLetter method assigns a drive letter to an existing OEM, ESP, or unknown
	// partition.
	//
	// 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.
	AssignDriveLetter(context.Context, *AssignDriveLetterRequest, ...dcerpc.CallOption) (*AssignDriveLetterResponse, error)

	// The DeleteDriveLetter method deletes a drive letter that is assigned to an OEM, ESP,
	// or unknown partition.
	//
	// 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.
	DeleteDriveLetter(context.Context, *DeleteDriveLetterRequest, ...dcerpc.CallOption) (*DeleteDriveLetterResponse, error)

	// The GetDriveLetter method retrieves the drive letter of an OEM, ESP, or unknown partition
	// 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)
	GetDriveLetter(context.Context, *GetDriveLetterRequest, ...dcerpc.CallOption) (*GetDriveLetterResponse, error)

	// The FormatPartition method formats an existing OEM, ESP, or unknown partition.
	//
	// 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)
	FormatPartition(context.Context, *FormatPartitionRequest, ...dcerpc.CallOption) (*FormatPartitionResponse, error)

	// The Clean method cleans a disk.
	//
	// 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.
	Clean(context.Context, *CleanRequest, ...dcerpc.CallOption) (*CleanResponse, error)

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

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

IVdsAdvancedDisk interface.

func NewAdvancedDiskClient

func NewAdvancedDiskClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (AdvancedDiskClient, error)

type AdvancedDiskServer

type AdvancedDiskServer interface {

	// IUnknown base class.
	iunknown.UnknownServer

	// The GetPartitionProperties method retrieves the properties of a partition 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.
	GetPartitionProperties(context.Context, *GetPartitionPropertiesRequest) (*GetPartitionPropertiesResponse, error)

	// The QueryPartitions method enumerates a disk's partitions.
	//
	// 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.
	QueryPartitions(context.Context, *QueryPartitionsRequest) (*QueryPartitionsResponse, error)

	// The CreatePartition method creates a partition on a 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.<94>
	//
	// Note  Creating or deleting partitions on dynamic disks is not supported.
	CreatePartition(context.Context, *CreatePartitionRequest) (*CreatePartitionResponse, error)

	// The DeletePartition method deletes a partition from 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.
	//
	// Note  Creating or deleting partitions on dynamic disks is not supported.
	//
	// ERROR_SUCCESS (0x00000000)
	DeletePartition(context.Context, *DeletePartitionRequest) (*DeletePartitionResponse, error)

	// The ChangeAttributes method changes the attributes of the partition at byte offset
	// ullOffset on the disk.
	//
	// 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.
	ChangeAttributes(context.Context, *ChangeAttributesRequest) (*ChangeAttributesResponse, error)

	// The AssignDriveLetter method assigns a drive letter to an existing OEM, ESP, or unknown
	// partition.
	//
	// 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.
	AssignDriveLetter(context.Context, *AssignDriveLetterRequest) (*AssignDriveLetterResponse, error)

	// The DeleteDriveLetter method deletes a drive letter that is assigned to an OEM, ESP,
	// or unknown partition.
	//
	// 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.
	DeleteDriveLetter(context.Context, *DeleteDriveLetterRequest) (*DeleteDriveLetterResponse, error)

	// The GetDriveLetter method retrieves the drive letter of an OEM, ESP, or unknown partition
	// 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)
	GetDriveLetter(context.Context, *GetDriveLetterRequest) (*GetDriveLetterResponse, error)

	// The FormatPartition method formats an existing OEM, ESP, or unknown partition.
	//
	// 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)
	FormatPartition(context.Context, *FormatPartitionRequest) (*FormatPartitionResponse, error)

	// The Clean method cleans a disk.
	//
	// 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.
	Clean(context.Context, *CleanRequest) (*CleanResponse, error)
}

IVdsAdvancedDisk server interface.

type AssignDriveLetterRequest

type AssignDriveLetterRequest 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"`
	// wcLetter: The drive letter to assign, as a single uppercase or lowercase alphabetical
	// (A-Z) Unicode character.
	Letter uint16 `idl:"name:wcLetter" json:"letter"`
}

AssignDriveLetterRequest structure represents the AssignDriveLetter operation request

func (*AssignDriveLetterRequest) MarshalNDR

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

func (*AssignDriveLetterRequest) UnmarshalNDR

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

type AssignDriveLetterResponse

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

AssignDriveLetterResponse structure represents the AssignDriveLetter operation response

func (*AssignDriveLetterResponse) MarshalNDR

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

func (*AssignDriveLetterResponse) UnmarshalNDR

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

type ChangeAttributesRequest

type ChangeAttributesRequest 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 the start of a partition.
	Offset uint64 `idl:"name:ullOffset" json:"offset"`
	// para: A pointer to a CHANGE_ATTRIBUTES_PARAMETERS structure that describes the attributes
	// to change.
	Parameters *vds.ChangeAttributesParameters `idl:"name:para" json:"parameters"`
}

ChangeAttributesRequest structure represents the ChangeAttributes operation request

func (*ChangeAttributesRequest) MarshalNDR

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

func (*ChangeAttributesRequest) UnmarshalNDR

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

type ChangeAttributesResponse

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

ChangeAttributesResponse structure represents the ChangeAttributes operation response

func (*ChangeAttributesResponse) MarshalNDR

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

func (*ChangeAttributesResponse) UnmarshalNDR

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

type CleanRequest

type CleanRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// bForce: A Boolean value that indicates whether the cleaning operation will be forced.
	// If set, the method attempts to clean the disk, even if data volumes or ESP partitions
	// are present.
	Force int32 `idl:"name:bForce" json:"force"`
	// bForceOEM: A Boolean value that indicates whether the cleaning operation of an OEM
	// partition will be forced. If the disk contains an OEM partition, but bForceOEM is
	// not set, the operation SHOULD fail. If the value is set, the method attempts to clean
	// the disk, even if OEM partitions are present.<99>
	ForceOEM int32 `idl:"name:bForceOEM" json:"force_oem"`
	// bFullClean: A Boolean value specifying whether the cleaning operation removes all
	// the data from the disk.
	FullClean int32 `idl:"name:bFullClean" json:"full_clean"`
}

CleanRequest structure represents the Clean operation request

func (*CleanRequest) MarshalNDR

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

func (*CleanRequest) UnmarshalNDR

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

type CleanResponse

type CleanResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// ppAsync: A pointer to an IVdsAsync interface that, if the operation is successfully
	// completed, receives the IVdsAsync interface to monitor and control this operation.
	// Callers MUST release the interface when they are done with it.
	Async *vds.Async `idl:"name:ppAsync" json:"async"`
	// Return: The Clean return value.
	Return int32 `idl:"name:Return" json:"return"`
}

CleanResponse structure represents the Clean operation response

func (*CleanResponse) MarshalNDR

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

func (*CleanResponse) UnmarshalNDR

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

type CreatePartitionRequest

type CreatePartitionRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// ullOffset: MUST be the byte offset from the beginning of the disk at which to create
	// the new partition.
	Offset uint64 `idl:"name:ullOffset" json:"offset"`
	// ullSize: MUST be the size of the new partition, in bytes.
	Size uint64 `idl:"name:ullSize" json:"size"`
	// para: MUST be a pointer to a CREATE_PARTITION_PARAMETERS structure that describes
	// the new partition to create.
	Parameters *vds.CreatePartitionParameters `idl:"name:para" json:"parameters"`
}

CreatePartitionRequest structure represents the CreatePartition operation request

func (*CreatePartitionRequest) MarshalNDR

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

func (*CreatePartitionRequest) UnmarshalNDR

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

type CreatePartitionResponse

type CreatePartitionResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// ppAsync: MUST be a pointer to an IVdsAsync interface that, upon successful completion,
	// receives the IVdsAsync interface to monitor and control this operation. Callers MUST
	// release the interface received when they are done with it. If the IVdsAsync::Wait
	// method is called on the interface, the interfaces returned in the VDS_ASYNC_OUTPUT
	// structure MUST be released as well.
	Async *vds.Async `idl:"name:ppAsync" json:"async"`
	// Return: The CreatePartition return value.
	Return int32 `idl:"name:Return" json:"return"`
}

CreatePartitionResponse structure represents the CreatePartition operation response

func (*CreatePartitionResponse) MarshalNDR

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

func (*CreatePartitionResponse) UnmarshalNDR

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

type DeleteDriveLetterRequest

type DeleteDriveLetterRequest 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"`
	// wcLetter: The drive letter to delete as a single uppercase or lowercase alphabetical
	// (A-Z) Unicode character.
	Letter uint16 `idl:"name:wcLetter" json:"letter"`
}

DeleteDriveLetterRequest structure represents the DeleteDriveLetter operation request

func (*DeleteDriveLetterRequest) MarshalNDR

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

func (*DeleteDriveLetterRequest) UnmarshalNDR

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

type DeleteDriveLetterResponse

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

DeleteDriveLetterResponse structure represents the DeleteDriveLetter operation response

func (*DeleteDriveLetterResponse) MarshalNDR

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

func (*DeleteDriveLetterResponse) UnmarshalNDR

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

type DeletePartitionRequest

type DeletePartitionRequest 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 at the start of a partition.
	Offset uint64 `idl:"name:ullOffset" json:"offset"`
	// bForce: A Boolean that determines whether the partition deletion is forced. If this
	// parameter is set to a nonzero value, calls to lock and dismount any file system on
	// the partition that fail are ignored. If this parameter is set to zero and any file
	// systems on the partition failed to be locked or dismounted, the server returns VDS_E_DEVICE_IN_USE.
	Force int32 `idl:"name:bForce" json:"force"`
	// bForceProtected: A Boolean value that determines whether deletion of a protected
	// partition  will be forced.<95>
	ForceProtected int32 `idl:"name:bForceProtected" json:"force_protected"`
}

DeletePartitionRequest structure represents the DeletePartition operation request

func (*DeletePartitionRequest) MarshalNDR

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

func (*DeletePartitionRequest) UnmarshalNDR

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

type DeletePartitionResponse

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

DeletePartitionResponse structure represents the DeletePartition operation response

func (*DeletePartitionResponse) MarshalNDR

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

func (*DeletePartitionResponse) UnmarshalNDR

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

type FormatPartitionRequest

type FormatPartitionRequest 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"`
	// type: A file system type that is enumerated by VDS_FILE_SYSTEM_TYPE. Clients that
	// want to format by using file systems that are not enumerated by VDS_FILE_SYSTEM_TYPE
	// (section 2.2.1.2.9) can use the IVdsDiskPartitionMF::FormatPartionEx (section 3.4.5.2.29.4)
	// or IVdsDiskPartitionMF2::FormatPartitionEx2 methods.
	Type vds.FileSystemType `idl:"name:type" json:"type"`
	// pwszLabel: A null-terminated Unicode string representing the partition label. The
	// maximum label size is file system-dependent.
	Label string `idl:"name:pwszLabel;string" json:"label"`
	// dwUnitAllocationSize: The size, in bytes, of the allocation unit for the file system.
	// The value MUST be a power of 2. Allocation unit range is file system-dependent.
	UnitAllocationSize uint32 `idl:"name:dwUnitAllocationSize" json:"unit_allocation_size"`
	// bForce: A Boolean that determines whether the format is forced, regardless of whether
	// the partition is in use.
	Force int32 `idl:"name:bForce" json:"force"`
	// bQuickFormat: A Boolean that determines whether a file system is quick formatted.
	// A quick format does not verify each sector on the volume.
	QuickFormat int32 `idl:"name:bQuickFormat" json:"quick_format"`
	// bEnableCompression: A Boolean that determines whether a file system is created with
	// compression enabled.<97>
	EnableCompression int32 `idl:"name:bEnableCompression" json:"enable_compression"`
}

FormatPartitionRequest structure represents the FormatPartition operation request

func (*FormatPartitionRequest) MarshalNDR

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

func (*FormatPartitionRequest) UnmarshalNDR

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

type FormatPartitionResponse

type FormatPartitionResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// ppAsync: A pointer to an IVdsAsync interface that, if the operation is successfully
	// completed, receives the IVdsAsync interface to monitor and control this operation.
	// Callers MUST release the interface when they are done with it.
	Async *vds.Async `idl:"name:ppAsync" json:"async"`
	// Return: The FormatPartition return value.
	Return int32 `idl:"name:Return" json:"return"`
}

FormatPartitionResponse structure represents the FormatPartition operation response

func (*FormatPartitionResponse) MarshalNDR

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

func (*FormatPartitionResponse) UnmarshalNDR

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

type GetDriveLetterRequest

type GetDriveLetterRequest 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"`
}

GetDriveLetterRequest structure represents the GetDriveLetter operation request

func (*GetDriveLetterRequest) MarshalNDR

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

func (*GetDriveLetterRequest) UnmarshalNDR

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

type GetDriveLetterResponse

type GetDriveLetterResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// pwcLetter: A pointer to a Unicode character that will receive an uppercase or lowercase
	// alphabetical (A-Z) drive letter for the partition at byte offset ullOffset.
	Letter rune `idl:"name:pwcLetter" json:"letter"`
	// Return: The GetDriveLetter return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetDriveLetterResponse structure represents the GetDriveLetter operation response

func (*GetDriveLetterResponse) MarshalNDR

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

func (*GetDriveLetterResponse) UnmarshalNDR

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

type GetPartitionPropertiesRequest

type GetPartitionPropertiesRequest 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"`
}

GetPartitionPropertiesRequest structure represents the GetPartitionProperties operation request

func (*GetPartitionPropertiesRequest) MarshalNDR

func (*GetPartitionPropertiesRequest) UnmarshalNDR

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

type GetPartitionPropertiesResponse

type GetPartitionPropertiesResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// pPartitionProp: A pointer to a VDS_PARTITION_PROP structure that, if the operation
	// is successfully completed, receives the properties of the partition.
	PartitionProperty *vds.PartitionProperty `idl:"name:pPartitionProp" json:"partition_property"`
	// Return: The GetPartitionProperties return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetPartitionPropertiesResponse structure represents the GetPartitionProperties operation response

func (*GetPartitionPropertiesResponse) MarshalNDR

func (*GetPartitionPropertiesResponse) UnmarshalNDR

type QueryPartitionsRequest

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

QueryPartitionsRequest structure represents the QueryPartitions operation request

func (*QueryPartitionsRequest) MarshalNDR

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

func (*QueryPartitionsRequest) UnmarshalNDR

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

type QueryPartitionsResponse

type QueryPartitionsResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// ppPartitionPropArray: A pointer to an array of VDS_PARTITION_PROP structures that,
	// if the operation is successfully completed, receives the array of partition properties.
	PartitionPropertyArray []*vds.PartitionProperty `idl:"name:ppPartitionPropArray;size_is:(, plNumberOfPartitions)" json:"partition_property_array"`
	// plNumberOfPartitions: A pointer to a variable that, if the operation is successfully
	// completed, receives the total number of elements in ppPartitionPropArray.
	NumberOfPartitions int32 `idl:"name:plNumberOfPartitions" json:"number_of_partitions"`
	// Return: The QueryPartitions return value.
	Return int32 `idl:"name:Return" json:"return"`
}

QueryPartitionsResponse structure represents the QueryPartitions operation response

func (*QueryPartitionsResponse) MarshalNDR

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

func (*QueryPartitionsResponse) UnmarshalNDR

func (o *QueryPartitionsResponse) 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