JCL Help:GetLocalUserName
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: GetLocalUserName Function
[+] JclSysInfo.pas Functions
Search in JCL Help
Search in all projects
Summary
Returns the name of the current user.
Pascal
function GetLocalUserName: string;
Return Value
The local user name or an empty string on failure.
Description
Returns the name of the user associated with the current thread. That is the user currently logged on to the system. If the current thread is impersonating a client, the function returns the name of that client.
See Also
About
Unit
Donator
Nick Hodges (Win32) André Snepvangers (Unix)
Notes
If you're running Windows 2000 you can use the GetUserNameEx function to control the format of the returned name.
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page