Results 1 to 13 of 13

Thread: Locking Windows clock

  1. #1

    Thread Starter
    Addicted Member SaharaWizard's Avatar
    Join Date
    Nov 2004
    Location
    Canada
    Posts
    254

    Exclamation Locking Windows clock

    Hello ppl
    I need to find a way to prevent the users of computers that run my application from changing the time an date (Windows' clock).
    The OS is windows home edition and there is no administrative option for limiting such acts as fa as I can see.
    Any suggestions?
    Thanks
    In case you are wondering my application needs accurate time and date reading. By changing the clock setting potential users can fool the system to allow unauthorized (unscheduled) actions. That's what I am trying to prevent.
    Don't let your schooling get in the way of your education.

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Locking Windows clock

    Put an Inet control in your program and query a time server periodically. You can't prevent users from doing things to the computer when your program isn't running.

  3. #3
    Frenzied Member cssriraman's Avatar
    Join Date
    Jun 2005
    Posts
    1,465

    Re: Locking Windows clock

    Yes. I think, if windows is not allowing you to restrict it then how vb will do that. I don't think it's possible. As Al42 said, you need to query the time server.
    CS

  4. #4

    Thread Starter
    Addicted Member SaharaWizard's Avatar
    Join Date
    Nov 2004
    Location
    Canada
    Posts
    254

    no can do!

    The application will be running on 3 sepate computers. So time server is not avaialble. Also it will be running constantly (users cannot close the program).
    There has to a be a way to do this, how?
    Don't let your schooling get in the way of your education.

  5. #5
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: no can do!

    Quote Originally Posted by SaharaWizard
    There has to a be a way to do this
    Why?

  6. #6

    Thread Starter
    Addicted Member SaharaWizard's Avatar
    Join Date
    Nov 2004
    Location
    Canada
    Posts
    254

    Re: Locking Windows clock

    Users are logging into this computers for specific purposes (education) the application is suppposed to monitor their progres. It will run as long as comuter is on. If users are able to cheat the time by changing the clock and getting more time the whole exercise becomebes useless.
    Don't let your schooling get in the way of your education.

  7. #7

    Thread Starter
    Addicted Member SaharaWizard's Avatar
    Join Date
    Nov 2004
    Location
    Canada
    Posts
    254

    Re: Locking Windows clock

    Users are logging into this computers for specific purposes (education) the application is suppposed to monitor their progres. It will run as long as comuter is on. If users are able to cheat the time by changing the clock and getting more time the whole exercise becomebes useless.
    So question is how to I read the coorect time or prevent them frm changing the clock??
    Don't let your schooling get in the way of your education.

  8. #8
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Re: Locking Windows clock

    Then perhaps use something like GetTickCount to monitor the time of the tasks (i presume it's some sort of test) instead to querying the system time.

  9. #9

    Thread Starter
    Addicted Member SaharaWizard's Avatar
    Join Date
    Nov 2004
    Location
    Canada
    Posts
    254

    Re: Locking Windows clock

    That wont work.
    Don't let your schooling get in the way of your education.

  10. #10

  11. #11

    Thread Starter
    Addicted Member SaharaWizard's Avatar
    Join Date
    Nov 2004
    Location
    Canada
    Posts
    254

    why and why nots!

    I am trying to scedukle events and force users to respec the shedule. How would number of seconds since computers starting can be helpful?? They can reboot the machine and mess everything up. What I need is a foolproof way to keep the time correct and not to let the users change the time to extend their permission for certain things.
    Any ideas?
    Don't let your schooling get in the way of your education.

  12. #12
    Fanatic Member dark_shadow's Avatar
    Join Date
    Feb 2005
    Location
    Igloo
    Posts
    900

    Re: Locking Windows clock

    i'm am almost positive you can restrict this using the local security policy :s i was almost positive it worked with home 2 i may be wrong tho

  13. #13
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965

    Re: Locking Windows clock

    Have you tried Fortres 101 yet?
    Regards,

    Mark

    Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width