ieventobjectcollection

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IEventObjectCollection interface identifier f89ac270-d4eb-11d1-b682-00805fc79216
	EventObjectCollectionIID = &dcom.IID{Data1: 0xf89ac270, Data2: 0xd4eb, Data3: 0x11d1, Data4: []byte{0xb6, 0x82, 0x00, 0x80, 0x5f, 0xc7, 0x92, 0x16}}
	// Syntax UUID
	EventObjectCollectionSyntaxUUID = &uuid.UUID{TimeLow: 0xf89ac270, TimeMid: 0xd4eb, TimeHiAndVersion: 0x11d1, ClockSeqHiAndReserved: 0xb6, ClockSeqLow: 0x82, Node: [6]uint8{0x0, 0x80, 0x5f, 0xc7, 0x92, 0x16}}
	// Syntax ID
	EventObjectCollectionSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: EventObjectCollectionSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/comev"
)

Functions

func EventObjectCollectionServerHandle

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

func NewEventObjectCollectionServerHandle

func NewEventObjectCollectionServerHandle(o EventObjectCollectionServer) dcerpc.ServerHandle

func RegisterEventObjectCollectionServer

func RegisterEventObjectCollectionServer(conn dcerpc.Conn, o EventObjectCollectionServer, opts ...dcerpc.Option)

Types

type AddRequest

type AddRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// item: If the underlying collection is of application-specific publisher/subscriber
	// subscription properties, this MUST conform to the application-specific property values
	// as specified in section 2.2.2.2. If the underlying collection is of event classes,
	// the type of the VARIANT MUST be VT_UNKNOWN and MUST contain a DCOM object supporting
	// the IEventClass2 interface. If the underlying collection is of subscriptions, the
	// type of the VARIANT MUST be VT_UNKNOWN and MUST contain a DCOM object supporting
	// the IEventSubscription interface.
	Item *oaut.Variant `idl:"name:item" json:"item"`
	// objectID: The identity of the object. If the underlying collection is of the application-specific
	// publisher/subscriber subscription properties, this MUST conform to the application-specific
	// property names as specified in 2.2.2.1. If the underlying collection is of event
	// classes, this MUST conform to the EventClassID property of the event class as specified
	// in section 3.1.1.1. If the underlying collection is of subscriptions, this MUST conform
	// to the SubscriptionID property of the subscription as specified in section 3.1.1.2.
	ObjectID *oaut.String `idl:"name:objectID" json:"object_id"`
}

AddRequest structure represents the Add operation request

func (*AddRequest) MarshalNDR

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

func (*AddRequest) UnmarshalNDR

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

type AddResponse

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

AddResponse structure represents the Add operation response

func (*AddResponse) MarshalNDR

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

func (*AddResponse) UnmarshalNDR

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

type EventObjectCollectionClient

type EventObjectCollectionClient interface {

	// IDispatch retrieval method.
	Dispatch() idispatch.DispatchClient

	// _NewEnum operation.
	Get_NewEnum(context.Context, *Get_NewEnumRequest, ...dcerpc.CallOption) (*Get_NewEnumResponse, error)

	// The get_Item method gets the item in the collection with a specified ID.
	//
	// Return Values: An HRESULT that specifies success or failure. All success codes MUST
	// be treated the same, and all failure codes MUST be treated the same.
	GetItem(context.Context, *GetItemRequest, ...dcerpc.CallOption) (*GetItemResponse, error)

	// The get_NewEnum method gets an IEnumEventObject-based object for enumerating the
	// underlying collection.
	//
	// The get__NewEnum method gets a DCOM object for enumerating the underlying collection.
	//
	// Return Values: An HRESULT specifying success or failure. All success codes MUST be
	// treated the same, and all failure codes MUST be treated the same.
	GetNewEnum(context.Context, *GetNewEnumRequest, ...dcerpc.CallOption) (*GetNewEnumResponse, error)

	// The get_Count method gets the count of the number of items in the collection contained
	// by the enumerator.
	//
	// Return Values: An HRESULT specifying success or failure. All success codes MUST be
	// treated the same, and all failure codes MUST be treated the same.
	GetCount(context.Context, *GetCountRequest, ...dcerpc.CallOption) (*GetCountResponse, error)

	// The Add method adds an item to the underlying collection of the enumerator; if the
	// item is already present in the collection, it is replaced by the one being passed
	// to this method.
	//
	// Return Values: An HRESULT specifying success or failure. All success codes MUST be
	// treated the same, and all failure codes MUST be treated the same.
	Add(context.Context, *AddRequest, ...dcerpc.CallOption) (*AddResponse, error)

	// Remove operation.
	Remove(context.Context, *RemoveRequest, ...dcerpc.CallOption) (*RemoveResponse, error)

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

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

IEventObjectCollection interface.

func NewEventObjectCollectionClient

func NewEventObjectCollectionClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (EventObjectCollectionClient, error)

type EventObjectCollectionServer

type EventObjectCollectionServer interface {

	// IDispatch base class.
	idispatch.DispatchServer

	// _NewEnum operation.
	Get_NewEnum(context.Context, *Get_NewEnumRequest) (*Get_NewEnumResponse, error)

	// The get_Item method gets the item in the collection with a specified ID.
	//
	// Return Values: An HRESULT that specifies success or failure. All success codes MUST
	// be treated the same, and all failure codes MUST be treated the same.
	GetItem(context.Context, *GetItemRequest) (*GetItemResponse, error)

	// The get_NewEnum method gets an IEnumEventObject-based object for enumerating the
	// underlying collection.
	//
	// The get__NewEnum method gets a DCOM object for enumerating the underlying collection.
	//
	// Return Values: An HRESULT specifying success or failure. All success codes MUST be
	// treated the same, and all failure codes MUST be treated the same.
	GetNewEnum(context.Context, *GetNewEnumRequest) (*GetNewEnumResponse, error)

	// The get_Count method gets the count of the number of items in the collection contained
	// by the enumerator.
	//
	// Return Values: An HRESULT specifying success or failure. All success codes MUST be
	// treated the same, and all failure codes MUST be treated the same.
	GetCount(context.Context, *GetCountRequest) (*GetCountResponse, error)

	// The Add method adds an item to the underlying collection of the enumerator; if the
	// item is already present in the collection, it is replaced by the one being passed
	// to this method.
	//
	// Return Values: An HRESULT specifying success or failure. All success codes MUST be
	// treated the same, and all failure codes MUST be treated the same.
	Add(context.Context, *AddRequest) (*AddResponse, error)

	// Remove operation.
	Remove(context.Context, *RemoveRequest) (*RemoveResponse, error)
}

IEventObjectCollection server interface.

type GetCountRequest

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

GetCountRequest structure represents the Count operation request

func (*GetCountRequest) MarshalNDR

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

func (*GetCountRequest) UnmarshalNDR

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

type GetCountResponse

type GetCountResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// pCount: If the function returns a success HRESULT, this MUST contain the number specifying
	// the number of elements in the underlying collection.
	Count int32 `idl:"name:pCount" json:"count"`
	// Return: The Count return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetCountResponse structure represents the Count operation response

func (*GetCountResponse) MarshalNDR

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

func (*GetCountResponse) UnmarshalNDR

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

type GetItemRequest

type GetItemRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// objectID: The name of the object to get from the collection. If the underlying collection
	// is of the publisher or subscriber application-specific subscription properties, this
	// name MUST conform to the specification of application-specific property names, as
	// specified in section 2.2.2.1. If the underlying collection is event classes, this
	// MUST conform to the specification of EventClassCollectionIdentifier, as specified
	// in section 2.2.6. If the underlying collection is subscriptions, this MUST conform
	// to the specification of SubscriptionCollectionIdentifier, as specified in section
	// 2.2.7.
	ObjectID *oaut.String `idl:"name:objectID" json:"object_id"`
}

GetItemRequest structure represents the Item operation request

func (*GetItemRequest) MarshalNDR

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

func (*GetItemRequest) UnmarshalNDR

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

type GetItemResponse

type GetItemResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// pItem: If the function returns a successful HRESULT, this MUST contain an application-specific
	// publisher/subscriber property, as specified in section 2.2.2.2, if the underlying
	// collection is of publisher/subscriber application-specific subscriptions properties.
	// If the underlying collection is event classes, this MUST contain a VT_UNKNOWN for
	// the DCOM object that supports the IEventClass2 DCOM interface. If the underlying
	// collection is subscriptions, this MUST contain a VT_UNKNOWN for the DCOM object that
	// supports the IEventSubscription DCOM interface.
	Item *oaut.Variant `idl:"name:pItem" json:"item"`
	// Return: The Item return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetItemResponse structure represents the Item operation response

func (*GetItemResponse) MarshalNDR

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

func (*GetItemResponse) UnmarshalNDR

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

type GetNewEnumRequest

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

GetNewEnumRequest structure represents the NewEnum operation request

func (*GetNewEnumRequest) MarshalNDR

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

func (*GetNewEnumRequest) UnmarshalNDR

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

type GetNewEnumResponse

type GetNewEnumResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// ppEnum: If the function returns a success HRESULT, this MUST contain a DCOM object
	// supporting the IEnumEventObject interface. Note this method is supported only if
	// the underlying collection is of event classes or subscriptions.
	Enum *comev.EnumEventObject `idl:"name:ppEnum" json:"enum"`
	// Return: The NewEnum return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetNewEnumResponse structure represents the NewEnum operation response

func (*GetNewEnumResponse) MarshalNDR

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

func (*GetNewEnumResponse) UnmarshalNDR

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

type Get_NewEnumRequest

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

Get_NewEnumRequest structure represents the _NewEnum operation request

func (*Get_NewEnumRequest) MarshalNDR

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

func (*Get_NewEnumRequest) UnmarshalNDR

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

type Get_NewEnumResponse

type Get_NewEnumResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That        *dcom.ORPCThat `idl:"name:That" json:"that"`
	UnknownEnum *dcom.Unknown  `idl:"name:ppUnkEnum" json:"unknown_enum"`
	// Return: The _NewEnum return value.
	Return int32 `idl:"name:Return" json:"return"`
}

Get_NewEnumResponse structure represents the _NewEnum operation response

func (*Get_NewEnumResponse) MarshalNDR

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

func (*Get_NewEnumResponse) UnmarshalNDR

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

type RemoveRequest

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

RemoveRequest structure represents the Remove operation request

func (*RemoveRequest) MarshalNDR

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

func (*RemoveRequest) UnmarshalNDR

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

type RemoveResponse

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

RemoveResponse structure represents the Remove operation response

func (*RemoveResponse) MarshalNDR

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

func (*RemoveResponse) UnmarshalNDR

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