Documentation ¶
Index ¶
- Variables
- func DiskPartitionMF2ServerHandle(ctx context.Context, o DiskPartitionMF2Server, opNum int, r ndr.Reader) (dcerpc.Operation, error)
- func NewDiskPartitionMF2ServerHandle(o DiskPartitionMF2Server) dcerpc.ServerHandle
- func RegisterDiskPartitionMF2Server(conn dcerpc.Conn, o DiskPartitionMF2Server, opts ...dcerpc.Option)
- type DiskPartitionMF2Client
- type DiskPartitionMF2Server
- type FormatPartitionEx2Request
- type FormatPartitionEx2Response
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // IVdsDiskPartitionMF2 interface identifier 9cbe50ca-f2d2-4bf4-ace1-96896b729625 DiskPartitionMF2IID = &dcom.IID{Data1: 0x9cbe50ca, Data2: 0xf2d2, Data3: 0x4bf4, Data4: []byte{0xac, 0xe1, 0x96, 0x89, 0x6b, 0x72, 0x96, 0x25}} // Syntax UUID DiskPartitionMF2SyntaxUUID = &uuid.UUID{TimeLow: 0x9cbe50ca, TimeMid: 0xf2d2, TimeHiAndVersion: 0x4bf4, ClockSeqHiAndReserved: 0xac, ClockSeqLow: 0xe1, Node: [6]uint8{0x96, 0x89, 0x6b, 0x72, 0x96, 0x25}} // Syntax ID DiskPartitionMF2SyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: DiskPartitionMF2SyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0} )
View Source
var (
// import guard
GoPackage = "dcom/vds"
)
Functions ¶
func NewDiskPartitionMF2ServerHandle ¶
func NewDiskPartitionMF2ServerHandle(o DiskPartitionMF2Server) dcerpc.ServerHandle
func RegisterDiskPartitionMF2Server ¶
func RegisterDiskPartitionMF2Server(conn dcerpc.Conn, o DiskPartitionMF2Server, opts ...dcerpc.Option)
Types ¶
type DiskPartitionMF2Client ¶
type DiskPartitionMF2Client interface { // IUnknown retrieval method. Unknown() iunknown.UnknownClient // The FormatPartitionEx2 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. FormatPartitionEx2(context.Context, *FormatPartitionEx2Request, ...dcerpc.CallOption) (*FormatPartitionEx2Response, error) // AlterContext alters the client context. AlterContext(context.Context, ...dcerpc.Option) error // IPID sets the object interface identifier. IPID(context.Context, *dcom.IPID) DiskPartitionMF2Client }
IVdsDiskPartitionMF2 interface.
type DiskPartitionMF2Server ¶
type DiskPartitionMF2Server interface { // IUnknown base class. iunknown.UnknownServer // The FormatPartitionEx2 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. FormatPartitionEx2(context.Context, *FormatPartitionEx2Request) (*FormatPartitionEx2Response, error) }
IVdsDiskPartitionMF2 server interface.
type FormatPartitionEx2Request ¶
type FormatPartitionEx2Request 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 version 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"` // Options: The combination of any values, by using a bitwise OR operator, that are // defined in the VDS_FORMAT_OPTION_FLAGS enumeration. Options uint32 `idl:"name:Options" json:"options"` }
FormatPartitionEx2Request structure represents the FormatPartitionEx2 operation request
func (*FormatPartitionEx2Request) MarshalNDR ¶
func (*FormatPartitionEx2Request) UnmarshalNDR ¶
type FormatPartitionEx2Response ¶
type FormatPartitionEx2Response 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 pointer 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 FormatPartitionEx2 return value. Return int32 `idl:"name:Return" json:"return"` }
FormatPartitionEx2Response structure represents the FormatPartitionEx2 operation response
func (*FormatPartitionEx2Response) MarshalNDR ¶
func (*FormatPartitionEx2Response) UnmarshalNDR ¶
Click to show internal directories.
Click to hide internal directories.