ivdsswprovider

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 (
	// IVdsSwProvider interface identifier 9aa58360-ce33-4f92-b658-ed24b14425b8
	SwProviderIID = &dcom.IID{Data1: 0x9aa58360, Data2: 0xce33, Data3: 0x4f92, Data4: []byte{0xb6, 0x58, 0xed, 0x24, 0xb1, 0x44, 0x25, 0xb8}}
	// Syntax UUID
	SwProviderSyntaxUUID = &uuid.UUID{TimeLow: 0x9aa58360, TimeMid: 0xce33, TimeHiAndVersion: 0x4f92, ClockSeqHiAndReserved: 0xb6, ClockSeqLow: 0x58, Node: [6]uint8{0xed, 0x24, 0xb1, 0x44, 0x25, 0xb8}}
	// Syntax ID
	SwProviderSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: SwProviderSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/vds"
)

Functions

func NewSwProviderServerHandle

func NewSwProviderServerHandle(o SwProviderServer) dcerpc.ServerHandle

func RegisterSwProviderServer

func RegisterSwProviderServer(conn dcerpc.Conn, o SwProviderServer, opts ...dcerpc.Option)

func SwProviderServerHandle

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

Types

type CreatePackRequest

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

CreatePackRequest structure represents the CreatePack operation request

func (*CreatePackRequest) MarshalNDR

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

func (*CreatePackRequest) UnmarshalNDR

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

type CreatePackResponse

type CreatePackResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// ppPack: A pointer to an IVdsPack interface that, if the operation is successfully
	// completed, receives the IVdsPack interface of the newly created disk pack. Callers
	// MUST release the interface when they are done with it.
	Pack *vds.Pack `idl:"name:ppPack" json:"pack"`
	// Return: The CreatePack return value.
	Return int32 `idl:"name:Return" json:"return"`
}

CreatePackResponse structure represents the CreatePack operation response

func (*CreatePackResponse) MarshalNDR

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

func (*CreatePackResponse) UnmarshalNDR

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

type QueryPacksRequest

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

QueryPacksRequest structure represents the QueryPacks operation request

func (*QueryPacksRequest) MarshalNDR

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

func (*QueryPacksRequest) UnmarshalNDR

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

type QueryPacksResponse

type QueryPacksResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// ppEnum: A pointer to an IEnumVdsObject interface that, if the operation is successfully
	// completed, receives the IEnumVdsObject interface of the object containing an enumeration
	// of pack objects in the provider. Callers MUST release the interface when they are
	// done with it.
	Enum *vds.EnumObject `idl:"name:ppEnum" json:"enum"`
	// Return: The QueryPacks return value.
	Return int32 `idl:"name:Return" json:"return"`
}

QueryPacksResponse structure represents the QueryPacks operation response

func (*QueryPacksResponse) MarshalNDR

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

func (*QueryPacksResponse) UnmarshalNDR

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

type SwProviderClient

type SwProviderClient interface {

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

	// The QueryPacks method retrieves the provider disk packs.
	//
	// 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.
	QueryPacks(context.Context, *QueryPacksRequest, ...dcerpc.CallOption) (*QueryPacksResponse, error)

	// The CreatePack method creates a disk pack.
	//
	// 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.
	CreatePack(context.Context, *CreatePackRequest, ...dcerpc.CallOption) (*CreatePackResponse, error)

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

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

IVdsSwProvider interface.

func NewSwProviderClient

func NewSwProviderClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (SwProviderClient, error)

type SwProviderServer

type SwProviderServer interface {

	// IUnknown base class.
	iunknown.UnknownServer

	// The QueryPacks method retrieves the provider disk packs.
	//
	// 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.
	QueryPacks(context.Context, *QueryPacksRequest) (*QueryPacksResponse, error)

	// The CreatePack method creates a disk pack.
	//
	// 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.
	CreatePack(context.Context, *CreatePackRequest) (*CreatePackResponse, error)
}

IVdsSwProvider server interface.

Jump to

Keyboard shortcuts

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