time

how do i restrict any user to change the system time

thanks
sonalchouhanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sonalchouhanAuthor Commented:
Adjusted points to 10
0
mcriderCommented:
why would you want to?
0
TimCotteeHead of Software ServicesCommented:
If you are running NT then you can set policies to restrict access to such things, and / or implement a timeserver function from a server which cannot be changed by a normal user. This would have the added benefit of ensuring that multiple updates to a database are correctly timestamped across multiple pcs connecting to it.
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

mcriderCommented:
It's impossible to stop the user from changing the time in a windows environment.  The Date and Time function are built into too many places...

The taskbar system clock, the control panel, and the Date and Time commands in DOS a window are internal to command.com....

Cheers!
0
mcriderCommented:
Any particular reason for the rejection?

:-\
0
sonalchouhanAuthor Commented:
well i am making a project for a cybercafe now i hav ethe login time and the logout time which is the system time the diff is the time used so now anyone can change the system time and manupulate the time ussed soi i want that the user once logs in should not be allowed to change the system time

thanks please ans
0
mcriderCommented:
Write a VB program that is used as the system shell, and replace the system.ini entry:

shell=Explorer.exe

with

shell=your_program.exe

You will have to be able to launch all of the applications you want to use in your program.

You'll also have to get rid of control panel time application...


Cheers!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
KDivadCommented:
Or use the API GetTickCount(?) to figure out the length of time. It won't matter what the user does to the system time, the GetTickCount value can't be altered.
0
mcriderCommented:
Either way is not foolproof... all you gotta do to mess it up is pull the power cord out of the wall...

Cheer!
0
KDivadCommented:
True, but that's similar to a log-off. If the app checks for a valid log-off entry when it starts and doesn't find one, it can assume (and have a good chance of being right) that the power was killed abruptly, i.e. plug pulled/power switch flipped.

Later,
0
mark2150Commented:
If you're tied into a LAN you should be able to get the time from the server and use that to sync the local clock. There are also web sites that give you the authorative time.

If you have an Oracle or other SQL server you can make data records using the SYSTIME value that will write the time based on the server clock.

M
0
TimCotteeHead of Software ServicesCommented:
That is sort of what I said only clearer!
0
headerCommented:
Go to C:\Windows\System and find "TimeDate.cpl".  Rename this file and and the clock is 'disabled' (unless you specifically run the file that you renamed it to).  It's not foolproof, though.
0
sonalchouhanAuthor Commented:
i wnat that if my program is running then there should be nothing else on the desktop only my program no start button nothing is it possible

and once he exits out then all should appear

thanks
0
mcriderCommented:
My answer... starting your program as the shell will accomplish this, however, you also need to look at:

HOWTO: Cover the Task Bar with a Window
http://support.microsoft.com/support/kb/articles/Q179/3/63.ASP 
 
HOWTO: Cover the Taskbar with a Window in Visual Basic
http://support.microsoft.com/support/kb/articles/Q197/5/85.ASP 
 


You need to start EXPLORER up before you terminate your program.


Cheers!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.