Documentation ¶
Index ¶
- Variables
- func EventSystemServerHandle(ctx context.Context, o EventSystemServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)
- func NewEventSystemServerHandle(o EventSystemServer) dcerpc.ServerHandle
- func RegisterEventSystemServer(conn dcerpc.Conn, o EventSystemServer, opts ...dcerpc.Option)
- type EventSystemClient
- type EventSystemServer
- type GetEventObjectChangeEventClassIDRequest
- type GetEventObjectChangeEventClassIDResponse
- type QueryRequest
- type QueryResponse
- type QuerySRequest
- type QuerySResponse
- type RemoveRequest
- type RemoveResponse
- type RemoveSRequest
- type RemoveSResponse
- type StoreRequest
- type StoreResponse
Constants ¶
This section is empty.
Variables ¶
var ( // IEventSystem interface identifier 4e14fb9f-2e22-11d1-9964-00c04fbbb345 EventSystemIID = &dcom.IID{Data1: 0x4e14fb9f, Data2: 0x2e22, Data3: 0x11d1, Data4: []byte{0x99, 0x64, 0x00, 0xc0, 0x4f, 0xbb, 0xb3, 0x45}} // Syntax UUID EventSystemSyntaxUUID = &uuid.UUID{TimeLow: 0x4e14fb9f, TimeMid: 0x2e22, TimeHiAndVersion: 0x11d1, ClockSeqHiAndReserved: 0x99, ClockSeqLow: 0x64, Node: [6]uint8{0x0, 0xc0, 0x4f, 0xbb, 0xb3, 0x45}} // Syntax ID EventSystemSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: EventSystemSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0} )
var (
// import guard
GoPackage = "dcom/comev"
)
Functions ¶
func EventSystemServerHandle ¶
func NewEventSystemServerHandle ¶
func NewEventSystemServerHandle(o EventSystemServer) dcerpc.ServerHandle
func RegisterEventSystemServer ¶
func RegisterEventSystemServer(conn dcerpc.Conn, o EventSystemServer, opts ...dcerpc.Option)
Types ¶
type EventSystemClient ¶
type EventSystemClient interface { // IDispatch retrieval method. Dispatch() idispatch.DispatchClient // The Query method is called by a client to query a collection for a collection of // event classes or subscriptions. // // Return Values: An HRESULT that specifies success or failure. All success codes MUST // be treated the same, and all failure codes other than EVENT_E_QUERYSYNTAX and EVENT_E_QUERYFIELD // MUST be treated the same. // // +--------------------------------+------------------------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+------------------------------------------------------------------+ // +--------------------------------+------------------------------------------------------------------+ // | 0x80040203 EVENT_E_QUERYSYNTAX | A syntax error occurred while trying to evaluate a query string. | // +--------------------------------+------------------------------------------------------------------+ // | 0x80040204 EVENT_E_QUERYFIELD | An invalid field name was used in a query string. | // +--------------------------------+------------------------------------------------------------------+ Query(context.Context, *QueryRequest, ...dcerpc.CallOption) (*QueryResponse, error) // The Store method is called by a client to store either an event class or a subscription. // // Return Values: An HRESULT that specifies success or failure. All success codes MUST // be treated the same, and all failure codes other than EVENT_E_INVALID_PER_USER_SID // MUST be treated the same. // // +-----------------------------------------+----------------------------------------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +-----------------------------------------+----------------------------------------------------------------------------------+ // +-----------------------------------------+----------------------------------------------------------------------------------+ // | 0x80040207 EVENT_E_INVALID_PER_USER_SID | The owner SID, as defined in [MS-DTYP] section 2.4.2, on a per-user subscription | // | | does not exist. | // +-----------------------------------------+----------------------------------------------------------------------------------+ Store(context.Context, *StoreRequest, ...dcerpc.CallOption) (*StoreResponse, error) // Remove operation. Remove(context.Context, *RemoveRequest, ...dcerpc.CallOption) (*RemoveResponse, error) // The get_EventObjectChangeEventClassID method extracts the server-specific EventClassID // for server-specific event class or subscription change notifications. // // 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. GetEventObjectChangeEventClassID(context.Context, *GetEventObjectChangeEventClassIDRequest, ...dcerpc.CallOption) (*GetEventObjectChangeEventClassIDResponse, error) // The QueryS method is called by the client to query a specific event class or subscription. // // Return Values: An HRESULT that specifies success or failure. All success codes MUST // be treated the same, and all failure codes other than EVENT_E_QUERYSYNTAX and EVENT_E_QUERYFIELD // MUST be treated the same. // // +--------------------------------+------------------------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+------------------------------------------------------------------+ // +--------------------------------+------------------------------------------------------------------+ // | 0x80040203 EVENT_E_QUERYSYNTAX | A syntax error occurred while trying to evaluate a query string. | // +--------------------------------+------------------------------------------------------------------+ // | 0x80040204 EVENT_E_QUERYFIELD | An invalid field name was used in a query string. | // +--------------------------------+------------------------------------------------------------------+ QueryS(context.Context, *QuerySRequest, ...dcerpc.CallOption) (*QuerySResponse, error) // The RemoveS method is called by the client to remove an event class or subscription. // // Return Values: An HRESULT specifying success or failure. All success codes MUST be // treated the same, and all failure codes other than EVENT_E_QUERYSYNTAX, EVENT_E_QUERYFIELD, // and EVENT_E_NOT_ALL_REMOVED MUST be treated the same. // // +------------------------------------+------------------------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +------------------------------------+------------------------------------------------------------------+ // +------------------------------------+------------------------------------------------------------------+ // | 0x80040203 EVENT_E_QUERYSYNTAX | A syntax error occurred while trying to evaluate a query string. | // +------------------------------------+------------------------------------------------------------------+ // | 0x80040204 EVENT_E_QUERYFIELD | An invalid field name was used in a query string. | // +------------------------------------+------------------------------------------------------------------+ // | 0x8004020B EVENT_E_NOT_ALL_REMOVED | Not all of the requested objects could be removed. | // +------------------------------------+------------------------------------------------------------------+ RemoveS(context.Context, *RemoveSRequest, ...dcerpc.CallOption) (*RemoveSResponse, error) // AlterContext alters the client context. AlterContext(context.Context, ...dcerpc.Option) error // IPID sets the object interface identifier. IPID(context.Context, *dcom.IPID) EventSystemClient }
IEventSystem interface.
func NewEventSystemClient ¶
type EventSystemServer ¶
type EventSystemServer interface { // IDispatch base class. idispatch.DispatchServer // The Query method is called by a client to query a collection for a collection of // event classes or subscriptions. // // Return Values: An HRESULT that specifies success or failure. All success codes MUST // be treated the same, and all failure codes other than EVENT_E_QUERYSYNTAX and EVENT_E_QUERYFIELD // MUST be treated the same. // // +--------------------------------+------------------------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+------------------------------------------------------------------+ // +--------------------------------+------------------------------------------------------------------+ // | 0x80040203 EVENT_E_QUERYSYNTAX | A syntax error occurred while trying to evaluate a query string. | // +--------------------------------+------------------------------------------------------------------+ // | 0x80040204 EVENT_E_QUERYFIELD | An invalid field name was used in a query string. | // +--------------------------------+------------------------------------------------------------------+ Query(context.Context, *QueryRequest) (*QueryResponse, error) // The Store method is called by a client to store either an event class or a subscription. // // Return Values: An HRESULT that specifies success or failure. All success codes MUST // be treated the same, and all failure codes other than EVENT_E_INVALID_PER_USER_SID // MUST be treated the same. // // +-----------------------------------------+----------------------------------------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +-----------------------------------------+----------------------------------------------------------------------------------+ // +-----------------------------------------+----------------------------------------------------------------------------------+ // | 0x80040207 EVENT_E_INVALID_PER_USER_SID | The owner SID, as defined in [MS-DTYP] section 2.4.2, on a per-user subscription | // | | does not exist. | // +-----------------------------------------+----------------------------------------------------------------------------------+ Store(context.Context, *StoreRequest) (*StoreResponse, error) // Remove operation. Remove(context.Context, *RemoveRequest) (*RemoveResponse, error) // The get_EventObjectChangeEventClassID method extracts the server-specific EventClassID // for server-specific event class or subscription change notifications. // // 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. GetEventObjectChangeEventClassID(context.Context, *GetEventObjectChangeEventClassIDRequest) (*GetEventObjectChangeEventClassIDResponse, error) // The QueryS method is called by the client to query a specific event class or subscription. // // Return Values: An HRESULT that specifies success or failure. All success codes MUST // be treated the same, and all failure codes other than EVENT_E_QUERYSYNTAX and EVENT_E_QUERYFIELD // MUST be treated the same. // // +--------------------------------+------------------------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +--------------------------------+------------------------------------------------------------------+ // +--------------------------------+------------------------------------------------------------------+ // | 0x80040203 EVENT_E_QUERYSYNTAX | A syntax error occurred while trying to evaluate a query string. | // +--------------------------------+------------------------------------------------------------------+ // | 0x80040204 EVENT_E_QUERYFIELD | An invalid field name was used in a query string. | // +--------------------------------+------------------------------------------------------------------+ QueryS(context.Context, *QuerySRequest) (*QuerySResponse, error) // The RemoveS method is called by the client to remove an event class or subscription. // // Return Values: An HRESULT specifying success or failure. All success codes MUST be // treated the same, and all failure codes other than EVENT_E_QUERYSYNTAX, EVENT_E_QUERYFIELD, // and EVENT_E_NOT_ALL_REMOVED MUST be treated the same. // // +------------------------------------+------------------------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +------------------------------------+------------------------------------------------------------------+ // +------------------------------------+------------------------------------------------------------------+ // | 0x80040203 EVENT_E_QUERYSYNTAX | A syntax error occurred while trying to evaluate a query string. | // +------------------------------------+------------------------------------------------------------------+ // | 0x80040204 EVENT_E_QUERYFIELD | An invalid field name was used in a query string. | // +------------------------------------+------------------------------------------------------------------+ // | 0x8004020B EVENT_E_NOT_ALL_REMOVED | Not all of the requested objects could be removed. | // +------------------------------------+------------------------------------------------------------------+ RemoveS(context.Context, *RemoveSRequest) (*RemoveSResponse, error) }
IEventSystem server interface.
type GetEventObjectChangeEventClassIDRequest ¶
type GetEventObjectChangeEventClassIDRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` }
GetEventObjectChangeEventClassIDRequest structure represents the EventObjectChangeEventClassID operation request
func (*GetEventObjectChangeEventClassIDRequest) MarshalNDR ¶
func (*GetEventObjectChangeEventClassIDRequest) UnmarshalNDR ¶
type GetEventObjectChangeEventClassIDResponse ¶
type GetEventObjectChangeEventClassIDResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` // pbstrEventClassID: If the method call returns a success HRESULT, this MUST contain // the returned unique identifier representing the EventClassID for the server specific // EventClass/Subscription change notifications. This MUST be a GUID specified as a // string as specified in section 2.2.3. EventClassID *oaut.String `idl:"name:pbstrEventClassID" json:"event_class_id"` // Return: The EventObjectChangeEventClassID return value. Return int32 `idl:"name:Return" json:"return"` }
GetEventObjectChangeEventClassIDResponse structure represents the EventObjectChangeEventClassID operation response
func (*GetEventObjectChangeEventClassIDResponse) MarshalNDR ¶
func (*GetEventObjectChangeEventClassIDResponse) UnmarshalNDR ¶
type QueryRequest ¶
type QueryRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` // progID: A string that identifies the type of collection. The value MUST be one of // the following. // // +-------------------------------------------+----------------------------------------------------------------+ // | | | // | VALUE | MEANING | // | | | // +-------------------------------------------+----------------------------------------------------------------+ // +-------------------------------------------+----------------------------------------------------------------+ // | "EventSystem.EventClassCollection" | The store for event classes (as specified in section 3.1.1.1). | // +-------------------------------------------+----------------------------------------------------------------+ // | "EventSystem.EventSubscriptionCollection" | The store for subscriptions (as specified in section 3.1.1.2). | // +-------------------------------------------+----------------------------------------------------------------+ ProgID *oaut.String `idl:"name:progID" json:"prog_id"` // queryCriteria: The actual query string. The syntax for this string MUST conform to // section 2.2.1. QueryCriteria *oaut.String `idl:"name:queryCriteria" json:"query_criteria"` }
QueryRequest structure represents the Query operation request
func (*QueryRequest) MarshalNDR ¶
func (*QueryRequest) UnmarshalNDR ¶
type QueryResponse ¶
type QueryResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` // errorIndex: The zero-based character index in the queryCriteria parameter where an // error has occurred. This can occur if the syntax of the query string is incorrect, // in which case errorIndex specifies the index at which the problematic syntax is present // in the queryCriteria parameter. ErrorIndex int32 `idl:"name:errorIndex" json:"error_index"` // ppInterface: If the method returns a success HRESULT, this MUST contain an interface // pointer that represents the collection of the event classes or subscriptions based // on the criteria specified in the queryCriteria parameter. Interface *dcom.Unknown `idl:"name:ppInterface" json:"interface"` // Return: The Query return value. Return int32 `idl:"name:Return" json:"return"` }
QueryResponse structure represents the Query operation response
func (*QueryResponse) MarshalNDR ¶
func (*QueryResponse) UnmarshalNDR ¶
type QuerySRequest ¶
type QuerySRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` // progID: A string that uniquely identifies the type of collection. The value MUST // be one of the following. // // +-------------------------------------------+----------------------------------------------------------------+ // | | | // | VALUE | MEANING | // | | | // +-------------------------------------------+----------------------------------------------------------------+ // +-------------------------------------------+----------------------------------------------------------------+ // | "EventSystem.EventClassCollection" | The store for event classes (as specified in section 3.1.1.1). | // +-------------------------------------------+----------------------------------------------------------------+ // | "EventSystem.EventSubscriptionCollection" | The store for subscriptions (as specified in section 3.1.1.2). | // +-------------------------------------------+----------------------------------------------------------------+ ProgID *oaut.String `idl:"name:progID" json:"prog_id"` // queryCriteria: The actual query string. The syntax for this string MUST conform to // section 2.2.1. QueryCriteria *oaut.String `idl:"name:queryCriteria" json:"query_criteria"` }
QuerySRequest structure represents the QueryS operation request
func (*QuerySRequest) MarshalNDR ¶
func (*QuerySRequest) UnmarshalNDR ¶
type QuerySResponse ¶
type QuerySResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` // ppInterface: If the method returns success, this MUST contain an interface pointer // that represents the collection of the event classes or subscriptions based on the // criteria specified in the queryCriteria parameter. Interface *dcom.Unknown `idl:"name:ppInterface" json:"interface"` // Return: The QueryS return value. Return int32 `idl:"name:Return" json:"return"` }
QuerySResponse structure represents the QueryS operation response
func (*QuerySResponse) MarshalNDR ¶
func (*QuerySResponse) UnmarshalNDR ¶
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"` ProgID *oaut.String `idl:"name:progID" json:"prog_id"` QueryCriteria *oaut.String `idl:"name:queryCriteria" json:"query_criteria"` }
RemoveRequest structure represents the Remove operation request
func (*RemoveRequest) MarshalNDR ¶
func (*RemoveRequest) UnmarshalNDR ¶
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"` ErrorIndex int32 `idl:"name:errorIndex" json:"error_index"` // Return: The Remove return value. Return int32 `idl:"name:Return" json:"return"` }
RemoveResponse structure represents the Remove operation response
func (*RemoveResponse) MarshalNDR ¶
func (*RemoveResponse) UnmarshalNDR ¶
type RemoveSRequest ¶
type RemoveSRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` // progID: A string that uniquely identifies the type of collection. The value MUST // be one of the following. // // +-------------------------------------------+----------------------------------------------------------------+ // | | | // | VALUE | MEANING | // | | | // +-------------------------------------------+----------------------------------------------------------------+ // +-------------------------------------------+----------------------------------------------------------------+ // | "EventSystem.EventClassCollection" | The store for event classes (as specified in section 3.1.1.1). | // +-------------------------------------------+----------------------------------------------------------------+ // | "EventSystem.EventSubscriptionCollection" | The store for subscriptions (as specified in section 3.1.1.2). | // +-------------------------------------------+----------------------------------------------------------------+ ProgID *oaut.String `idl:"name:progID" json:"prog_id"` // queryCriteria: The actual query string. The syntax for this string MUST conform to // section 2.2.1. QueryCriteria *oaut.String `idl:"name:queryCriteria" json:"query_criteria"` }
RemoveSRequest structure represents the RemoveS operation request
func (*RemoveSRequest) MarshalNDR ¶
func (*RemoveSRequest) UnmarshalNDR ¶
type RemoveSResponse ¶
type RemoveSResponse 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 RemoveS return value. Return int32 `idl:"name:Return" json:"return"` }
RemoveSResponse structure represents the RemoveS operation response
func (*RemoveSResponse) MarshalNDR ¶
func (*RemoveSResponse) UnmarshalNDR ¶
type StoreRequest ¶
type StoreRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` // ProgID: A string that uniquely identifies the kind of object that the client is trying // to store. It MUST be one of the following values. // // +---------------------------------+---------------------------------------------------------------+ // | | | // | VALUE | MEANING | // | | | // +---------------------------------+---------------------------------------------------------------+ // +---------------------------------+---------------------------------------------------------------+ // | "EventSystem.EventClass" | The store for event classes, as specified in section 3.1.1.1. | // +---------------------------------+---------------------------------------------------------------+ // | "EventSystem.EventSubscription" | The store for subscriptions, as specified in section 3.1.1.2. | // +---------------------------------+---------------------------------------------------------------+ ProgID *oaut.String `idl:"name:ProgID" json:"prog_id"` // pInterface: An interface pointer to a DCOM object that was created by performing // DCOM activation on the server by the client by using either the CLSID_EventClass // (as specified in section 1.9), which represents the CLSID for event class, or CLSID_Subscription // (as specified in section 1.9), which represents the subscriber. Interface *dcom.Unknown `idl:"name:pInterface" json:"interface"` }
StoreRequest structure represents the Store operation request
func (*StoreRequest) MarshalNDR ¶
func (*StoreRequest) UnmarshalNDR ¶
type StoreResponse ¶
type StoreResponse 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 Store return value. Return int32 `idl:"name:Return" json:"return"` }
StoreResponse structure represents the Store operation response