This is the Virtvol sample driver. This version of the driver has been modified to support the driver frameworks. This driver basically creates a nonpaged pool and exposes that as a storage media. User can find the device in the disk manager and format the media to use as FAT or NTFS volume. In addition, Virtvol integrates with Mount Manager, so that it is not necessary for you to assign a drive letter, the system will do this automatically.
First, you should build this sample as normal. Then please follow the following steps to install this driver:
Alternatively, you can copy the files over as above and then run devcon.exe: DEVCON.EXE INSTALL virtvol.inf virtvol
The devcon.exe application can be found in the WDK in the tools directory.
Finally, please validate if you’ve installed the driver successfully.
You can run devcon.exe: DEVCON.EXE -remove virtvol.inf virtvol to remove the devices.
The main logic of this code is:
· The location for complete information on
the KMDF framework is:
The location of how to interact with the mount manager is: