IPXV_Inst::CreateOp Method
From PDF XChange PDF SDK
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 | + | <pre class="brush:cpp;gutter:false">HRESULT CreateOp([in] LONG OpID, |
− | [out, retval] IOperation** | + | [out, retval] IOperation** NewOp);</pre> |
== Parameters == | == Parameters == | ||
− | ; | + | ;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> | ||
− | ; | + | ;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 06: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.