In Windows there is the DeviceIoControl() function (http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx). The Disk Management Control codes (http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx) include codes to get partition info and to set partition info (http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx).