[StructLayout( LayoutKind.Sequential )]
struct LASTINPUTINFO
{
public static readonly int SizeOf = Marshal.SizeOf(typeof(LASTINPUTINFO));
[MarshalAs(UnmanagedType.U4)]
public UInt32 cbSize;
[MarshalAs(UnmanagedType.U4)]
public UInt32 dwTime;
}
<StructLayout(LayoutKind.Sequential)> _
Structure LASTINPUTINFO
<MarshalAs(UnmanagedType.U4)> _
Public cbSize As Integer
<MarshalAs(UnmanagedType.U4)> _
Public dwTime As Integer
End Structure
[<Struct; CLIMutable; StructLayout(LayoutKind.Sequential)>]
type LastInputInfo = {
size : int
dwTime : uint32
}
dwTime does wrap around. Watch out for that, and beware of casting to a signed.
Please add some!
Please add some!
Do you know one? Please contribute it!