Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Creating a partition programmatically

154 views
Skip to first unread message

Walter

unread,
Dec 8, 2009, 4:28:02 AM12/8/09
to
Hi,

When you create a logical partition inside an extended partition (e.g. using
diskpart) on Windows 7 the following german message box will be displayed,
which looks like::

„Sie müssen den Datenträger in Laufwerk E: formatieren, bevor Sie ihn
verwenden können. Möchten Sie ihn formatieren?“

Approx. Translation: "Sie müssen den Datenträger in Laufwerk E: formatieren,
bevor Sie ihn verwenden können." = "You must format the volume in drive E:
before you can use it"

"Möchten Sie ihn formatieren?" = "Do you want to format it?"

Questions: Is there a way to suppress this message box? Is there a method to
programmatically create a partition that does not pop up message boxes?

Kerem Gümrükcü

unread,
Dec 8, 2009, 7:36:16 AM12/8/09
to

Hi Walter,

before i will explain everthing in detail, have
a look at this post on sysinternals and then
you can figure the rest out by reading regarding
information on MSDN and www:

http://forum.sysinternals.com/forum_posts.asp?TID=3029

Good Luck

Regards

Kerem
P.S: You need a elevated Token (a real Administrator!) on Vista
and upper to accomplish this, never forget that or you will get a
ACCESS_DENIED (5) on any call attempt for DeviceIoControl(...)
if you are NOT a Administrator!

--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Latest Project: http://www.pro-it-education.de/software/deviceremover
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------

"Walter" <Wal...@discussions.microsoft.com> schrieb im Newsbeitrag
news:767CB9EC-6546-4E39...@microsoft.com...

Walter

unread,
Dec 14, 2009, 10:16:02 AM12/14/09
to
Hi Kerem,

we also use the partitioning method (IOCTL) that your posting refers to (or
at least it seems so, I cannot see any relevant differences). The problem
(that an unwanted dialog is bothering the user) only exists since Windows 7
(and seems to be independent from the partitioning method one chooses). Have
you actually tried it on Windows 7 to create an extended (!) partition and
not seen the warning dialog?

Regards

"Kerem Gümrükcü" wrote:

> .
>

Merrow

unread,
Jan 11, 2010, 5:59:22 AM1/11/10
to
On 14 Dez. 2009, 16:16, Walter <Wal...@discussions.microsoft.com>
wrote:

push

0 new messages