|
-
May 4th, 2003, 05:05 PM
#1
Thread Starter
Fanatic Member
Checking when a user last logged on.... STILL UNRESOLVED
In 2K / XP, is it possible via an API or something, to check to see when a user last logged on?
I'll be writing it in to an app i'm creating, so any help would be great.
Regards,
Paul.
Last edited by VisionIT; May 5th, 2003 at 05:51 AM.
-
May 5th, 2003, 04:55 AM
#2
Thread Starter
Fanatic Member
-
May 6th, 2003, 02:52 AM
#3
Hyperactive Member
VB Code:
Private Sub Form_Load()
Dim User as string
Dim filnr As Integer
User = Environ("userName")
filnr = FreeFile
Open App.Path & "\Uselogger.txt" For Append As filnr
Print #filnr, User & " Logged on at " & Date & " " & Time
Close filnr
End Sub
-
May 6th, 2003, 03:21 AM
#4
Thread Starter
Fanatic Member
Good idea... and i'de already programmed something like that...
But a program can be overwritten or the process stopped and therefore wouldn't show in the logs.
If you stopped the windows kernel... you couldn't log in. There must be a log somewhere from windows surely.
Regards,
Paul.
-
May 8th, 2003, 01:18 AM
#5
Hyperactive Member
Why did you ask for help with creating a logfile when you say that there already exist the logfile you want?
-
May 8th, 2003, 03:03 AM
#6
Thread Starter
Fanatic Member
Thank you for the help...
But at no point during my post did i ask how to create a logfile. Anyone with any VB knowledge should know that!!!
Anyone else with knowledge of the windows kernel?
Regards,
Paul.
-
May 8th, 2003, 04:47 AM
#7
Hyperactive Member
Originally posted by VisionIT
Anyone with any VB knowledge should know that!!!
I do have some VB knowledge.
In 2K / XP, is it possible via an API or something, to check to see when a user last logged on?
My code created a logfile where you could see when a user last logged on. Right?
Just an idea: If you go to "C:\Documents and Settings\" you got some subfolders where you got some dat and logfiles. Maybe you can read the datestamp or something like that from this files...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|