for windows nt, should i use
GetComputerName or GetComputerNameEx
Printable View
for windows nt, should i use
GetComputerName or GetComputerNameEx
GetComputerNameEx also does things like retrieve the cluster name if your machine is in a cluster, or DNSDomain of the local computer, for what you want (assuming you just want the name) GetComputerName should be sufficient
And GetComputerNameEx is only available iin Windows 2000 (forgot that bit )