InsertFile function (filehc.h)

Inserts a file into the cache.

Syntax

FILEHC_EXPORT BOOL InsertFile(
  LPSTR       lpstrName,
  FIO_CONTEXT *pContext,
  BOOL        fKeepReference
);

Parameters

lpstrName

The name of the file to be inserted.

pContext

A pointer to the FIO_CONTEXT structure that is associated with the file being inserted.

fKeepReference

Specifies whether the reference to the file is to be kept. If TRUE, the user must make a call to ReleaseContext for the inserted FIO_CONTEXT.

Return value

Returns TRUE if the file is inserted; otherwise, it returns FALSE.

Requirements

   
Target Platform Windows
Header filehc.h
Library Fcachdll.lib
DLL Fcachdll.dll

See also

FIO_CONTEXT

ReleaseContext