Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

PARTITION_INFORMATION (Structures)
 
.
Summary
TODO - a short description
Summary
The PARTITION_INFORMATION structure contains information about a disk partition.

C# Definition:

[StructLayout(LayoutKind.Sequential)]
public struct PARTITION_INFORMATION_MBR
public struct PARTITION_INFORMATION
{
     [MarshalAs(UnmanagedType.U1)]
     public PARTITION_TYPE PartitionType;
     [MarshalAs(UnmanagedType.U1)]
     public bool BootIndicator;
     [MarshalAs(UnmanagedType.U1)]
     public bool RecognizedPartition;
     public uint HiddenSectors;
   public long StartingOffset;
   public long PartitionLength;
   public int HiddenSectors;
   public int PartitionNumber;
   public byte PartitionType;
   [MarshalAs(UnmanagedType.I1)]
   public bool BootIndicator;
   [MarshalAs(UnmanagedType.I1)]
   public bool RecognizedPartition;
   [MarshalAs(UnmanagedType.I1)]
   public bool RewritePartition;
}

VB Definition:

<StructLayout(LayoutKind.Sequential)> _
Public Structure PARTITION_INFORMATION_MBR
    <MarshalAs(UnmanagedType.U1)> _
    Public PartitionType As PARTITION_TYPE
    <MarshalAs(UnmanagedType.U1)> _
    Public BootIndicator As Boolean
    <MarshalAs(UnmanagedType.U1)> _
    Public RecognizedPartition As Boolean
    Public HiddenSectors As UInteger
End Structure

User-Defined Field Types:

PARTITION_TYPE

VB 2008

<System.Runtime.InteropServices.StructLayout(LayoutKind.Sequential)> _
  Public Structure PARTITION_INFORMATION
    Public StartingOffset As Long
    Public PartitionLength As Long
    Public HiddenSectors As Integer
    Public PartitionNumber As Integer
    Public PartitionType As Byte
    <System.Runtime.InteropServices.MarshalAs(UnmanagedType.I1)> _
    Public BootIndicator As Boolean
    <System.Runtime.InteropServices.MarshalAs(UnmanagedType.I1)>
    Public RecognizedPartition As Boolean
    <System.Runtime.InteropServices.MarshalAs(UnmanagedType.I1)>
    Public RewritePartition As Boolean
  End Structure

Notes:

User-Defined Field Types:

None.

Documentation

Notes:

None.

Documentation

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions