Click or drag to resize
Xcalibur Systems LLC Logo

TerminalServicesHelperWTSOpenServer Method

Opens a handle to the specified Remote Desktop Session Host (RD Session Host) server.

WTSOpenServer function


Namespace: Xcalibur.NativeMethods.V2.TerminalServices
Assembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax
[DllImportAttribute("wtsapi32.dll", SetLastError = true)]
public static IntPtr WTSOpenServer(
	string serverName
)

Parameters

serverName  String
Pointer to a null-terminated string specifying the NetBIOS name of the RD Session Host server.

Return Value

IntPtr
If the function succeeds, the return value is nonzero. To determine whether the function adjusted all of the specified privileges, call .
See Also