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          nOpID,
+
<pre class="brush:cpp;gutter:false">HRESULT CreateOp([in]          LONG          OpID,
                 [out, retval]  IOperation**  pNewOp);</pre>
+
                 [out, retval]  IOperation**  NewOp);</pre>
  
 
== Parameters ==
 
== Parameters ==
;nOpID
+
;OpID
 
:[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>
;pNewOp
+
;NewOp
 
:[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 07:31, 12 June 2015


Creates new operation object by specified unique identifier.

Syntax

HRESULT CreateOp([in]           LONG          OpID,
                 [out, retval]  IOperation**  NewOp);

Parameters

OpID
[in] The unique identifier of registered operation. For example, you may obtain it by:
int nOpID = pdfInst.Str2ID("op.document.printPages");
NewOp
[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