CacheCreateFile function (filehc.h)
Creates a file in the cache or finds an existing file.
Syntax
FIO_CONTEXT * CacheCreateFile(
[in] LPSTR lpstrName,
[in] FCACHE_CREATE_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_CREATE_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 a pointer to the FIO_CONTEXT structure that is associated with the file that was created or found.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | filehc.h |
Library | Fcachdll.lib |
DLL | Fcachdll.dll |