getOSDomainName()
The function getOSDomainName() returns the domain name under Windows and Linux, regardless which user is currently logged in.
Synopsis
string getOSDomainName();
Synopsis
Parameter | Meaning |
---|---|
- |
Return Value
The domain name.
Description
The function getOSDomainName() returns the domain name under Windows and Linux, regardless which user is currently logged in. Under Linux the NIS/YP domain name is returned.
Example
The function returns the current domain.
main()
{
string domain;
getCurrentDomainName(domain);
DebugN(domain);
}
Assignment
User administration, Waiting Control function
Availability
CTRL
See also
getAllOSGroups(), getCurrentOSUser(), getAllOSUsers(), getWindowsEvents() and verifyOSUser()