Click here to Skip to main content
15,885,910 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have been searching for codes to disable the datetime change in the system. but i cant find any. Can anyone tell me if its possible and tell me how to do it? thanks in advance.

I need to use this for the PC management. The user might change the date and time so that they could extend time in using the PC.

And I just want to add that the program I have developed is running ONLY on admin. so... what to do?

OR HOW CAN I GIVE ALERT IF THE USER HAS TRIED TO CHANGE THE DATE TIME..then save to database ?
Posted
Updated 15-Oct-14 15:26pm
v2
Comments
Sergey Alexandrovich Kryukov 15-Oct-14 21:34pm    
Why?
—SA
Sergey Alexandrovich Kryukov 15-Oct-14 23:05pm    
Also, please stop posting fake "solutions". Some of them should be comments or updates to the questions. Posting what you post as "solution" is considered as abuse.
—SA

If you really want a clock that cannot be changed by user then use a time server. http://en.wikipedia.org/wiki/Time_server[^] This is totally independent of PC clock and so is unaffected by anything the user does locally.

http://stackoverflow.com/questions/1193955/how-to-query-an-ntp-server-using-c[^]

Plenty more using google.
 
Share this answer
 
v2
Changing time on the system is one of the fundamental user's rights you cannot take out by any means, unless you want to make OS non-functional. If you could, it would be a serious crime against the user. Forget it.

If you want to capture the time change event (why?!), please see: http://www.stevebunting.org/udpd4n6/forensics/timechange.htm[^].

—SA
 
Share this answer
 
v2
Comments
NekoNao 15-Oct-14 21:42pm    
because . we are using the program to monitor the use of the PC (users can only use it for limited time). and they should not be allowed to change time. but you know, there are users that is so greedy that they might change the time so that they can use the pc more.. and we dont want to take that risk
NekoNao 15-Oct-14 21:47pm    
Even if users can change date time,. is it possible to have it monitored. that would save to database in case date time has been changed by certain user?
Sergey Alexandrovich Kryukov 15-Oct-14 23:01pm    
Didn't I answer this part of your question?
—SA
Sergey Alexandrovich Kryukov 15-Oct-14 23:00pm    
I already told you: forget it. The users who badly want to copy your product, will do it anyway, don't worry.
But who is greedy?

Better think what do you want to do: assuming some users want to steal you product (I doubt it, but let's assume it), you want to steal the whole system from your users, event those willing to pay for your product. I wish your potential users already knew about your intentions, then no one would ever try to use your product, to stay out of trouble.

—SA
NekoNao 15-Oct-14 23:02pm    
okay .thanks!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900