VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

This is a simple program that will detect the username, date and time everytime a user logs in to h

Jay Villaflor  (2 Submissions)   Encryption   VB 6.0   Unknown Difficulty   Fri 3rd December 2004   Mon 8th February 2021

This is a simple program that will detect the username, date and time everytime a user logs in to his computer.

API Declarations


'this folder. In the form you need not create any componets just
'write the code.In form properties make -- Visible -False.
'Then create a exe of the project. Keep this exe in 'Startup' folder
'of your computer.It will work. Each time your computer is opened
'a log record will be kept in the 'log.fil' file.
'View this file using notepad or any word editor.
'--------------------------
'Place the following code under a Module
'--------------------------
Public Declare Function GetUserNameA Lib "advapi32.dll" (ByVal lpBuffer As String, nSize As Long) As Long

Public Function GetUserName() As String
Dim UserName As String * 255

Call GetUserNameA(UserName, 255)
GetUserName = Left$(UserName, InStr(UserName, Chr$(0)) - 1)

End Function


Rate This is a simple program that will detect the username, date and time everytime a user logs in to h (2(2 Vote))
This is a simple program that will detect the username, date and time everytime a user logs in to h.bas

This is a simple program that will detect the username, date and time everytime a user logs in to h Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters