Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Commit

Permalink
Merge pull request #386 from luke-dixon/fix_sp_devinfo_data_struct_la…
Browse files Browse the repository at this point in the history
…yout

Correct layout of SP_DEVINFO_DATA struct
  • Loading branch information
AArnott authored May 10, 2018
2 parents 9ecf26c + 4738e2b commit 08a441a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/SetupApi/SetupApi+SP_DEVINFO_DATA.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ public partial class SetupApi
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct SP_DEVINFO_DATA
{
/// <summary>
/// The size, in bytes, of the <see cref="SP_DEVINFO_DATA" /> structure. The constructor set this value automatically
/// to the correct size.
/// </summary>
public int Size;

/// <summary>
/// The GUID of the device's setup class.
/// </summary>
Expand All @@ -42,12 +48,6 @@ public struct SP_DEVINFO_DATA
/// </summary>
public IntPtr Reserved;

/// <summary>
/// The size, in bytes, of the <see cref="SP_DEVINFO_DATA" /> structure. The constructor set this value automatically
/// to the correct size.
/// </summary>
public int Size;

/// <summary>
/// Initializes a new instance of the <see cref="SP_DEVINFO_DATA" /> struct
/// with <see cref="Size" /> set to the correct value.
Expand Down

0 comments on commit 08a441a

Please sign in to comment.