ivdsdiskpartitionmf

package
v1.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IVdsDiskPartitionMF interface identifier 538684e0-ba3d-4bc0-aca9-164aff85c2a9
	DiskPartitionMFIID = &dcom.IID{Data1: 0x538684e0, Data2: 0xba3d, Data3: 0x4bc0, Data4: []byte{0xac, 0xa9, 0x16, 0x4a, 0xff, 0x85, 0xc2, 0xa9}}
	// Syntax UUID
	DiskPartitionMFSyntaxUUID = &uuid.UUID{TimeLow: 0x538684e0, TimeMid: 0xba3d, TimeHiAndVersion: 0x4bc0, ClockSeqHiAndReserved: 0xac, ClockSeqLow: 0xa9, Node: [6]uint8{0x16, 0x4a, 0xff, 0x85, 0xc2, 0xa9}}
	// Syntax ID
	DiskPartitionMFSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: DiskPartitionMFSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/vds"
)

Functions

func DiskPartitionMFServerHandle

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

func NewDiskPartitionMFServerHandle

func NewDiskPartitionMFServerHandle(o DiskPartitionMFServer) dcerpc.ServerHandle

func RegisterDiskPartitionMFServer

func RegisterDiskPartitionMFServer(conn dcerpc.Conn, o DiskPartitionMFServer, opts ...dcerpc.Option)

Types

type DiskPartitionMFClient

type DiskPartitionMFClient interface {

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

	// The GetPartitionFileSystemProperties method returns property details about the file
	// system on a disk partition at a specified byte offset. This method is only supported
	// on OEM, ESP, recovery, and unknown 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.
	//
	// ERROR_SUCCESS (0x00000000)
	GetPartitionFileSystemProperties(context.Context, *GetPartitionFileSystemPropertiesRequest, ...dcerpc.CallOption) (*GetPartitionFileSystemPropertiesResponse, error)

	// The GetPartitionFileSystemTypeName method retrieves the name of the file system on
	// a disk partition at a specified byte offset. This method is only supported on OEM,
	// ESP, recovery, and unknown 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.
	GetPartitionFileSystemTypeName(context.Context, *GetPartitionFileSystemTypeNameRequest, ...dcerpc.CallOption) (*GetPartitionFileSystemTypeNameResponse, error)

	// The QueryPartitionFileSystemFormatSupport method retrieves the properties of the
	// file systems that support formatting a disk partition at a specified byte offset.
	// This method is only supported on OEM, ESP, recovery, and unknown partitions.
	//
	// Note  This method is not valid on CD/DVD or super floppy devices. These devices do
	// not support partition tables.
	//
	// 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.<107>
	//
	// ERROR_SUCCESS (0x00000000)
	QueryPartitionFileSystemFormatSupport(context.Context, *QueryPartitionFileSystemFormatSupportRequest, ...dcerpc.CallOption) (*QueryPartitionFileSystemFormatSupportResponse, error)

	// The FormatPartitionEx method formats an existing OEM, ESP, or unknown partition.
	// This method is only supported on OEM, ESP, recovery, and unknown 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.
	//
	// ERROR_SUCCESS (0x00000000)
	FormatPartitionEx(context.Context, *FormatPartitionExRequest, ...dcerpc.CallOption) (*FormatPartitionExResponse, error)

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

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

IVdsDiskPartitionMF interface.

func NewDiskPartitionMFClient

func NewDiskPartitionMFClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (DiskPartitionMFClient, error)

type DiskPartitionMFServer

type DiskPartitionMFServer interface {

	// IUnknown base class.
	iunknown.UnknownServer

	// The GetPartitionFileSystemProperties method returns property details about the file
	// system on a disk partition at a specified byte offset. This method is only supported
	// on OEM, ESP, recovery, and unknown 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.
	//
	// ERROR_SUCCESS (0x00000000)
	GetPartitionFileSystemProperties(context.Context, *GetPartitionFileSystemPropertiesRequest) (*GetPartitionFileSystemPropertiesResponse, error)

	// The GetPartitionFileSystemTypeName method retrieves the name of the file system on
	// a disk partition at a specified byte offset. This method is only supported on OEM,
	// ESP, recovery, and unknown 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.
	GetPartitionFileSystemTypeName(context.Context, *GetPartitionFileSystemTypeNameRequest) (*GetPartitionFileSystemTypeNameResponse, error)

	// The QueryPartitionFileSystemFormatSupport method retrieves the properties of the
	// file systems that support formatting a disk partition at a specified byte offset.
	// This method is only supported on OEM, ESP, recovery, and unknown partitions.
	//
	// Note  This method is not valid on CD/DVD or super floppy devices. These devices do
	// not support partition tables.
	//
	// 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.<107>
	//
	// ERROR_SUCCESS (0x00000000)
	QueryPartitionFileSystemFormatSupport(context.Context, *QueryPartitionFileSystemFormatSupportRequest) (*QueryPartitionFileSystemFormatSupportResponse, error)

	// The FormatPartitionEx method formats an existing OEM, ESP, or unknown partition.
	// This method is only supported on OEM, ESP, recovery, and unknown 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.
	//
	// ERROR_SUCCESS (0x00000000)
	FormatPartitionEx(context.Context, *FormatPartitionExRequest) (*FormatPartitionExResponse, error)
}

IVdsDiskPartitionMF server interface.

type FormatPartitionExRequest

type FormatPartitionExRequest 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
	// MUST be the offset at the start of a partition.
	Offset uint64 `idl:"name:ullOffset" json:"offset"`
	// pwszFileSystemTypeName: A null-terminated Unicode string that contains the name of
	// the file system with which to format the partition.
	FileSystemTypeName string `idl:"name:pwszFileSystemTypeName;string;pointer:unique" json:"file_system_type_name"`
	// usFileSystemRevision: A 16-bit, binary-coded decimal number that indicates the revision
	// of the file system, if any. The first two (most significant) digits (8-bits) indicate
	// the major revision while the last two (least significant) digits (8-bits) indicate
	// the minor revision (for example, 0x0250 represents revision 2.50).
	FileSystemRevision uint16 `idl:"name:usFileSystemRevision" json:"file_system_revision"`
	// ulDesiredUnitAllocationSize: The size, in bytes, of the allocation unit for the file
	// system. The value MUST be a power of 2. If the value is 0, a default allocation unit
	// determined by the file system type is used. The allocation unit range is file system-dependent.
	DesiredUnitAllocationSize uint32 `idl:"name:ulDesiredUnitAllocationSize" json:"desired_unit_allocation_size"`
	// pwszLabel: The null-terminated Unicode string to assign to the new file system. The
	// maximum label size is file system-dependent.
	Label string `idl:"name:pwszLabel;string;pointer:unique" json:"label"`
	// bForce: A Boolean that determines whether a file system format is forced, even if
	// 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.<108>
	EnableCompression int32 `idl:"name:bEnableCompression" json:"enable_compression"`
}

FormatPartitionExRequest structure represents the FormatPartitionEx operation request

func (*FormatPartitionExRequest) MarshalNDR

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

func (*FormatPartitionExRequest) UnmarshalNDR

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

type FormatPartitionExResponse

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

FormatPartitionExResponse structure represents the FormatPartitionEx operation response

func (*FormatPartitionExResponse) MarshalNDR

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

func (*FormatPartitionExResponse) UnmarshalNDR

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

type GetPartitionFileSystemPropertiesRequest

type GetPartitionFileSystemPropertiesRequest 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
	// MUST be the offset at the start of a partition.
	Offset uint64 `idl:"name:ullOffset" json:"offset"`
}

GetPartitionFileSystemPropertiesRequest structure represents the GetPartitionFileSystemProperties operation request

func (*GetPartitionFileSystemPropertiesRequest) MarshalNDR

func (*GetPartitionFileSystemPropertiesRequest) UnmarshalNDR

type GetPartitionFileSystemPropertiesResponse

type GetPartitionFileSystemPropertiesResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// pFileSystemProp: A pointer to a VDS_FILE_SYSTEM_PROP structure that, if the operation
	// is successfully completed, receives the properties of the file system on the partition.
	FileSystemProperty *vds.FileSystemProperty `idl:"name:pFileSystemProp" json:"file_system_property"`
	// Return: The GetPartitionFileSystemProperties return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetPartitionFileSystemPropertiesResponse structure represents the GetPartitionFileSystemProperties operation response

func (*GetPartitionFileSystemPropertiesResponse) MarshalNDR

func (*GetPartitionFileSystemPropertiesResponse) UnmarshalNDR

type GetPartitionFileSystemTypeNameRequest

type GetPartitionFileSystemTypeNameRequest 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
	// MUST be the offset at the start of a partition.
	Offset uint64 `idl:"name:ullOffset" json:"offset"`
}

GetPartitionFileSystemTypeNameRequest structure represents the GetPartitionFileSystemTypeName operation request

func (*GetPartitionFileSystemTypeNameRequest) MarshalNDR

func (*GetPartitionFileSystemTypeNameRequest) UnmarshalNDR

type GetPartitionFileSystemTypeNameResponse

type GetPartitionFileSystemTypeNameResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// ppwszFileSystemTypeName: A pointer that, if the operation is successfully completed,
	// receives a null-terminated Unicode string with the file system name.
	FileSystemTypeName string `idl:"name:ppwszFileSystemTypeName;string" json:"file_system_type_name"`
	// Return: The GetPartitionFileSystemTypeName return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetPartitionFileSystemTypeNameResponse structure represents the GetPartitionFileSystemTypeName operation response

func (*GetPartitionFileSystemTypeNameResponse) MarshalNDR

func (*GetPartitionFileSystemTypeNameResponse) UnmarshalNDR

type QueryPartitionFileSystemFormatSupportRequest

type QueryPartitionFileSystemFormatSupportRequest 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
	// MUST be the offset at the start of a partition.
	Offset uint64 `idl:"name:ullOffset" json:"offset"`
}

QueryPartitionFileSystemFormatSupportRequest structure represents the QueryPartitionFileSystemFormatSupport operation request

func (*QueryPartitionFileSystemFormatSupportRequest) MarshalNDR

func (*QueryPartitionFileSystemFormatSupportRequest) UnmarshalNDR

type QueryPartitionFileSystemFormatSupportResponse

type QueryPartitionFileSystemFormatSupportResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// ppFileSystemSupportProps: A pointer to an array of VDS_FILE_SYSTEM_FORMAT_SUPPORT_PROP
	// structures which, if the operation completes successfully, receives an array of properties
	// of each supported file system.
	FileSystemSupportProperties []*vds.FileSystemFormatSupportProperty `idl:"name:ppFileSystemSupportProps;size_is:(, plNumberOfFileSystems)" json:"file_system_support_properties"`
	// plNumberOfFileSystems: A pointer to a variable which, if the operation completes
	// successfully, receives the total number of elements returned in ppFileSystemSupportProps.
	NumberOfFileSystems int32 `idl:"name:plNumberOfFileSystems" json:"number_of_file_systems"`
	// Return: The QueryPartitionFileSystemFormatSupport return value.
	Return int32 `idl:"name:Return" json:"return"`
}

QueryPartitionFileSystemFormatSupportResponse structure represents the QueryPartitionFileSystemFormatSupport operation response

func (*QueryPartitionFileSystemFormatSupportResponse) MarshalNDR

func (*QueryPartitionFileSystemFormatSupportResponse) UnmarshalNDR

Jump to

Keyboard shortcuts

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