Hello all,
I am writing a driver that is emulating a disk media in a file (file disk driver). The corresponding application (creating the file disk, mounting, formatting, unmounting) should also work correctly for a “normal” user (non-admin). Most of them works fine.
Currently, I have a problem with flushing volume cache to disk file with fastfat file system when unmounting. LOCK_VOLUME, FSCTL_DISMOUNT_VOLUME and UNLOCK_VOLUME cannot be done by a “normal” user since the necessary handle with the proper rights cannot be created by a normal user.
Is there a possibility to flush the volume cache from inside my the file disk driver?
Or is there any alternative?
Thanks and Best Regards,
Jürgen.
Why not use a service to provide the correct privileges? Flushing data from
your kernel mode disk driver does not seem like a likely prospect.
=====================
Mark Roddy DDK MVP
Windows 2003/XP/2000 Consulting
Hollis Technology Solutions 603-321-1032
www.hollistech.com
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@fair-computer.de
Sent: Sunday, October 29, 2006 8:39 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] flushing volume cache for file disk device
Hello all,
I am writing a driver that is emulating a disk media in a
file (file disk driver). The corresponding application
(creating the file disk, mounting, formatting, unmounting)
should also work correctly for a “normal” user (non-admin).
Most of them works fine.
Currently, I have a problem with flushing volume cache to
disk file with fastfat file system when unmounting.
LOCK_VOLUME, FSCTL_DISMOUNT_VOLUME and UNLOCK_VOLUME cannot
be done by a “normal” user since the necessary handle with
the proper rights cannot be created by a normal user.
Is there a possibility to flush the volume cache from inside
my the file disk driver?
Or is there any alternative?
Thanks and Best Regards,
J?rgen.
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online
at http://www.osronline.com/page.cfm?name=ListServer