PARTITION_STYLE_MBR ???

Windows specific forum
User avatar
bingo
Enthusiast
Enthusiast
Posts: 210
Joined: Fri Apr 02, 2004 12:21 pm
Location: germany/thueringen
Contact:

PARTITION_STYLE_MBR ???

Post 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:
["1:0>1"]
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Like this:

Code: Select all

Enumeration
  #PARTITION_STYLE_MBR
  #PARTITION_STYLE_GPT
  #PARTITION_STYLE_RAW
EndEnumeration
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post 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. :(
Last edited by PB on Sat Jan 07, 2006 3:55 am, edited 1 time in total.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post 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?
Last edited by Dare2 on Sat Jan 07, 2006 3:55 am, edited 2 times in total.
@}--`--,-- A rose by any other name ..
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

They're just the correct values, AFAIK.
El_Choni
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post 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.
Post Reply