hi
how can I change the date and time of the computer
It is possible to protect the network setting from changed by any one
use computer
hi
how can I change the date and time of the computer
It is possible to protect the network setting from changed by any one
use computer
Putting this code in the appropriate places, and making sure you have
at the top will allow you to change the date and time. If you don't know where to put this code, I can help on that - just ask.Code:using System.Runtime.InteropServices;
I don't understand your second question though sorry.Code:DllImport("kernel32.dll", SetLastError=true) // Add a [ to the start of this (where the Dll is and put a ] where the ending bracket is. Public static extern int SetLocalTime (ref SystemTime lpSystemTime); //struct for date/time apis public struct SystemTime { public short wYear; public short wMonth; public short wDayOfWeek; public short wDay; public short wHour; public short wMinute; public short wSecond; public short wMilliseconds; } SystemTime systNew = new SystemTime(); //set the properties systNew.wDay = 24; systNew.wMonth = 1; systNew.wYear = 2009; systNew.wHour = 7; systNew.wMinute = 0; systNew.wSecond = 0; //and update using the api SetLocalTime(ref systNew);
My Site | Questions and Answers | Ask Me: Termana | Last Tutorial: Ajax innerHTML
If you can keep your head while all around you are losing theirs, you probably have a CD writer on your desktop
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks
Algorithms and Data Structures
Java tutorials
Algorithms Forum