Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Anyway to prevent user from changing system time/date?
Message
De
10/12/2003 03:20:45
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
09/12/2003 16:47:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00857033
Message ID:
00857537
Vues:
25
Yes,
Once VFP launched any changes in time are not reflected in seconds(). sys(2) reflects them. So comparing the 2 you could say that time was set back (or forth) and act accordingly. You could silently set the system time with winAPI.
However if time was gotten back before VFP's launch there is nothing you can do about it. On a standalone PC (really standalone) with an OS like win9x there is no bulletproof prevention of playing with the clock. You might enforce the policies but a clever user knows he doesn't need the windows to change the time (actually in NT,XP too it's easy to change the time no matter how much strict policies exist).
Cetin

>Cetin,
>
>I didnt know that SECONDS() functions works independently and entirely oblivious to the System Time of a PC!
>
>Will check this out and get back to you. Thanks
>
>Dennis
>
>>As per reply to Hilmar I read it was standalone. Then you might utilize seconds() function. It doesn't get updated by setting time in control panel. As you detect a warp in time you could set it back to correct time using winAPI.
>>PS: Use sys(2) for updated value.
>>Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform