Hi All,
I was wondering wich of these flags:
FLT_FILE_NAME_QUERY_DEFAULT,
FLT_FILE_NAME_QUERY_CACHE_ONLY,
FLT_FILE_NAME_QUERY_FILESYSTEM_ONLY
FLT_FILE_NAME_QUERY_ALWAYS_ALLOW_CACHE_LOOKUP
is the correct way to use with FltGetFileNameInformation()?
Have you seen using FLT_FILE_NAME_QUERY_DEFAULT or FLT_FILE_NAME_QUERY_ALWAYS_ALLOW_CACHE_LOOKUP will ever cause memory leak by filter manager? Or when filter manager frees up the cache that was used by the names?
YOU need to call FltReleaseFileNameInforamtion after a successful FltGetxxxFileNameInformation call (there are 4 different name query calls).
Neither of these flags will cause a leak, and FltMgr will correctly cleanup the name cache on the final file close.
Hi All,
I was wondering wich of these flags:
FLT_FILE_NAME_QUERY_DEFAULT,
FLT_FILE_NAME_QUERY_CACHE_ONLY,
FLT_FILE_NAME_QUERY_FILESYSTEM_ONLY
FLT_FILE_NAME_QUERY_ALWAYS_ALLOW_CACHE_LOOKUP
is the correct way to use with FltGetFileNameInformation()?
Have you seen using FLT_FILE_NAME_QUERY_DEFAULT or FLT_FILE_NAME_QUERY_ALWAYS_ALLOW_CACHE_LOOKUP will ever cause memory leak by filter manager? Or when filter manager frees up the cache that was used by the names?
Thanks a lot
Payman
NTFSD is sponsored by OSR
For our schedule debugging and file system seminars
(including our new fs mini-filter seminar) visit: http://www.osr.com/seminars