المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : SetDate of system from inside of our program



C# Programming
08-01-2012, 08:27 PM
[DllImport("kernel32.dll", EntryPoint = "SetSystemTime", SetLastError = true)]public extern static bool Win32SetSystemTime(ref SystemTime sysTime);
By the above code I can change the system date of many version of MicroSoft Windows 7, but doesn't work on all of them. Do I miss something?