create and formatting a parititon

How does one create and format a partition on a blank HDD
programmatically (preferably from a ring3 app)?

There are various IOCTLs such as IOCTL_DISK_SET_PARTITION_INFO, but I’m
not sure how one formats a disk. Also, we have looked at scripting
format.com and DiskPart.exe but these are un-ideal solutions.

Thanks much,

Daniel Nemiroff

Take a look at http://www.sysinternals.com/SourceCode/fmifs.html


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply

“Nemiroff, Daniel” wrote in message
news:xxxxx@ntfsd…
How does one create and format a partition on a blank HDD
programmatically (preferably from a ring3 app)?

There are various IOCTLs such as IOCTL_DISK_SET_PARTITION_INFO, but I’m
not sure how one formats a disk. Also, we have looked at scripting
format.com and DiskPart.exe but these are un-ideal solutions.

Thanks much,

Daniel Nemiroff

FormatEx(). See http://www.sysinternals.com/SourceCode/fmifs.html

Best regards,

Michal Vodicka
UPEK, Inc.
[xxxxx@upek.com, http://www.upek.com]


From: xxxxx@lists.osr.com[SMTP:xxxxx@lists.osr.com] on behalf of Nemiroff, Daniel[SMTP:xxxxx@intel.com]
Reply To: Windows File Systems Devs Interest List
Sent: Tuesday, August 02, 2005 11:29 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] create and formatting a parititon

How does one create and format a partition on a blank HDD programmatically (preferably from a ring3 app)?

There are various IOCTLs such as IOCTL_DISK_SET_PARTITION_INFO, but I’m not sure how one formats a disk. Also, we have looked at scripting format.com and DiskPart.exe but these are un-ideal solutions.

Thanks much,

Daniel Nemiroff


Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Thanks all1

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Michal Vodicka
Sent: Tuesday, August 02, 2005 2:56 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] create and formatting a parititon

FormatEx(). See http://www.sysinternals.com/SourceCode/fmifs.html

Best regards,

Michal Vodicka
UPEK, Inc.
[xxxxx@upek.com, http://www.upek.com]


From:
xxxxx@lists.osr.com[SMTP:xxxxx@lists.osr.com
] on behalf of Nemiroff, Daniel[SMTP:xxxxx@intel.com]
Reply To: Windows File Systems Devs Interest List
Sent: Tuesday, August 02, 2005 11:29 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] create and formatting a parititon

How does one create and format a partition on a blank HDD
programmatically (preferably from a ring3 app)?

There are various IOCTLs such as IOCTL_DISK_SET_PARTITION_INFO, but
I’m not sure how one formats a disk. Also, we have looked at scripting
format.com and DiskPart.exe but these are un-ideal solutions.

Thanks much,

Daniel Nemiroff


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag
argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com