I am trying to partition and format a drive, not necessarily in assembly, but I'm hoping you all know more about some of the somewhat lower level disk access stuff windows supplies.

I am using IOCTL_DISK_SET_DRIVE_LAYOUT_EX to create a new partition, but I don't know what value to set the DWORD signature of the mbr structure to, I know it is supposed to be a unique signature, but I am unsure of how to generate it (or not generate it).
Also, I am not sure if I need to assign a drive letter myself or if the volume manager will do it for me, if that is the case, I'm unsure of how to get the drive letter assigned to it.

Any help in these subjects is greatly appreciated, thanks.
Posted on 2005-08-18 13:57:30 by valis
The PlatformSDK certainly isn't too helpful... googling found this on osronline: Specifies the disk signature value, which uniquely identifies the disk. If the drive is bootable, the signature will have a value of 0xbb66. Any other value indicates the driver is not bootable.

THIS thread might also be of relevance a bit later on.

Perhaps DefineDosDevice or one of the related calls can be of use too?
Posted on 2005-08-18 14:28:40 by f0dder