Windows 7 prevent format message

Hey,

in reference to this thread: http://www.osronline.com/showthread.cfm?link=234693

It is possible to prevent windows from mounting (symlink: e: d: etc.) such that no format windows opens if a USB device (Storage) is connected to the pc and the partition has my identifier.

Fernando Roberto suggests to filter the storage IOCTLs from the mountmgr.
Alex Carp mentioned about a mini filter that prevent the mount by filtering IRP_MJ_VOLUME_MOUNT.

Unacceptable is to let windows create a symlink (c:, e:) and than delete this recently create symlink.
But the device must still be accessible throw \Device\HarddiskVolume or GUID.
The used File system driver is \FileSystem\RAW. Partition has ja unique identifier.

My question now, what is the best way to implement this?

Since you just want to write the disk raw. The simplest approach is to
create a small filter above the disk driver that changes the device type
to an unknown device. Doing this stops all the volume manager and the
stuff above it from seeing the device as a disk.

Don Burn
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr

xxxxx@sirrix.de” wrote in message
news:xxxxx@ntdev:

> Hey,
>
> in reference to this thread: http://www.osronline.com/showthread.cfm?link=234693
>
> It is possible to prevent windows from mounting (symlink: e: d: etc.) such that no format windows opens if a USB device (Storage) is connected to the pc and the partition has my identifier.
>
> Fernando Roberto suggests to filter the storage IOCTLs from the mountmgr.
> Alex Carp mentioned about a mini filter that prevent the mount by filtering IRP_MJ_VOLUME_MOUNT.
>
> Unacceptable is to let windows create a symlink (c:, e:) and than delete this recently create symlink.
> But the device must still be accessible throw \Device\HarddiskVolume or GUID.
> The used File system driver is \FileSystem\RAW. Partition has ja unique identifier.
>
> My question now, what is the best way to implement this?

Hey Don,

thank your for your answer.
But when i create a upper filter to the disk driver, is the device still accessible via \Device\HarddiskVolumeX ?

Jens

and how can i access the data on the first partition for that device?

Thanks, Jens