CacheRichCreateFile function (filehc.h)

Creates a file in the cache or finds an existing file and allows properties to be added to it in the cache.

Syntax

FIO_CONTEXT * CacheRichCreateFile(
  [in] LPSTR                      lpstrName,
  [in] FCACHE_RICHCREATE_CALLBACK pfnCallBack,
  [in] LPVOID                     lpv,
  [in] BOOL                       fAsyncContext
);

Parameters

[in] lpstrName

A pointer to the name of the file to be created in the cache.

[in] pfnCallBack

A pointer to the FCACHE_RICHCREATE_CALLBACK function that was used to create the file.

[in] lpv

If the file is not in the cache, the call calls pfnCallBack with lpv to do the actual work of calling CreateFile.

[in] fAsyncContext

Specifies whether the context can be used for asynchronous I/O. If TRUE, the FIO_CONTEXT returned is asynchronous.

Return value

Returns the address of the FIO_CONTEXT structure that was obtained.

Requirements

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

See also

CreateFile

FCACHE_RICHCREATE_CALLBACK

FIO_CONTEXT