Odd Scanner issue

I’m running into a strange issue with the scanner example. My test
program is doing nothing more than transmitting the filename to the
usermode component.

As I’d like to parse all files, regardless of extension, I removed the
following code from ScannerPostCreate:

status = FltGetFileNameInformation( Data,
FLT_FILE_NAME_NORMALIZED |
FLT_FILE_NAME_QUERY_DEFAULT,
&nameInfo );
to

status = ScannerpScanFileInUserMode( FltObjects->Instance,
FltObjects->FileObject,
&safeToOpen );

(Lines 648 thru 670 in my IFS kit in scanner.c)

I then also removed the definition PFLT_FILE_NAME_INFORMATION nameInfo,
as it is not necessary.

After doing this, the scanner randomly locks up the system. With the
ScannerpCheckExtension call enabled, it works perfectly.

I am really confused with this… anyone have any ideas? Even having
ScannerpCheckExtension return true everytime locks up the system.

Matt

And let me guess, you don’t have a debugger hooked up? That would
clear things up real quick.

From a quick glance, you should of gone to line 680, or was that a type- o?

m

----- Original Message -----
From: “Matt Appleby”
To: “Windows File Systems Devs Interest List”
Sent: Saturday, July 01, 2006 1:47 PM
Subject: [ntfsd] Odd Scanner issue

> I’m running into a strange issue with the scanner example. My test
> program is doing nothing more than transmitting the filename to the
> usermode component.
>
> As I’d like to parse all files, regardless of extension, I removed the
> following code from ScannerPostCreate:
>
> status = FltGetFileNameInformation( Data,
> FLT_FILE_NAME_NORMALIZED |
> FLT_FILE_NAME_QUERY_DEFAULT,
> &nameInfo );
> to
>
> status = ScannerpScanFileInUserMode( FltObjects->Instance,
> FltObjects->FileObject,
> &safeToOpen );
>
> (Lines 648 thru 670 in my IFS kit in scanner.c)
>
> I then also removed the definition PFLT_FILE_NAME_INFORMATION nameInfo,
> as it is not necessary.
>
> After doing this, the scanner randomly locks up the system. With the
> ScannerpCheckExtension call enabled, it works perfectly.
>
> I am really confused with this… anyone have any ideas? Even having
> ScannerpCheckExtension return true everytime locks up the system.
>
> Matt
>
>
> —
> Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@comcast.net
> To unsubscribe send a blank email to xxxxx@lists.osr.com