Mega Search
23.2 Million


Sign Up

Make a donation  
last time a user shut down Windows?  
News Group: borland.public.delphi.nativeapi.win32

Is this stored in the registry somewhere? Or is there an API call to get it?

I want to be able to determine when the user last shut down this machine ... 
thanks. 



Vote for best question.
Score: 0  # Vote:  0
Date Posted: 19-Dec-2007, at 3:03 PM EST
From: John Provine
 
Re: last time a user shut down Windows?  
News Group: borland.public.delphi.nativeapi.win32
The event log may give you this information. Possibly searching for an
specific Event ID and looking for the most recent date/time?

"John Provine"  wrote in message
news:4769951e$1@newsgroups.borland.com...
> Is this stored in the registry somewhere? Or is there an API call to get
it?
>
> I want to be able to determine when the user last shut down this machine
....
> thanks.
>
>



Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 20-Dec-2007, at 10:56 AM EST
From: Dominic
 
Re: last time a user shut down Windows?  
News Group: borland.public.delphi.nativeapi.win32
It is not that easy to see when a user shut down the system but you
can easily tell when they logged off and logged on to the system.


Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 19-Dec-2007, at 7:15 PM EST
From: Dennis Passmore
 
Re: last time a user shut down Windows?  
News Group: borland.public.delphi.nativeapi.win32
"John Provine"  wrote in message 
news:4769951e$1@newsgroups.borland.com...

> Is this stored in the registry somewhere?

Not that I am aware of.

> Or is there an API call to get it?

No.

> I want to be able to determine when the user last shut down this machine 
> ...

Then you will have to keep track of it manually, such as by writing your own 
service that queries the current date/time in its OnShutdown event.


Gambit 



Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 19-Dec-2007, at 2:52 PM EST
From: Remy Lebeau \(TeamB\)