help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



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

GetDomainName

Return current domain name

Declaration

Source position: oldlinux.pp line 1472

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 oldlinux;

begin
  Writeln ('Domain name of this machine is : ',GetDomainName);
end.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505