IEventsRegistry::RegisterNewEvent Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
m (Automatic page editing by robot)
Line 9: Line 9:
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT RegisterNewEvent([in]                      BSTR            sUniqueEventName,
+
<pre class="brush:cpp;gutter:false">HRESULT RegisterNewEvent([in]                      BSTR            UniqueEventName,
                         [in]                      IEventCreator*  pEventCreator,
+
                         [in]                      IEventCreator*  EventCreator,
                         [in, defaultvalue(NULL)]  IBitSet*        pEventClass,
+
                         [in, defaultvalue(NULL)]  IBitSet*        EventClass,
                         [out, retval]            LONG*          nEventID);</pre>
+
                         [out, retval]            LONG*          EventID);</pre>
  
 
== Parameters ==
 
== Parameters ==
;sUniqueEventName
+
;UniqueEventName
 
:[in]  Value of BSTR.
 
:[in]  Value of BSTR.
;pEventCreator
+
;EventCreator
 
:[in]  Pointer to [[PXV:IEventCreator|IEventCreator]].
 
:[in]  Pointer to [[PXV:IEventCreator|IEventCreator]].
;pEventClass
+
;EventClass
 
:[in, defaultvalue(NULL)]  Pointer to [[PXV:IBitSet|IBitSet]].
 
:[in, defaultvalue(NULL)]  Pointer to [[PXV:IBitSet|IBitSet]].
;nEventID
+
;EventID
 
:[out, retval]  Pointer to LONG.
 
:[out, retval]  Pointer to LONG.
  

Revision as of 06:49, 12 June 2015


The method of interface of PDF-XChange Editor SDK.

Syntax

HRESULT RegisterNewEvent([in]                      BSTR            UniqueEventName,
                         [in]                      IEventCreator*  EventCreator,
                         [in, defaultvalue(NULL)]  IBitSet*        EventClass,
                         [out, retval]             LONG*           EventID);

Parameters

UniqueEventName
[in] Value of BSTR.
EventCreator
[in] Pointer to IEventCreator.
EventClass
[in, defaultvalue(NULL)] Pointer to IBitSet.
EventID
[out, retval] Pointer to LONG.

Return Value

Returns S_OK if operation was successful or error code in other cases.

See Also

IEventsRegistry