Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > Filtering floppy operations with minifilter driver

Reply
Thread Tools Display Modes

Filtering floppy operations with minifilter driver

 
 
Eugene
Guest
Posts: n/a

 
      05-27-2010
I want to filter floppy disks operations with the file system minifilter
driver. The problem is that I cannot attach minifilter to the drive unless
the disk is inserted. If disk is not inserted into the drive, the
FilterAttach function returns error (ERROR_FLT_DELETING_OBJECT (0X801F000B)
for Windows XP and ERROR_FLT_VOLUME_NOT_FOUND (0x 801F0014) for Windows 7).
When the disk is inserted, all works fine. After ejecting/inserting the disk
minifilter continues to work properly.

Is there any way to attach minifilter to the floppy drive without physical
disk inserted into it?

Thanks, Eugene
 
Reply With Quote
 
 
 
 
Eugene
Guest
Posts: n/a

 
      05-28-2010
Thanks, Don.
So, why minifilter is working when floppy is ejected and then iniserted again?
Maybe, the filesystem is created when the first floppy is inserted and then
exists after it is ejected?
Is there any way to receive notification when the floppy is inserted (in
kernel mode or in user mode)?

Thanks, Eugene

"Don Burn" wrote:

> No because until the disk is inserted there is no filesystem to attach to.
>
>
> Don Burn (MVP, Windows DKD)
> Windows Filesystem and Driver Consulting
> Website: http://www.windrvr.com
> Blog: http://msmvps.com/blogs/WinDrvr
>
>
>
>
> > -----Original Message-----
> > From: Eugene [private.php?do=newpm&u=]
> > Posted At: Thursday, May 27, 2010 5:20 PM
> > Posted To: microsoft.public.development.device.drivers
> > Conversation: Filtering floppy operations with minifilter driver
> > Subject: Filtering floppy operations with minifilter driver
> >
> > I want to filter floppy disks operations with the file system minifilter
> > driver. The problem is that I cannot attach minifilter to the drive
> > unless the
> > disk is inserted. If disk is not inserted into the drive, the
> > FilterAttach
> > function returns error (ERROR_FLT_DELETING_OBJECT (0X801F000B) for
> > Windows XP
> > and ERROR_FLT_VOLUME_NOT_FOUND (0x 801F0014) for Windows 7).
> > When the disk is inserted, all works fine. After ejecting/inserting the
> > disk
> > minifilter continues to work properly.
> >
> > Is there any way to attach minifilter to the floppy drive without
> > physical
> > disk inserted into it?
> >
> > Thanks, Eugene
> >
> >
> > __________ Information from ESET Smart Security, version of virus
> > signature
> > database 5151 (20100527) __________
> >
> > The message was checked by ESET Smart Security.
> >
> > http://www.eset.com
> >

>
> .
>

 
Reply With Quote
 
Günter Prossliner
Guest
Posts: n/a

 
      05-28-2010
Hello,

> So, why minifilter is working when floppy is ejected and then
> iniserted again?


IIRC the "eject" of a Floppy is just a mechanical operation. If it's
inserted again and there is not disk-request in the meantime, the OS don't
known that the Floppy has ever been ejected.


GP


 
Reply With Quote
 
Maxim S. Shatskih
Guest
Posts: n/a

 
      05-28-2010
> Maybe, the filesystem is created when the first floppy is inserted and then
> exists after it is ejected?


No, it is created on first software access to the floppy.

--
Maxim S. Shatskih
Windows DDK MVP

http://www.storagecraft.com

 
Reply With Quote
 
Eugene
Guest
Posts: n/a

 
      05-28-2010
Thanks, Günter and Maxim!
And what about notification? Is there a way to receive notification when the
file system is created? Without this how can i attach minifilter to the
floppy drive?

"Maxim S. Shatskih" wrote:

> > Maybe, the filesystem is created when the first floppy is inserted and then
> > exists after it is ejected?

>
> No, it is created on first software access to the floppy.
>
> --
> Maxim S. Shatskih
> Windows DDK MVP
>
> http://www.storagecraft.com
>
> .
>

 
Reply With Quote
 
Eugene
Guest
Posts: n/a

 
      07-05-2010
Thanks to All!
The solution appears to be rather simple: minifilter has to register
PFLT_INSTANCE_SETUP_CALLBACK procedure (in the FltRegisterFilter
call) and return STATUS_SUCCESS from it. This ensures that minifilter will
be attached to all volumes.
Eugene.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vhidmini Chr1snv Windows Vista Drivers 5 01-06-2010 09:09 AM
Failed to initialize WU client: 0x8007277a Venkata Sadineni Windows Update 4 11-10-2009 06:28 PM
need driver for usb floppy drive to work with Vista Mike F from TN Windows Vista Hardware 2 08-22-2007 12:36 AM
BUGCODE_USB_DRIVER with external USB HDD PHILIPS Deathwing00 Windows Vista Hardware 11 06-15-2007 07:02 PM
Re: No Matter What Installations Won't Boot On My Laptop Richard Urban Windows Vista Installation 1 01-06-2007 05:08 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59