Partition formatting after creation
I'm doing some COM development to manage a removable disk [Digital Media Storage Device], and have successfully wiped the MBR and created new partitions on the disk using IOCTL_DISK_SET_DRIVE_LAYOUT_EX.
Now I need to format these partitions as FAT32 but can't seem to find anything in the documentation to help. Ideally I need this to be transparent to the user so I wouldn't want to use SHFormat as a number of URL searches has turned up.
The only documentation I can find for volume management seems to relate to NTFS paths or drive letters - but I haven't gotten that far to be able to use those methods.
Should I be using DefineDOSDevice to map a partition?
If so, what is the device name I should format to, would it be similar to createfile, i.e.\.\PhysicalDrive1\Partition1?
If not, what should I be using to format the new partitions?
TIA

