IPXV_ImportConverter::CheckFormat Method

From PDF XChange PDF SDK
Revision as of 01:26, 27 April 2017 by Palamar (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Checks whether the source data is supported by the converter. If the data format is supported - the FmtCheckRes_OK result is being returned.


HRESULT CheckFormat([in]                   IPXV_Inst*           pInst,
                    [in]                   IUnknown*            pSrc,
                    [in, defaultvalue(0)]  ULONG                nFlags,
                    [out, retval]          PXV_FmtCheckResult*  pCheckResVal);


[in] Pointer to IPXV_Inst containing the instance of the program.
[in] Pointer to IUnknown* containing the source data. This should be cast to the data type that is supported by the converter. For example, the Image to PDF converter checks whether this pointer is an IIXC_Image.
[in, defaultvalue(0)] Value of ULONG containing the format check flags.
[out, retval] Pointer to PXV_FmtCheckResult containing the result of the format check.

Return Value

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

See Also