Tech Support > Microsoft Windows > Drivers > Writing down the disk stack
Writing down the disk stack
Posted by Maurice zmau on December 25th, 2003


Hi all,

How to write to a disk from a driver by calling the disk stack ?
I mean, not by using the zwWriteFile functions.

Which driver should I "open" (The disk driver I mean) ?
Can someond send a simple example of an IoCallDriver ?


Thanks
Maurice

Posted by Don Burn on December 25th, 2003


For IoCallDriver see http://www.osronline.com/article.cfm?id=87 this article
has examples and sample code for building IRP's and calling IoCallDriver.


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply

"Maurice zmau" <zmau@netvision.net.il> wrote in message
news:a4a129d6.0312250044.3623cf4d@posting.google.c om...


Posted by Maxim S. Shatskih on December 26th, 2003


IoAllocateIrp, then fill it, then IoCallDriver.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com


"Maurice zmau" <zmau@netvision.net.il> wrote in message
news:a4a129d6.0312250044.3623cf4d@posting.google.c om...