fpInitWithLicenseData()

This function initializes an Export session with license information passed in function parameters rather than a license file. Its return value, pContext, is passed as the first parameter to the File Extraction interface and all other Export functions.

This function is similar to fpInit(), but it uses a different licensing method. You can use either fpInit() or fpInitWithLicenseData to initialize your Export session. However, these functions are mutually exclusive. That is, neither takes the context pointer from the other as an argument. If you call both functions, you initialize two distinct Export sessions, in the same way as calling fpInit() twice.

Syntax

void* pascal _export fpInitWithLicenseData(
    KVMemoryStream*    pMemAllocator,
    char*              pszKeyViewDir,
    const char* const  pszLicenseOrganization
    const char* const  pszLicenseKey
    char*              pszDataFile,
    KVErrorCode*       pError,
    DWORD              dWord);

Arguments

pMemAllocator

A pointer to a developer-defined memory allocator. If NULL is passed, the default C run-time memory allocation is used.

pszKeyViewDir

A pointer to the directory where the Export components are located. This is normally the directory install\OS\bin, where install is the path name of the Export installation directory and OS is the name of the operating system.

pszLicenseOrganization A pointer to the organization name under which this installation of KeyView is licensed.
pszLicenseKey A pointer to the license key for this installation of KeyView.

pszDataFile

A pointer to the directory and file name of the Export data file, formats_e.ini. This file determines whether a format is supported. If a format does not exist in this file, the conversion fails.

The formats_e.ini file is normally stored in the directory install\OS\bin, where install is the path name of the Export installation directory and OS is the name of the operating system. See File Format Detection for more information.

pError

A pointer to an error code defined in KVErrorCode or KVErrorCodeEx in kverrorcodes.h. See KVErrorCode and KVErrorCodeEx.

dWord

Reserved. Must be 0.

Returns

Discussion


_FT_HTML5_bannerTitle.htm