Solved

how to know user changes the clock

Posted on 2010-11-28
3
262 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
3 Comments
 
LVL 1

Expert Comment

by:ktlent
Comment Utility
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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
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…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

763 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now