[Overview][Constants][Types][Procedures and functions][Variables][Index] Reference for unit 'Unix' (#rtl)

GetDomainName

Return current domain name

Declaration

Source position: unix.pp line 124

function GetDomainName: String;

Description

Get the domain name of the machine on which the process is running. An empty string is returned if the domain is not set.

Errors

None.

See also

GetHostName

  

Return host name

Example

Program Example39;

{ Program to demonstrate the GetDomainName function. }

Uses Unix;

begin
  Writeln ('Domain name of this machine is : ',GetDomainName);
end.
The latest version of this document can be found at lazarus-ccr.sourceforge.net.