[StructLayout(LayoutKind.Sequential)]
public struct COMPSTATEINFO
{
public static readonly int SizeOf = Marshal.SizeOf(typeof(COMPSTATEINFO));
public int dwSize;
public int iLeft;
public int iTop;
public int dwWidth;
public int dwHeight;
public CompItemState dwItemState;
}
<StructLayout(LayoutKind.Sequential)> _
Public Structure COMPSTATEINFO
Public Shared ReadOnly SizeOf As Integer
Public dwSize As Integer
Public iLeft As Integer
Public iTop As Integer
Public dwWidth As Integer
Public dwHeight As Integer
Public dwItemState As CompItemState
Shared Sub New()
COMPSTATEINFO.SizeOf = Marshal.SizeOf(GetType(COMPSTATEINFO))
End Sub
End Structure
None.
see CompItemState