11
Answers

window service: How to get timestamp when user logged in into the system

Vijay Yadav

Vijay Yadav

13y
4.5k
1
Hi all,

I want to write a window service that send the email as soon as the user will logged in into the system(Computer).

I want to know the user and the time i.e. at what time he/she logs in.

With the help of system.security,principal i get the current user but how to get the loggin time.

Pease help!
Answers (11)