Redigera

Dela via


TLSDisconnectFromServer function

Closes an open handle to a 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

void WINAPI TLSDisconnectFromServer(
  _In_ TLS_HANDLE hHandle
);

Parameters

hHandle [in]

Handle to a Remote Desktop license server that is opened by a call to the TLSConnectToLsServer function.

Return value

This method does not return a value.

Remarks

Call the TLSDisconnectFromServer function as part of your program's clean-up routine to close all the server handles that are opened by calls to the TLSConnectToLsServer function.

Requirements

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

See also

TLS_HANDLE

TLSConnectToLsServer