Rediger

Del via


TLSConnectToLsServer function

Opens a handle to the specified Remote Desktop license server.

Note

This function has no associated header file or import library. To call this function, you must create a user-defined header file and use the LoadLibrary and GetProcAddress functions to dynamically link to Mstlsapi.dll.

Syntax

TLS_HANDLE WINAPI TLSConnectToLsServer(
  _In_ LPTSTR pszLsServer
);

Parameters

pszLsServer [in]

Pointer to a null-terminated string that specifies the NetBIOS name of the Remote Desktop license server. If the value of this parameter is NULL, the specified server is the local computer.

Return value

If the function succeeds, the return value is a handle to the specified server.

If the function fails, the return value is NULL. To get extended error information, call the GetLastError function.

Remarks

When you have finished using the handle that is returned by the TLSConnectToLsServer function, release it by calling the TLSDisconnectFromServer function.

Requirements

Requirement Value
Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
DLL
Mstlsapi.dll

See also

TLS_HANDLE

TLSDisconnectFromServer