ivdsasync

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 (
	// IVdsAsync interface identifier d5d23b6d-5a55-4492-9889-397a3c2d2dbc
	AsyncIID = &dcom.IID{Data1: 0xd5d23b6d, Data2: 0x5a55, Data3: 0x4492, Data4: []byte{0x98, 0x89, 0x39, 0x7a, 0x3c, 0x2d, 0x2d, 0xbc}}
	// Syntax UUID
	AsyncSyntaxUUID = &uuid.UUID{TimeLow: 0xd5d23b6d, TimeMid: 0x5a55, TimeHiAndVersion: 0x4492, ClockSeqHiAndReserved: 0x98, ClockSeqLow: 0x89, Node: [6]uint8{0x39, 0x7a, 0x3c, 0x2d, 0x2d, 0xbc}}
	// Syntax ID
	AsyncSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: AsyncSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/vds"
)

Functions

func AsyncServerHandle

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

func NewAsyncServerHandle

func NewAsyncServerHandle(o AsyncServer) dcerpc.ServerHandle

func RegisterAsyncServer

func RegisterAsyncServer(conn dcerpc.Conn, o AsyncServer, opts ...dcerpc.Option)

Types

type AsyncClient

type AsyncClient interface {

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

	// The Cancel method cancels the asynchronous operation.
	//
	// This method has no parameters.
	//
	// 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.
	Cancel(context.Context, *CancelRequest, ...dcerpc.CallOption) (*CancelResponse, error)

	// The Wait method blocks and returns when the asynchronous operation has either finished
	// successfully or failed.
	//
	// 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.
	Wait(context.Context, *WaitRequest, ...dcerpc.CallOption) (*WaitResponse, error)

	// The QueryStatus method retrieves the status of the asynchronous operation.
	//
	// 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.
	QueryStatus(context.Context, *QueryStatusRequest, ...dcerpc.CallOption) (*QueryStatusResponse, error)

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

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

IVdsAsync interface.

func NewAsyncClient

func NewAsyncClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (AsyncClient, error)

type AsyncServer

type AsyncServer interface {

	// IUnknown base class.
	iunknown.UnknownServer

	// The Cancel method cancels the asynchronous operation.
	//
	// This method has no parameters.
	//
	// 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.
	Cancel(context.Context, *CancelRequest) (*CancelResponse, error)

	// The Wait method blocks and returns when the asynchronous operation has either finished
	// successfully or failed.
	//
	// 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.
	Wait(context.Context, *WaitRequest) (*WaitResponse, error)

	// The QueryStatus method retrieves the status of the asynchronous operation.
	//
	// 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.
	QueryStatus(context.Context, *QueryStatusRequest) (*QueryStatusResponse, error)
}

IVdsAsync server interface.

type CancelRequest

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

CancelRequest structure represents the Cancel operation request

func (*CancelRequest) MarshalNDR

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

func (*CancelRequest) UnmarshalNDR

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

type CancelResponse

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

CancelResponse structure represents the Cancel operation response

func (*CancelResponse) MarshalNDR

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

func (*CancelResponse) UnmarshalNDR

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

type QueryStatusRequest

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

QueryStatusRequest structure represents the QueryStatus operation request

func (*QueryStatusRequest) MarshalNDR

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

func (*QueryStatusRequest) UnmarshalNDR

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

type QueryStatusResponse

type QueryStatusResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// pHrResult: A pointer to a variable that receives the HRESULT that signals the current
	// state of the asynchronous operation.
	HResult int32 `idl:"name:pHrResult" json:"hresult"`
	// pulPercentCompleted: A pointer to a variable that receives the completion percentage
	// of the asynchronous operation. If the asynchronous operation is in progress, the
	// value MUST be between 0 and 99. If the operation has finished, the value MUST be
	// 100. If the progress of the operation cannot be estimated, the value MUST be 0.
	PercentCompleted uint32 `idl:"name:pulPercentCompleted" json:"percent_completed"`
	// Return: The QueryStatus return value.
	Return int32 `idl:"name:Return" json:"return"`
}

QueryStatusResponse structure represents the QueryStatus operation response

func (*QueryStatusResponse) MarshalNDR

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

func (*QueryStatusResponse) UnmarshalNDR

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

type WaitRequest

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

WaitRequest structure represents the Wait operation request

func (*WaitRequest) MarshalNDR

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

func (*WaitRequest) UnmarshalNDR

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

type WaitResponse

type WaitResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// pHrResult: A pointer to a variable which, if the Wait method successfully completes,
	// receives the returned HRESULT.
	HResult int32 `idl:"name:pHrResult" json:"hresult"`
	// pAsyncOut: A pointer to a VDS_ASYNC_OUTPUT structure that, if the asynchronous operation
	// is successfully completed, receives extra information about the operation, if any
	// information exists. Multiple methods from other interfaces also return async objects.
	// Consult the method that returned the async object to determine what extra information
	// to return, if any. If the asynchronous operation fails, pAsyncOut MAY be left as
	// is without returning any value.
	AsyncOutput *vds.AsyncOutput `idl:"name:pAsyncOut" json:"async_output"`
	// Return: The Wait return value.
	Return int32 `idl:"name:Return" json:"return"`
}

WaitResponse structure represents the Wait operation response

func (*WaitResponse) MarshalNDR

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

func (*WaitResponse) UnmarshalNDR

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