• 10-03-2018, 12:33:11
    #1
     [DllImport("kernel32.dll")]
            public extern static uint SetSystemTime(ref SYSTEMTIME lpSystemTime);
            [StructLayout(LayoutKind.Sequential)]
            public struct SYSTEMTIME
            {
                public short Year;
                public short Month;
                public short DayOfWeek;
                public short Day;
                public short Hour;
                public short Minute;
                public short Second;
                public short Milliseconds;
            }
      //SYSTEMTIME zaman = new SYSTEMTIME();
                //zaman.Day = short.Parse(label4.Text);
                //zaman.Month = short.Parse(label3.Text);
                //zaman.Year = short.Parse(label2.Text);
                //zaman.Hour = short.Parse(label5.Text);
                //zaman.Minute = short.Parse(label6.Text);
                //zaman.Second = short.Parse(label7.Text);
                //SetSystemTime(ref zaman);
    Bu kodlar çalışmıyor, birçok kaynağa baktım bu kodler ile yapıyor, güvenlik duvarından tutun, mainfast tan yönetici olarak çalıştırttım. Fakat hiçbir sonuş alamadım, yardım edecek arkadaşları bekliyorum.
    // leri diğer kodlar için kapamıştım.






    yukarıdai resimde görüdğünüz gibi.
  • 10-03-2018, 12:38:03
    #2
    Kimlik doğrulama veya yönetimden onay bekliyor.
    https://stackoverflow.com/questions/...ogrammatically

    En altta cmd komutu ile değişim var
  • 10-03-2018, 13:01:26
    #3
    [DllImport("kernel32.dll", EntryPoint = "SetSystemTime", SetLastError = true)]
    public extern static bool Win32SetSystemTime(ref SystemTime sysTime);
    ile değiştirin ilk iki satırı
  • 10-03-2018, 13:49:55
    #4
    hesapadim adlı üyeden alıntı: mesajı görüntüle
    [DllImport("kernel32.dll", EntryPoint = "SetSystemTime", SetLastError = true)]
    public extern static bool Win32SetSystemTime(ref SystemTime sysTime);
    ile değiştirin ilk iki satırı
    hocam ne yanlışım var. Sabahtan beridir uğraşıyorum buna.
  • 10-03-2018, 20:19:51
    #5
    mustafadgr adlı üyeden alıntı: mesajı görüntüle
    hocam ne yanlışım var. Sabahtan beridir uğraşıyorum buna.
    ay yil gun yerine 01 01 2018 falan deneseniz hardcoded olarak