none
Minifilter Driver: How to use FltCreateFile in CSVFS? RRS feed

  • Question

  • I'm Filefilter Driver developer.

    I have A problem, about developing CSVFS FileSystem.

    developing code,


    rc = FltCreateFile(FltObjects->Filter, FltObjects->Instance, &ntfile, FILE_ALL_ACCESS, &objattr, &iostatus, (PLARGE_INTEGER)NULL, FILE_ATTRIBUTE_SYSTEM | FILE_ATTRIBUTE_HIDDEN,
            FILE_SHARE_READ, FILE_OPEN_IF, FILE_WRITE_THROUGH, (PVOID)NULL, 0L, 0);

    rc = ZwQueryVolumeInformationFile(ntfile, &iostatus, &buffer, size, FileFsAttributeInformation);
    if(NT_SUCCESS(rc)) {

      attrinfo = (PFILE_FS_ATTRIBUTE_INFORMATION)buffer;

      if(NULL != attrinfo && NULL != attrinfo && !_wcsnicmp(attrinfo->FileSystemName, L"csvfs", 5)) {
    }

    FltCreateFile() Function Here, BSOD occurs.

    I want to get attrinfo-> FileSystemName in CSVFS.

    Please how to get FileSystem attribute to any file with CSVFS?

    If know FltCreateFile() replace Function, Please let me know.



    • Edited by noblesys Monday, September 3, 2018 5:15 AM
    Monday, September 3, 2018 1:40 AM

All replies

  • First for BSOD's in general take a crash dump and post the !analyze -v from Windbg on the forum, that is the best way to give people data.   Second thing here is that the code you have shows the FltCreateFile, but none of the setup code for things like, the ObjectAttibutes.   A crash in FltCreateFile is going to happen because you did not set the parameters correctly or your environment is incorrect, so we need to know about the code that is issuing the call.

    Some general observations, first why are you trying to do this code in the first place?   Also, why aren't you using FltQueryVolumeInformation as a mini-filter should?


    Don Burn Windows Driver Consulting Website: http://www.windrvr.com

    Monday, September 3, 2018 12:30 PM
  • My Thanks, then

    How to use the Function about FltQueryVolumeInformation, example or Sample?

    Thursday, September 13, 2018 6:37 AM