Obtaining cluster name in VB.Net

Within my application I need to retrieve the computer name. I am doing this usingMy.Computer.Name which works fine.

My application MAY also run on a cluster, in this case I need the name of the cluster not the node it is running on.
I cannot find a way of doing this in VB.Net.

I have even experimented with GetComputerNameEx. Despite what the help says all of the calls return the node name not the cluster name when running on a cluster.

TIA

[621 byte] By [ChrisG_UK] at [2007-12-26]
# 1
You cannot do this using the managed networking APIs. There may be native calls that let you do this that you may have to P/Invoke into. Please check with other forums at http://www.microsoft.com/communities for more information on this query.
AmitPaka-MSFT at 2007-9-4 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...

.NET Development

Site Classified