Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GetTickCount() question

Status
Not open for further replies.

TigerFlight

Technical User
Aug 20, 2002
91
US
I know how to get it. Somewhere in the registry is stored the time since the last reboot. I can't find it. What I want to do is reset it without having to reboot the computer. If I knew where it was stored in the registry, then I could change the value.
 
Nope. GetTickCount gets it's info from a clock that it started when you boot your OS.

You may be thinking of the System Up Time counter in the performance data under HKEY_PERFORMANCE_DATA (NT/W2000/XP only), which is generally accessed through the performance monitor apis.

Note that since both GetTickCount and the counter mentioned above are defined as returning the system up time. Even if you COULD change them, you need to ask SHOULD you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top