VcsAfterLogin
Return to Introduction  Previous page  Next page
If this method is exported from the DLL, it will be called after a user has successfully logged in.

VcsAfterLogin

procedure VcsAfterLogin( UserID: Cardinal; pName, pComputer: PChar ); stdcall; export;  

This is a notification event only and none of the values passed in can be modified.

Parameters

Name
Description
UserID
The ID of the user
pName
The Name of the user
pComputer
The name of the machine that the user logged in from



Example (Delphi)

The following method is called after a User has successfully logged in and simply logs the action to a local text file:

procedure VcsAfterLogin( UserID: Cardinal; pName, pComputer: PChar );  
begin  
  LogIt( Format( '%s - ''%s'' Logged IN from Computer ''%s''', [ DateTimeToStr( Now ), String( pName ), String( pComputer ) ] ) );  
end;  
 

 


© 1995-2018 MCN Software