mirror of https://github.com/dahall/Vanara.git
Modified structure fields to make blittable
parent
7a73572e23
commit
96e3aef5fc
|
@ -8472,7 +8472,7 @@ namespace Vanara.PInvoke
|
||||||
|
|
||||||
/// <summary>Provides a <see cref="SafeHandle"/> for <see cref="TRACEHANDLE"/> that is disposed using <see cref="CloseTrace"/>.</summary>
|
/// <summary>Provides a <see cref="SafeHandle"/> for <see cref="TRACEHANDLE"/> that is disposed using <see cref="CloseTrace"/>.</summary>
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public class SafeTRACEHANDLE : MarshalByRefObject, IDisposable
|
public class SafeTRACEHANDLE : IDisposable
|
||||||
{
|
{
|
||||||
private readonly ulong handle;
|
private readonly ulong handle;
|
||||||
|
|
||||||
|
|
|
@ -2102,8 +2102,7 @@ namespace Vanara.PInvoke
|
||||||
|
|
||||||
/// <summary>The file path for the default Snapshot of the Vhd Set.</summary>
|
/// <summary>The file path for the default Snapshot of the Vhd Set.</summary>
|
||||||
[FieldOffset(0)]
|
[FieldOffset(0)]
|
||||||
[MarshalAs(UnmanagedType.LPWStr)]
|
public StrPtrUni DefaultFilePath;
|
||||||
public string DefaultFilePath;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>A structure with the following members.</summary>
|
/// <summary>A structure with the following members.</summary>
|
||||||
|
@ -2115,8 +2114,7 @@ namespace Vanara.PInvoke
|
||||||
public Guid SnapshotId;
|
public Guid SnapshotId;
|
||||||
|
|
||||||
/// <summary>The new file path for the Snapshot indicated by the SnapshotId field.</summary>
|
/// <summary>The new file path for the Snapshot indicated by the SnapshotId field.</summary>
|
||||||
[MarshalAs(UnmanagedType.LPWStr)]
|
public StrPtrUni SnapshotFilePath;
|
||||||
public string SnapshotFilePath;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2257,7 +2255,7 @@ namespace Vanara.PInvoke
|
||||||
|
|
||||||
/// <summary>Path to the parent backing store.</summary>
|
/// <summary>Path to the parent backing store.</summary>
|
||||||
[PInvokeData("VirtDisk.h", MinClient = PInvokeClient.Windows7)]
|
[PInvokeData("VirtDisk.h", MinClient = PInvokeClient.Windows7)]
|
||||||
[FieldOffset(8)] public string ParentFilePath;
|
[FieldOffset(8)] public StrPtrUni ParentFilePath;
|
||||||
|
|
||||||
/// <summary>Unique identifier of the VHD.</summary>
|
/// <summary>Unique identifier of the VHD.</summary>
|
||||||
[PInvokeData("VirtDisk.h", MinClient = PInvokeClient.Windows7)]
|
[PInvokeData("VirtDisk.h", MinClient = PInvokeClient.Windows7)]
|
||||||
|
|
Loading…
Reference in New Issue