Solved

how to know user changes the clock

Posted on 2010-11-28
3
268 Views
Last Modified: 2012-06-21

How can I distiguish the event which user requests from the event which
'window system' requests?

I use 'SystemEvents.TimeChanged' event in order to recognize if user changes the clock.
However in some cases 'window system' seems to change the clock.
This happens once a week in case of Vista.

 I want to use this event only when user changes the clock.
How can I distinguish those events?

0
Comment
Question by:HFunakawa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 1

Expert Comment

by:Ken Lynch
ID: 34229185
This is the system events info I got when I did a manual time change on a vista system:

Look for
Source:       Kernel-General                  
Logged:       Date & Time
EventID:      1                        
Task Category:      None
Level:            Information                  
Keywords:      Time

 time-chg-event-vwr.txt
0
 
LVL 5

Accepted Solution

by:
andr_gin earned 500 total points
ID: 34229430
1.) I think the changing of time every week is the synchronization of the clock with a timeserver.
It is not a clean solution, but you can check for the amount of the change. If the time changes by more than 1 minute, it must be the user because the clock will not be 1 minute wrong in one week. Otherwise it can be the system.

2.) The time can also be changed by the user in the BIOS. Then the operating system can not see this change. You should also consider that

3.) Maybe summer/winter time is also a change.
0
 

Author Comment

by:HFunakawa
ID: 34236001
thanks for answers.

i made a program that checked the time changing more than 1 minute or not.
it seems to work!

thank you all answers again.
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question