Problem in getting system domain or connected workgroup name.
General and Desktop
3
Posts
2
Posters
3.1k
Views
1
Watching
-
wrote on 10 Jan 2012, 13:26 last edited by
I want to get my system domian name or my local network connected domain name or work group name.
I used the following code to get the same .. but its always returning empty string ""Please let me know whether i am doing anything wrong on this.
@
QHostInfo::localDomainName();
@ -
wrote on 10 Jan 2012, 13:31 last edited by
[quote]QString QHostInfo::localDomainName () [static]
Returns the DNS domain of this machine.
Note: DNS domains are not related to domain names found in Windows networks.[/quote]As far as I know you will have to resort to platform-specific code, like "NetWkstaGetInfo":http://goo.gl/TD0mL.
-
wrote on 10 Jan 2012, 14:16 last edited by
Thanks Lukas..for your valuable inputs.
1/3