irpcremoteobject

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Syntax UUID
	IrpcRemoteObjectSyntaxUUID = &uuid.UUID{TimeLow: 0xae33069b, TimeMid: 0xa2a8, TimeHiAndVersion: 0x46ee, ClockSeqHiAndReserved: 0xa2, ClockSeqLow: 0x35, Node: [6]uint8{0xdd, 0xfd, 0x33, 0x9b, 0xe2, 0x81}}
	// Syntax ID
	IrpcRemoteObjectSyntaxV1_0 = &dcerpc.SyntaxID{IfUUID: IrpcRemoteObjectSyntaxUUID, IfVersionMajor: 1, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "pan"
)

Functions

func IrpcRemoteObjectServerHandle

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

func NewIrpcRemoteObjectServerHandle

func NewIrpcRemoteObjectServerHandle(o IrpcRemoteObjectServer) dcerpc.ServerHandle

func RegisterIrpcRemoteObjectServer

func RegisterIrpcRemoteObjectServer(conn dcerpc.Conn, o IrpcRemoteObjectServer, opts ...dcerpc.Option)

Types

type CreateRequest

type CreateRequest struct {
}

CreateRequest structure represents the IRPCRemoteObject_Create operation request

func (*CreateRequest) MarshalNDR

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

func (*CreateRequest) UnmarshalNDR

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

type CreateResponse

type CreateResponse struct {
	// ppRemoteObj: MUST be a remote object context handle returned by the server. It MUST
	// be a non-NULL value.
	RemoteObject *RemoteObject `idl:"name:ppRemoteObj" json:"remote_object"`
	// Return: The IRPCRemoteObject_Create return value.
	Return int32 `idl:"name:Return" json:"return"`
}

CreateResponse structure represents the IRPCRemoteObject_Create operation response

func (*CreateResponse) MarshalNDR

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

func (*CreateResponse) UnmarshalNDR

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

type DeleteRequest

type DeleteRequest struct {
	// ppRemoteObj: MUST be the remote object to delete. The handle MUST have been returned
	// by the server in the ppRemoteObj output parameter of a prior call to IRPCRemoteObject_Create
	// and MUST NOT have been previously deleted. If this handle were previously registered
	// by a successful call to IRPCAsyncNotify_RegisterClient, then it MUST have been subsequently
	// unregistered by a call to IRPCAsyncNotify_UnregisterClient. It MUST NOT be NULL.
	RemoteObject *RemoteObject `idl:"name:ppRemoteObj" json:"remote_object"`
}

DeleteRequest structure represents the IRPCRemoteObject_Delete operation request

func (*DeleteRequest) MarshalNDR

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

func (*DeleteRequest) UnmarshalNDR

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

type DeleteResponse

type DeleteResponse struct {
	// ppRemoteObj: MUST be the remote object to delete. The handle MUST have been returned
	// by the server in the ppRemoteObj output parameter of a prior call to IRPCRemoteObject_Create
	// and MUST NOT have been previously deleted. If this handle were previously registered
	// by a successful call to IRPCAsyncNotify_RegisterClient, then it MUST have been subsequently
	// unregistered by a call to IRPCAsyncNotify_UnregisterClient. It MUST NOT be NULL.
	RemoteObject *RemoteObject `idl:"name:ppRemoteObj" json:"remote_object"`
}

DeleteResponse structure represents the IRPCRemoteObject_Delete operation response

func (*DeleteResponse) MarshalNDR

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

func (*DeleteResponse) UnmarshalNDR

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

type IrpcRemoteObjectClient

type IrpcRemoteObjectClient interface {

	// The IRPCRemoteObject_Create method creates a remote object on a server and returns
	// it to the client.
	//
	// Return Values: This method MUST return zero to indicate success, or an HRESULT error
	// value ([MS-ERREF] section 2.1.1) to indicate failure. The client MUST consider all
	// error return values fatal and report them to the higher-level caller.
	//
	// Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying
	// RPC protocol [MS-RPCE].
	Create(context.Context, *CreateRequest, ...dcerpc.CallOption) (*CreateResponse, error)

	// The IRPCRemoteObject_Delete method destroys the specified remote object.
	//
	// Return Values: This method has no return values.
	//
	// Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying
	// RPC protocol [MS-RPCE].
	Delete(context.Context, *DeleteRequest, ...dcerpc.CallOption) (*DeleteResponse, error)

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

IRPCRemoteObject interface.

func NewIrpcRemoteObjectClient

func NewIrpcRemoteObjectClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (IrpcRemoteObjectClient, error)

type IrpcRemoteObjectServer

type IrpcRemoteObjectServer interface {

	// The IRPCRemoteObject_Create method creates a remote object on a server and returns
	// it to the client.
	//
	// Return Values: This method MUST return zero to indicate success, or an HRESULT error
	// value ([MS-ERREF] section 2.1.1) to indicate failure. The client MUST consider all
	// error return values fatal and report them to the higher-level caller.
	//
	// Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying
	// RPC protocol [MS-RPCE].
	Create(context.Context, *CreateRequest) (*CreateResponse, error)

	// The IRPCRemoteObject_Delete method destroys the specified remote object.
	//
	// Return Values: This method has no return values.
	//
	// Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying
	// RPC protocol [MS-RPCE].
	Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
}

IRPCRemoteObject server interface.

type RemoteObject

type RemoteObject dcetypes.ContextHandle

RemoteObject structure represents PRPCREMOTEOBJECT RPC structure.

func (*RemoteObject) ContextHandle

func (o *RemoteObject) ContextHandle() *dcetypes.ContextHandle

func (*RemoteObject) MarshalNDR

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

func (*RemoteObject) UnmarshalNDR

func (o *RemoteObject) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

Jump to

Keyboard shortcuts

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