예제 #1
0
            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);
                }
            }
예제 #2
0
 internal static extern int SetDate(SetDateInfoInternal info);
예제 #3
0
 internal static extern int SetDate(SetDateInfoInternal info);
예제 #4
0
 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);
     }
 }