コード例 #1
0
ファイル: CorePsPlatform.cs プロジェクト: x1m0/PowerShell
            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
ファイル: CorePsPlatform.cs プロジェクト: x1m0/PowerShell
 internal static extern int SetDate(SetDateInfoInternal info);
コード例 #3
0
ファイル: CorePsPlatform.cs プロジェクト: 40a/PowerShell
 internal static extern int SetDate(SetDateInfoInternal info);
コード例 #4
0
ファイル: CorePsPlatform.cs プロジェクト: 40a/PowerShell
 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);
     }
 }