Click here to Skip to main content
15,914,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to detect that the system clock has been set backwards? Pin
Geert Delmeiren26-Sep-02 22:11
Geert Delmeiren26-Sep-02 22:11 
AnswerRe: How to detect that the system clock has been set backwards? Pin
Daniel Ferguson26-Sep-02 22:13
Daniel Ferguson26-Sep-02 22:13 
GeneralRe: How to detect that the system clock has been set backwards? Pin
Geert Delmeiren26-Sep-02 22:49
Geert Delmeiren26-Sep-02 22:49 
GeneralRe: How to detect that the system clock has been set backwards? Pin
Jon Hulatt26-Sep-02 23:04
Jon Hulatt26-Sep-02 23:04 
GeneralRe: How to detect that the system clock has been set backwards? Pin
Andreas Saurwein27-Sep-02 0:03
Andreas Saurwein27-Sep-02 0:03 
GeneralRe: How to detect that the system clock has been set backwards? Pin
Jon Hulatt27-Sep-02 0:44
Jon Hulatt27-Sep-02 0:44 
GeneralRe: How to detect that the system clock has been set backwards? Pin
Andreas Saurwein27-Sep-02 2:09
Andreas Saurwein27-Sep-02 2:09 
GeneralRe: How to detect that the system clock has been set backwards? Pin
Geert Delmeiren27-Sep-02 2:12
Geert Delmeiren27-Sep-02 2:12 
I don't think this will work.
The last accessed timestamp of the file user32.dll is updated with a date of the past,
when you set backwards the clock.
But you can't check that. The computer thinks 'now' is that date in the past.

Some more details about my question:

Time line: A1 < A2 < X < E < Y

My App is started at A1 end stopped at A2.
My app informs the user that his license will expire at E.
At time Y the user does the following:
- he sets back the clock to X
- he starts up my app

How can my app know
- the computer ever ran at Y (>E)?
- the license is expired
AnswerRe: How to detect that the system clock has been set backwards? Pin
Steve S26-Sep-02 23:32
Steve S26-Sep-02 23:32 
GeneralRe: How to detect that the system clock has been set backwards? Pin
Geert Delmeiren27-Sep-02 0:09
Geert Delmeiren27-Sep-02 0:09 
AnswerRe: How to detect that the system clock has been set backwards? Pin
Phil J Pearson27-Sep-02 2:37
Phil J Pearson27-Sep-02 2:37 
GeneralRe: How to detect that the system clock has been set backwards? Pin
Geert Delmeiren27-Sep-02 3:14
Geert Delmeiren27-Sep-02 3:14 
GeneralRe: How to detect that the system clock has been set backwards? Pin
Andreas Saurwein27-Sep-02 4:14
Andreas Saurwein27-Sep-02 4:14 
GeneralString -> float (UNICODE) Pin
Anonymous26-Sep-02 21:44
Anonymous26-Sep-02 21:44 
GeneralRe: String -> float (UNICODE) Pin
jmkhael26-Sep-02 21:56
jmkhael26-Sep-02 21:56 
GeneralRe: String -> float (UNICODE) Pin
Steve S26-Sep-02 22:04
Steve S26-Sep-02 22:04 
GeneralCAsyncSocket question Pin
Shamoon26-Sep-02 21:26
Shamoon26-Sep-02 21:26 
GeneralRe: CAsyncSocket question Pin
jmkhael26-Sep-02 21:48
jmkhael26-Sep-02 21:48 
GeneralFind First File Pin
Anonymous26-Sep-02 20:59
Anonymous26-Sep-02 20:59 
GeneralRe: Find First File Pin
Stephane Rodriguez.26-Sep-02 21:45
Stephane Rodriguez.26-Sep-02 21:45 
GeneralRe: Find First File Pin
Steve S26-Sep-02 22:11
Steve S26-Sep-02 22:11 
GeneralRe: Find First File Pin
Renjith Ramachandran27-Sep-02 2:51
Renjith Ramachandran27-Sep-02 2:51 
GeneralRe: Find First File Pin
merc27-Sep-02 14:27
merc27-Sep-02 14:27 
Generalcommand line argument Pin
Mohe26-Sep-02 20:44
Mohe26-Sep-02 20:44 
GeneralRe: command line argument Pin
Roman Fadeyev26-Sep-02 20:47
Roman Fadeyev26-Sep-02 20:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.