ienumvdsobject

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 (
	// IEnumVdsObject interface identifier 118610b7-8d94-4030-b5b8-500889788e4e
	EnumObjectIID = &dcom.IID{Data1: 0x118610b7, Data2: 0x8d94, Data3: 0x4030, Data4: []byte{0xb5, 0xb8, 0x50, 0x08, 0x89, 0x78, 0x8e, 0x4e}}
	// Syntax UUID
	EnumObjectSyntaxUUID = &uuid.UUID{TimeLow: 0x118610b7, TimeMid: 0x8d94, TimeHiAndVersion: 0x4030, ClockSeqHiAndReserved: 0xb5, ClockSeqLow: 0xb8, Node: [6]uint8{0x50, 0x8, 0x89, 0x78, 0x8e, 0x4e}}
	// Syntax ID
	EnumObjectSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: EnumObjectSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/vds"
)

Functions

func EnumObjectServerHandle

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

func NewEnumObjectServerHandle

func NewEnumObjectServerHandle(o EnumObjectServer) dcerpc.ServerHandle

func RegisterEnumObjectServer

func RegisterEnumObjectServer(conn dcerpc.Conn, o EnumObjectServer, opts ...dcerpc.Option)

Types

type CloneRequest

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

CloneRequest structure represents the Clone operation request

func (*CloneRequest) MarshalNDR

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

func (*CloneRequest) UnmarshalNDR

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

type CloneResponse

type CloneResponse 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 successfully completed,
	// receives the IEnumVdsObject interface of the cloned enumeration. Callers MUST release
	// the interface that is received when they are done with it.
	Enum *vds.EnumObject `idl:"name:ppEnum" json:"enum"`
	// Return: The Clone return value.
	Return int32 `idl:"name:Return" json:"return"`
}

CloneResponse structure represents the Clone operation response

func (*CloneResponse) MarshalNDR

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

func (*CloneResponse) UnmarshalNDR

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

type EnumObjectClient

type EnumObjectClient interface {

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

	// The Next method returns a specified number of objects in the enumeration. It begins
	// from the current point.
	//
	// 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.
	Next(context.Context, *NextRequest, ...dcerpc.CallOption) (*NextResponse, error)

	// The Skip method skips a specified number of objects in the enumeration.
	//
	// 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.
	Skip(context.Context, *SkipRequest, ...dcerpc.CallOption) (*SkipResponse, error)

	// The Reset method resets the enumerator to the beginning of the collection.
	//
	// 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.
	Reset(context.Context, *ResetRequest, ...dcerpc.CallOption) (*ResetResponse, error)

	// The Clone method creates a new enumeration that has the same state as the current
	// enumeration.
	//
	// 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.
	Clone(context.Context, *CloneRequest, ...dcerpc.CallOption) (*CloneResponse, error)

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

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

IEnumVdsObject interface.

func NewEnumObjectClient

func NewEnumObjectClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (EnumObjectClient, error)

type EnumObjectServer

type EnumObjectServer interface {

	// IUnknown base class.
	iunknown.UnknownServer

	// The Next method returns a specified number of objects in the enumeration. It begins
	// from the current point.
	//
	// 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.
	Next(context.Context, *NextRequest) (*NextResponse, error)

	// The Skip method skips a specified number of objects in the enumeration.
	//
	// 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.
	Skip(context.Context, *SkipRequest) (*SkipResponse, error)

	// The Reset method resets the enumerator to the beginning of the collection.
	//
	// 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.
	Reset(context.Context, *ResetRequest) (*ResetResponse, error)

	// The Clone method creates a new enumeration that has the same state as the current
	// enumeration.
	//
	// 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.
	Clone(context.Context, *CloneRequest) (*CloneResponse, error)
}

IEnumVdsObject server interface.

type NextRequest

type NextRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// celt: The number of elements to retrieve from the enumeration.
	Count uint32 `idl:"name:celt" json:"count"`
}

NextRequest structure represents the Next operation request

func (*NextRequest) MarshalNDR

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

func (*NextRequest) UnmarshalNDR

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

type NextResponse

type NextResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// ppObjectArray: A pointer to an array of IUnknown interfaces. The size of this array
	// MUST be equal to celt. If successfully completed, it receives an array of the IUnknown
	// interfaces of the next objects in the enumeration; the number of elements in this
	// array MUST be equal in size to the value of pcFetched. Callers MUST release each
	// IUnknown interface that is received.
	ObjectArray []*dcom.Unknown `idl:"name:ppObjectArray;size_is:(celt);length_is:(pcFetched)" json:"object_array"`
	// pcFetched: A pointer to a variable that, upon successful completion, receives the
	// number of elements that are successfully received in ppObjectArray.
	FetchedCount uint32 `idl:"name:pcFetched" json:"fetched_count"`
	// Return: The Next return value.
	Return int32 `idl:"name:Return" json:"return"`
}

NextResponse structure represents the Next operation response

func (*NextResponse) MarshalNDR

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

func (*NextResponse) UnmarshalNDR

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

type ResetRequest

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

ResetRequest structure represents the Reset operation request

func (*ResetRequest) MarshalNDR

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

func (*ResetRequest) UnmarshalNDR

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

type ResetResponse

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

ResetResponse structure represents the Reset operation response

func (*ResetResponse) MarshalNDR

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

func (*ResetResponse) UnmarshalNDR

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

type SkipRequest

type SkipRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// celt: The number of objects to skip.
	Count uint32 `idl:"name:celt" json:"count"`
}

SkipRequest structure represents the Skip operation request

func (*SkipRequest) MarshalNDR

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

func (*SkipRequest) UnmarshalNDR

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

type SkipResponse

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

SkipResponse structure represents the Skip operation response

func (*SkipResponse) MarshalNDR

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

func (*SkipResponse) UnmarshalNDR

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