IAFS_FileCachesMap::CreateNewCache Method

From PDF XChange PDF SDK
Jump to: navigation, search


The method of interface of PDF-XChange Editor SDK.

Syntax

HRESULT CreateNewCache([in]                   IAFS_File*                pFile,
                       [in]                   IAFS_FileCacheCallbacks*  pCb,
                       [in]                   LONG                      nCacheFlags,
                       [in]                   LONGLONG                  nFileSize,
                       [in]                   VARIANT_BOOL              bNewFile,
                       [in, defaultvalue(0)]  LONG                      nReadBufferSize,
                       [in, defaultvalue(0)]  LONG                      nWriteBufferSize,
                       [out, retval]          IAFS_FileCache**          pCache);

Parameters

pFile
[in] Pointer to IAFS_File.
pCb
[in] Pointer to IAFS_FileCacheCallbacks.
nCacheFlags
[in] Value of LONG.
nFileSize
[in] Value of LONGLONG.
bNewFile
[in] Value of VARIANT_BOOL.
nReadBufferSize
[in, defaultvalue(0)] Value of LONG.
nWriteBufferSize
[in, defaultvalue(0)] Value of LONG.
pCache
[out, retval] Pointer to IAFS_FileCache.

Return Value

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

See Also

IAFS_FileCachesMap