Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging

The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.

Check out The OSR Learning Library at:

Mount volume request if the user is not admin.

OSR_Community_UserOSR_Community_User Member Posts: 110,217
Hi all!

A while ago I already asked that question, but didn't get any reply. May be
this time I will be more lucky?
Here is the problem:
In my driver I create a device of type FILE_DEVICE_DISK /
FILE_REMOVABLE_MEDIA, create a symb.
link to that device and expect to see IRP_MN_MOUNT_VOLUME coming to my FS
recognizer device
registered using IoRegisterFileSystem in DriverEntry routine (driver is
loaded at the System time).
Creating a disk device is prformed on request from the user application
(i.e. after a user got logged on).
Now, if the logged user is an administrator everything works as expected.
But as soon as I logoff and
relogon as an ordinary user (from the Users group), my FS recognizer doesn't
see mount IRP! I don't
restart the computer, so FS recognizer is still there and
registered/initialized properly, I assume.
The disk device is created, because I see it in the Explorer, so app <->
driver interconnection works.
Property page for that drive shows me file system type as Unknown. Debugging
the system I noticed
that IRP_MN_MOUNT_VOLUME in deed bypasses my FS recognizer device. I
observed that on
all SPs (3+) and (to my surprise) on W2K.

Anything that sounds familiar to anyone?


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Internals & Software Drivers 30 Nov 2020 LIVE ONLINE
Writing WDF Drivers 7 Dec 2020 LIVE ONLINE
Developing Minifilters Early 2021 LIVE ONLINE