InsertFile function (filehc.h)
Inserts a file into the cache.
Syntax
FILEHC_EXPORT BOOL InsertFile(
[in] LPSTR lpstrName,
[in] FIO_CONTEXT *pContext,
[in] BOOL fKeepReference
);
Parameters
[in] lpstrName
The name of the file to be inserted.
[in] pContext
A pointer to the FIO_CONTEXT structure that is associated with the file being inserted.
[in] 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
Requirement | Value |
---|---|
Target Platform | Windows |
Header | filehc.h |
Library | Fcachdll.lib |
DLL | Fcachdll.dll |