Page 1 of 1
PARTITION_STYLE_MBR ???
Posted: Fri Jan 06, 2006 8:15 pm
by bingo
Constants
PARTITION_STYLE_MBR
MBR format. This corresponds to standard AT-style master boot records.
PARTITION_STYLE_GPT
GPT format.
PARTITION_STYLE_RAW
Partition not formatted in either of the recognized formats—MBR or GPT.
http://msdn.microsoft.com/library/defau ... le_str.asp
how can get this constants in pb ? :roll:
Posted: Fri Jan 06, 2006 11:31 pm
by Trond
Like this:
Code: Select all
Enumeration
#PARTITION_STYLE_MBR
#PARTITION_STYLE_GPT
#PARTITION_STYLE_RAW
EndEnumeration
Posted: Sat Jan 07, 2006 3:33 am
by PB
But won't that just give them the values 0,1,2 by PureBasic, and not the actual
Win32 values? I've tried looking for the actual values but searches of Google
and Usenet haven't been successful so far.

Posted: Sat Jan 07, 2006 3:47 am
by Dare2
Hmmm.
Are 0,1,2 not the actual values? Based on this sort of thing:
Edited: From my SDK:
PARTITION_STYLE
The PARTITION_STYLE enumeration type contains values that identify the format of a partition.
typedef enum _PARTITION_STYLE
{
PARTITION_STYLE_MBR
PARTITION_STYLE_GPT
PARTITION_STYLE_RAW
} PARTITION_STYLE;
Constants
PARTITION_STYLE_MBR
MBR format. This corresponds to standard AT-style master boot records.
PARTITION_STYLE_GPT
GPT format.
PARTITION_STYLE_RAW
Partition not formatted in either of the recognized formats—MBR or GPT.
Requirements
Client Requires Windows XP.
Server Requires Windows Server 2003.
Header Declared in Winioctl.h.
See Also
Disk Management Enumeration Types, PARTITION_INFORMATION_EX, IOCTL_DISK_GET_PARTITION_INFO_EX, IOCTL_DISK_SET_PARTITION_INFO_EX
--------------------------------------------------------------------------------
Last updated: March 2005 | What did you think of this topic? | Order a Platform SDK CD
© Microsoft Corporation. All rights reserved. Terms of use.
Does
Code: Select all
typedef enum _PARTITION_STYLE
{
PARTITION_STYLE_MBR
PARTITION_STYLE_GPT
PARTITION_STYLE_RAW
} PARTITION_STYLE;
do the same thing as Enumeration?
Posted: Sat Jan 07, 2006 3:50 am
by El_Choni
They're just the correct values, AFAIK.
Posted: Sat Jan 07, 2006 12:26 pm
by Trond
PB wrote:But won't that just give them the values 0,1,2 by PureBasic, and not the actual
Win32 values? I've tried looking for the actual values but searches of Google
and Usenet haven't been successful so far.

0, 1 and 2 are the actual values.