-
September 7th, 2011, 07:06 AM
#1
How to lock the system clock
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.
-
September 7th, 2011, 09:01 AM
#2
Re: How to lock 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...
-
September 8th, 2011, 11:12 PM
#3
Re: How to lock the system clock
if my application is running then user can not change the date & time .
-
September 8th, 2011, 11:19 PM
#4
Re: How to lock the system clock
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.
Always use [code][/code] tags when posting code.
-
September 9th, 2011, 12:06 AM
#5
Re: How to lock the system clock
Think about it. Remove battery, unplug, and unplug network card. You want PC to self-destruct?
-
September 9th, 2011, 02:34 AM
#6
Re: How to lock the system clock
Originally Posted by vrushalikatkade
if my application is running then user can not change the date & time .
WHY??
is there any Specific reason for this...
Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
WPF Articles : 3D Animation 1 , 2 , 3
Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.
-
September 9th, 2011, 03:25 AM
#7
Re: How to lock the system clock
Originally Posted by vrushalikatkade
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.
You could always hide the clock. I'd do that, especially if you do not want users to be able to change the time while your app is running.
-
September 9th, 2011, 06:39 AM
#8
Re: How to lock the system clock
Originally Posted by dglienna
Think about it. Remove battery, unplug, and unplug network card. You want PC to self-destruct?
Ahh, only problem is that would terminate the program
Always use [code][/code] tags when posting code.
-
September 9th, 2011, 10:26 AM
#9
Re: How to lock the system clock
I think you can make windows rights so restrictive, users can't change the time anyway.
ahoodin
To keep the plot moving, that's why.
-
September 9th, 2011, 10:42 AM
#10
Re: How to lock the system clock
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
-
September 9th, 2011, 01:38 PM
#11
Re: How to lock the system clock
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.
ahoodin
To keep the plot moving, that's why.
-
September 12th, 2011, 10:32 AM
#12
Re: How to lock the system clock
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.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|