I have developed the vb6 application.in this application , i want to lock the system clock when ma application .exe running & my application closed then unlock the system clock.
Printable View
I have developed the vb6 application.in this application , i want to lock the system clock when ma application .exe running & my application closed then unlock the system clock.
If you stop the clock, you'll probably need to use DOS. Explain what you mean.
If you want to prevent altering the time, use an external time source (like the web) and check it...
if my application is running then user can not change the date & time .
I am not aware of any way to lock the system clock. You can set the time, you can sync the time you can even do it in a timer if need be so any changes get set back to the proper time when the timer fires but locking it would seem to have little purpose so I doubt there is a method provided to do so.
Think about it. Remove battery, unplug, and unplug network card. You want PC to self-destruct? :)
I think you can make windows rights so restrictive, users can't change the time anyway.:sick:;)
That's what a SERVER is for. Active Directory can run ONLY your app on the desktop when someone logs in. As soon as they QUIT the app, they're logged off. Microsoft called the demo JOE LOCK-OUT when Windows 2000 was new
Yeah or using a timeserver based on an atomic clock. I would say there is no point to writing an app to lock the system clock, the functionality is already in Windows, and TimeServer Functionality overrides it too. Apologies.
Hello,
I would :
Insert a sysinfocontrol
and use its TimeChanged() event
It will let me know any attempt to change the date/time ===>> I would then (and only then) decide to restablish or not (trough the web) the right date and time.