WTSEnumerateServers
[DllImport("wtsapi32.dll", SetLastError = true)]
public static extern bool WTSEnumerateServers(
string pDomainName,
int Reserved,
int Version,
ref IntPtr ppServerInfo,
ref int pCount
);
Microsoft documentation: Link
Last updated