JCL Help:GetDomainName

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns the name of the domain where the current user account resides.


Pascal

 function GetDomainName: string;


Return Value

The name of the domain where the user account resides, or an empty string if the function fails.


Description

GetDomainName returns the name of the domain where the user account associated with the calling thread resides. In client application this will usually be the interactively logged on user, but in server applications this could be any user that is currently impersonated.


See Also

GetUserDomainName GetLocalUserName


About

Unit

JclSysInfo


Donator

Peter Friese (Win32) André Snepvangers (Unix)


Notes

The function determines the name of the domain by checking which domain the currently logged in user is belonging to. Under Win9x/ME, the result will be an empty string.


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