You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation of the OpenVirtualDiskParameters structure is incorrect and will not work correctly for either VDH version. The correct structure is as follows:
[StructLayout( LayoutKind.Explicit, CharSet = CharSet.Unicode )]
public struct OpenVirtualDiskParameters
{
[FieldOffset( 0 )]
public OpenVirtualDiskVersion Version;
// Version 1
[FieldOffset( 4 )]
public UInt32 RWDepth;
// Version 2
[FieldOffset( 4 )]
public Int32 GetInfoOnly;
[FieldOffset( 8 )]
public Int32 ReadOnly;
[FieldOffset( 12 )]
public Guid ResiliencyGuid;
}
And in the Open(...) method, code needs to be changed to make use of the previously ignored readWriteDepth parameter as follows:
The current implementation of the
OpenVirtualDiskParameters
structure is incorrect and will not work correctly for either VDH version. The correct structure is as follows:And in the
Open(...)
method, code needs to be changed to make use of the previously ignoredreadWriteDepth
parameter as follows:The text was updated successfully, but these errors were encountered: