0

I want to change system time on window os but i don't want to use kernel32.dll because my os will write an log entry @@

Pls help me.

fox
  • 55
  • 1
  • 2
  • 4
  • [`SetSystemTime()`](http://msdn.microsoft.com/en-us/library/windows/desktop/ms724942(v=vs.85).aspx) is the only way to change the system time. But you say you don't want to use that function? – Greg Hewgill Nov 20 '12 at 08:23
  • I don't want to import kernel32.dll to my project. Other way to solve my problem ? – fox Nov 23 '12 at 02:11
  • Your concern is somehow misguided. `kernel32.dll` is *always* part of every Win32 program. Without that, you can do nothing useful at all. – Greg Hewgill Nov 23 '12 at 02:14

1 Answers1

0

In Python, you can try using the win32api.SetSystemTime. That is part of pywin32

Frankline
  • 40,277
  • 8
  • 44
  • 75
  • Thank you Frankline. win32api.SetSystemTime int = SetSystemTime(year, month , dayOfWeek , day , hour , minute , second , millseconds ) But i don't khow how to import this code to my project with c# language. Help me !!! – fox Nov 22 '12 at 02:32