[StructLayout(LayoutKind.Sequential)]
public struct COMPONENTSOPT
{
public static readonly int SizeOf = Marshal.SizeOf(typeof(COMPONENTSOPT));
public int dwSize;
[MarshalAs(UnmanagedType.Bool)]
public bool fEnableComponents;
[MarshalAs(UnmanagedType.Bool)]
public bool fActiveDesktop;
}
<StructLayout(LayoutKind.Sequential)> _
Public Structure COMPONENTSOPT
Public Shared ReadOnly SizeOf As Integer
Public dwSize As Integer
<MarshalAs(UnmanagedType.Bool)> _
Public fEnableComponents As Boolean
<MarshalAs(UnmanagedType.Bool)> _
Public fActiveDesktop As Boolean
Shared Sub New()
COMPONENTSOPT.SizeOf = Marshal.SizeOf(GetType(COMPONENTSOPT))
End Sub
End Structure
None.
None.