[ DllImport("kernel32.dll")]private static extern bool
SetSystemTime(ref SystemTime time);
None.
Fill-in an instance of the SystemTime struct and call SetSystemTime(ref obj), where obj is the instance of your struct.
Please add some!
[StructLayout(LayoutKind.Sequential)]
private struct SystemTime{
[MarshalAs(UnmanagedType.U2)] public short Year;
[MarshalAs(UnmanagedType.U2)] public short Month;
[MarshalAs(UnmanagedType.U2)] public short DayOfWeek;
[MarshalAs(UnmanagedType.U2)] public short Day;
[MarshalAs(UnmanagedType.U2)] public short Hour;
[MarshalAs(UnmanagedType.U2)] public short Minute;
[MarshalAs(UnmanagedType.U2)] public short Second;
[MarshalAs(UnmanagedType.U2)] public short Milliseconds;
}