I’m trying to obtain the size of a raw partition
within a monolithic driver. I’ve tried every means i
could conceive for doing this and have failed.
-
I tried opening the storage volume as a device, and
send an irp. using IoBuildSynchronous IRP, and using
IRP_MJ_DEVICE_CONTROL and the
IOCTL_DISK_GET_PARTITION_INFO_EX code. The damn thing
crashs with a page fault. -
I tried opening the partition using zwopenfile and
then using zwqueryfileinformation. I get an error
indicating incorrect function.
Any easy way of obtaining this information?
Rajeev
Everything you always wanted to know about cars and bikes,now
at: http://in.autos.yahoo.com/cricket/tracker.html