public static void SetDate(SetDateInfoInternal info) { int ret = NativeMethods.SetDate(info); if (ret == -1) { int lastError = Marshal.GetLastWin32Error(); throw new InvalidOperationException("Unix.NonWindowsSetDate error: " + lastError); } }
internal static extern int SetDate(SetDateInfoInternal info);