IPXV_Inst::CreateOp Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
m (Automatic page editing by robot)
Line 8: Line 8:
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT CreateOp([in]          LONG          OpID,
+
<pre class="brush:cpp;gutter:false">HRESULT CreateOp([in]          LONG          nOpID,
                 [out, retval]  IOperation**  NewOp);</pre>
+
                 [out, retval]  IOperation**  pNewOp);</pre>
  
 
== Parameters ==
 
== Parameters ==
;OpID
+
;nOpID
 
:[in]  The unique identifier of registered operation. For example, you may obtain it by:
 
:[in]  The unique identifier of registered operation. For example, you may obtain it by:
 
::<code>int nOpID = pdfInst.Str2ID("op.document.printPages");</code>
 
::<code>int nOpID = pdfInst.Str2ID("op.document.printPages");</code>
;NewOp
+
;pNewOp
 
:[out, retval]  Returns pointer to a new [[PXV:IOperation|IOperation]] object.
 
:[out, retval]  Returns pointer to a new [[PXV:IOperation|IOperation]] object.
  

Revision as of 03:55, 15 June 2015


Creates new operation object by specified unique identifier.

Syntax

HRESULT CreateOp([in]           LONG          nOpID,
                 [out, retval]  IOperation**  pNewOp);

Parameters

nOpID
[in] The unique identifier of registered operation. For example, you may obtain it by:
int nOpID = pdfInst.Str2ID("op.document.printPages");
pNewOp
[out, retval] Returns pointer to a new IOperation object.

Return Value

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

See Also

IPXV_Inst, IPXV_Inst::Str2ID, IPXV_Inst::RegisterOpCreator