How can I use DeviceIoControl to Send an " IRP_MN_MOUNT_VOLUME" IRP to my Disk

  • Thread starter Thread starter OverflowAtMsdn
  • Start date Start date
O

OverflowAtMsdn

Guest
Hi:

I wrote a fastfat demo driver and I need to use C# to mount a disk to trigger FatMountVolume .But when I use this way to mount the disk . The compiler doesn`t support IRP_NM_MOUNT_VOLUME dwFlag .Is there any example to introduce how a user mode program mount a disk device ?


Boolean result = WinAPI.DeviceIoControl(hDriver, IRP_MN_MOUNT_VOLUME, lpOutBuffer, nOutBufferSize, lpBytesReturned, 0);

Continue reading...
 
Back
Top