content.gif menu.gif basics.gif

getOSDomainName()

The function getOSDomainName() returns the domain name under Windows and Linux (not implemented under Solaris), regardless which user is currently logged in.


Synopsis

string getOSDomainName();             

 

Parameters

Parameter

Meaning

-

 


Return value

The domain name.


Description

The function getOSDomainName() returns the domain name under Windows and Linux (not implemented under Solaris), regardless which user is currently logged in. Under Linux the NIS/YP domain name is returned.


example.gifExample


The function returns the current domain.

 

 main()
{
string domain;
getCurrentDomainName(domain);
DebugN(domain);
}


Assignment

User administration, Waiting Control function


Availability

UI, CTRL


See also

getAllOSGroups(), getCurrentOSUser(), getAllOSUsers(), getWindowsEvents() and verifyOSUser()

 

page_top.gif

 

V 3.11 SP1

Copyright ETM professional control GmbH 2013 All Rights Reserved