How to Create and format partitions
-
Hi all, I am creating an application for windows Vista, XP and 2003Server. In my application I need to create and format partitions(Extended and primary both). I do not want to use DISKPART utility. Is there any other way to do this job like by using any win32API or any function provided by Microsoft in MSDN? Please give me some suggestions. Thanks
-
Hi all, I am creating an application for windows Vista, XP and 2003Server. In my application I need to create and format partitions(Extended and primary both). I do not want to use DISKPART utility. Is there any other way to do this job like by using any win32API or any function provided by Microsoft in MSDN? Please give me some suggestions. Thanks
-
Ya ofCourse, you can use DeviceIoControl codes. for creating any partition (primary or logical) IOCTL_DISK_SET_DRIVE_LAYOUT can be used. :-D
Thanks CMylife. I am going to implement it now. I will consult you after trying it. thanks
-
Thanks CMylife. I am going to implement it now. I will consult you after trying it. thanks
Its good that you are trying yourself. nothing you have to do. u first of all get the all partitions information by using IOCTL_DISK_GET_DRIVE_LAYOUT, then just edit the partition number, its offset, size and the last parameter , set that to true and finally run the IOCTL_DISK_SET_DRIVE_LAYOUT code from there itself. and then you are done with a new partition. All the best. :-D
-
Hi all, I am creating an application for windows Vista, XP and 2003Server. In my application I need to create and format partitions(Extended and primary both). I do not want to use DISKPART utility. Is there any other way to do this job like by using any win32API or any function provided by Microsoft in MSDN? Please give me some suggestions. Thanks
Did you see
FormatPartition
andCreatePartition
?Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )
-
Did you see
FormatPartition
andCreatePartition
?Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )
These look like they're for Windows CE.
Steve
-
These look like they're for Windows CE.
Steve
-
Its good that you are trying yourself. nothing you have to do. u first of all get the all partitions information by using IOCTL_DISK_GET_DRIVE_LAYOUT, then just edit the partition number, its offset, size and the last parameter , set that to true and finally run the IOCTL_DISK_SET_DRIVE_LAYOUT code from there itself. and then you are done with a new partition. All the best. :-D
Thanks CMyLife. I am not sure that you will get my query today coz this thread is of one day old. I have successfully created the partition using IOCTL_DISK_SET_DRIVE_LAYOUT. But now I am stuck in formatting this raw partition. There is one function FormatEx() but it is only for Vista. Is there any other way to format partition without using DISKPART and SHFormatDrive like some ioctl code. Thanks
-
OH... Pardon me I have quoted you without reading this reply from ur side. I am just checking for these FMIFS.h and FMIFS.dll Thanks