How to get Login/Logoff Information in C#?

  • Thread starter Thread starter arlef
  • Start date Start date
A

arlef

Does anybody know how do i get the various logon and logoff times for winxp
in c#?

Thanks

Arlef
 
arlef said:
Does anybody know how do i get the various logon and logoff times for
winxp
in c#?

Thanks

Arlef

Use local policies and turn on "Logon auditing" and read the messages
(Message ID 551=Logoff, 528 =Logon) from the Security eventlog.

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top