iunknown

package
v1.2.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IUnknown interface identifier 00000000-0000-0000-c000-000000000046
	UnknownIID = &dcom.IID{Data1: 0x00000000, Data2: 0x0000, Data3: 0x0000, Data4: []byte{0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46}}
	// Syntax UUID
	UnknownSyntaxUUID = &uuid.UUID{TimeLow: 0x0, TimeMid: 0x0, TimeHiAndVersion: 0x0, ClockSeqHiAndReserved: 0xc0, ClockSeqLow: 0x0, Node: [6]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x46}}
	// Syntax ID
	UnknownSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: UnknownSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/rsmp"
)

Functions

func NewUnknownServerHandle

func NewUnknownServerHandle(o UnknownServer) dcerpc.ServerHandle

func RegisterUnknownServer

func RegisterUnknownServer(conn dcerpc.Conn, o UnknownServer, opts ...dcerpc.Option)

func UnknownServerHandle

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

Types

type AddReferenceRequest

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

AddReferenceRequest structure represents the AddRef operation request

func (*AddReferenceRequest) MarshalNDR

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

func (*AddReferenceRequest) UnmarshalNDR

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

type AddReferenceResponse

type AddReferenceResponse 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 AddRef return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

AddReferenceResponse structure represents the AddRef operation response

func (*AddReferenceResponse) MarshalNDR

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

func (*AddReferenceResponse) UnmarshalNDR

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

type QueryInterfaceRequest

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

QueryInterfaceRequest structure represents the QueryInterface operation request

func (*QueryInterfaceRequest) MarshalNDR

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

func (*QueryInterfaceRequest) UnmarshalNDR

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

type QueryInterfaceResponse

type QueryInterfaceResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That   *dcom.ORPCThat `idl:"name:That" json:"that"`
	Object []byte         `idl:"name:ppvObject" json:"object"`
	// Return: The QueryInterface return value.
	Return int32 `idl:"name:Return" json:"return"`
}

QueryInterfaceResponse structure represents the QueryInterface operation response

func (*QueryInterfaceResponse) MarshalNDR

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

func (*QueryInterfaceResponse) UnmarshalNDR

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

type ReleaseRequest

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

ReleaseRequest structure represents the Release operation request

func (*ReleaseRequest) MarshalNDR

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

func (*ReleaseRequest) UnmarshalNDR

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

type ReleaseResponse

type ReleaseResponse 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 Release return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

ReleaseResponse structure represents the Release operation response

func (*ReleaseResponse) MarshalNDR

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

func (*ReleaseResponse) UnmarshalNDR

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

type UnimplementedUnknownServer

type UnimplementedUnknownServer struct {
}

Unimplemented IUnknown

func (UnimplementedUnknownServer) AddReference

func (UnimplementedUnknownServer) QueryInterface

func (UnimplementedUnknownServer) Release

type UnknownClient

type UnknownClient interface {

	// QueryInterface operation.
	QueryInterface(context.Context, *QueryInterfaceRequest, ...dcerpc.CallOption) (*QueryInterfaceResponse, error)

	// AddRef operation.
	AddReference(context.Context, *AddReferenceRequest, ...dcerpc.CallOption) (*AddReferenceResponse, error)

	// Release operation.
	Release(context.Context, *ReleaseRequest, ...dcerpc.CallOption) (*ReleaseResponse, error)

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

	// Conn returns the client connection (unsafe)
	Conn() dcerpc.Conn

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

IUnknown interface.

func NewUnknownClient

func NewUnknownClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (UnknownClient, error)

type UnknownServer

type UnknownServer interface {

	// QueryInterface operation.
	QueryInterface(context.Context, *QueryInterfaceRequest) (*QueryInterfaceResponse, error)

	// AddRef operation.
	AddReference(context.Context, *AddReferenceRequest) (*AddReferenceResponse, error)

	// Release operation.
	Release(context.Context, *ReleaseRequest) (*ReleaseResponse, error)
}

IUnknown server interface.

Jump to

Keyboard shortcuts

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