Documentation ¶
Index ¶
- Variables
- func CreatePartitionExServerHandle(ctx context.Context, o CreatePartitionExServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)
- func NewCreatePartitionExServerHandle(o CreatePartitionExServer) dcerpc.ServerHandle
- func RegisterCreatePartitionExServer(conn dcerpc.Conn, o CreatePartitionExServer, opts ...dcerpc.Option)
- type CreatePartitionExClient
- type CreatePartitionExRequest
- type CreatePartitionExResponse
- type CreatePartitionExServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // IVdsCreatePartitionEx interface identifier 9882f547-cfc3-420b-9750-00dfbec50662 CreatePartitionExIID = &dcom.IID{Data1: 0x9882f547, Data2: 0xcfc3, Data3: 0x420b, Data4: []byte{0x97, 0x50, 0x00, 0xdf, 0xbe, 0xc5, 0x06, 0x62}} // Syntax UUID CreatePartitionExSyntaxUUID = &uuid.UUID{TimeLow: 0x9882f547, TimeMid: 0xcfc3, TimeHiAndVersion: 0x420b, ClockSeqHiAndReserved: 0x97, ClockSeqLow: 0x50, Node: [6]uint8{0x0, 0xdf, 0xbe, 0xc5, 0x6, 0x62}} // Syntax ID CreatePartitionExSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: CreatePartitionExSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0} )
View Source
var (
// import guard
GoPackage = "dcom/vds"
)
Functions ¶
func NewCreatePartitionExServerHandle ¶
func NewCreatePartitionExServerHandle(o CreatePartitionExServer) dcerpc.ServerHandle
func RegisterCreatePartitionExServer ¶
func RegisterCreatePartitionExServer(conn dcerpc.Conn, o CreatePartitionExServer, opts ...dcerpc.Option)
Types ¶
type CreatePartitionExClient ¶
type CreatePartitionExClient interface { // IUnknown retrieval method. Unknown() iunknown.UnknownClient // The CreatePartitionEx method creates a partition on a disk at a specified byte offset, // with an optional alignment parameter. // // 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) CreatePartitionEx(context.Context, *CreatePartitionExRequest, ...dcerpc.CallOption) (*CreatePartitionExResponse, error) // AlterContext alters the client context. AlterContext(context.Context, ...dcerpc.Option) error // IPID sets the object interface identifier. IPID(context.Context, *dcom.IPID) CreatePartitionExClient }
IVdsCreatePartitionEx interface.
type CreatePartitionExRequest ¶
type CreatePartitionExRequest 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 from the beginning of the disk where the new partition // will be created. If ulAlign is not zero, the offset MUST fall within the first cylinder // for an MBR disk (GPT disks do not have this restriction). Offset uint64 `idl:"name:ullOffset" json:"offset"` // ullSize: The size of the new partition, in bytes.<105> Size uint64 `idl:"name:ullSize" json:"size"` // ulAlign: The number of bytes for volume alignment. The offset specified in ullOffset // will be rounded up or down to an alignment boundary. If zero is specified, the server // will base the alignment value on the size of the disk on which the volume is created.<106> Align uint32 `idl:"name:ulAlign" json:"align"` // para: A pointer to a CREATE_PARTITION_PARAMETERS structure that describes the new // partition to create. Parameters *vds.CreatePartitionParameters `idl:"name:para" json:"parameters"` }
CreatePartitionExRequest structure represents the CreatePartitionEx operation request
func (*CreatePartitionExRequest) MarshalNDR ¶
func (*CreatePartitionExRequest) UnmarshalNDR ¶
type CreatePartitionExResponse ¶
type CreatePartitionExResponse 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. If the IVdsAsync::Wait // method is called on the interface, the interfaces returned in the VDS_ASYNC_OUTPUT // structure MUST be released as well. For information on asynchronous tasks, see section // 3.4.5.1.9. Async *vds.Async `idl:"name:ppAsync" json:"async"` // Return: The CreatePartitionEx return value. Return int32 `idl:"name:Return" json:"return"` }
CreatePartitionExResponse structure represents the CreatePartitionEx operation response
func (*CreatePartitionExResponse) MarshalNDR ¶
func (*CreatePartitionExResponse) UnmarshalNDR ¶
type CreatePartitionExServer ¶
type CreatePartitionExServer interface { // IUnknown base class. iunknown.UnknownServer // The CreatePartitionEx method creates a partition on a disk at a specified byte offset, // with an optional alignment parameter. // // 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) CreatePartitionEx(context.Context, *CreatePartitionExRequest) (*CreatePartitionExResponse, error) }
IVdsCreatePartitionEx server interface.
Click to show internal directories.
Click to hide internal directories.