ivdsadvisesink

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 (
	// IVdsAdviseSink interface identifier 8326cd1d-cf59-4936-b786-5efc08798e25
	AdviseSinkIID = &dcom.IID{Data1: 0x8326cd1d, Data2: 0xcf59, Data3: 0x4936, Data4: []byte{0xb7, 0x86, 0x5e, 0xfc, 0x08, 0x79, 0x8e, 0x25}}
	// Syntax UUID
	AdviseSinkSyntaxUUID = &uuid.UUID{TimeLow: 0x8326cd1d, TimeMid: 0xcf59, TimeHiAndVersion: 0x4936, ClockSeqHiAndReserved: 0xb7, ClockSeqLow: 0x86, Node: [6]uint8{0x5e, 0xfc, 0x8, 0x79, 0x8e, 0x25}}
	// Syntax ID
	AdviseSinkSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: AdviseSinkSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/vds"
)

Functions

func AdviseSinkServerHandle

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

func NewAdviseSinkServerHandle

func NewAdviseSinkServerHandle(o AdviseSinkServer) dcerpc.ServerHandle

func RegisterAdviseSinkServer

func RegisterAdviseSinkServer(conn dcerpc.Conn, o AdviseSinkServer, opts ...dcerpc.Option)

Types

type AdviseSinkClient

type AdviseSinkClient interface {

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

	// The OnNotify method passes notifications from VDS to applications.
	//
	// 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.
	OnNotify(context.Context, *OnNotifyRequest, ...dcerpc.CallOption) (*OnNotifyResponse, error)

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

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

IVdsAdviseSink interface.

func NewAdviseSinkClient

func NewAdviseSinkClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (AdviseSinkClient, error)

type AdviseSinkServer

type AdviseSinkServer interface {

	// IUnknown base class.
	iunknown.UnknownServer

	// The OnNotify method passes notifications from VDS to applications.
	//
	// 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.
	OnNotify(context.Context, *OnNotifyRequest) (*OnNotifyResponse, error)
}

IVdsAdviseSink server interface.

type OnNotifyRequest

type OnNotifyRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// lNumberOfNotifications: The number of notifications that are specified in pNotificationArray.
	// This parameter MUST be a value from 1 through 100.
	NumberOfNotifications int32 `idl:"name:lNumberOfNotifications" json:"number_of_notifications"`
	// pNotificationArray: An array of VDS_NOTIFICATION structures.
	NotificationArray []*vds.Notification `idl:"name:pNotificationArray;size_is:(lNumberOfNotifications)" json:"notification_array"`
}

OnNotifyRequest structure represents the OnNotify operation request

func (*OnNotifyRequest) MarshalNDR

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

func (*OnNotifyRequest) UnmarshalNDR

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

type OnNotifyResponse

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

OnNotifyResponse structure represents the OnNotify operation response

func (*OnNotifyResponse) MarshalNDR

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

func (*OnNotifyResponse) UnmarshalNDR

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