TLSLicenseEnumNext function
Continues from a previous call to the TLSLicenseEnumBegin function and returns the next license that is installed on a Remote Desktop license server that matches the search criteria.
Syntax
DWORD WINAPI TLSLicenseEnumNext( _In_ TLS_HANDLE hHandle, _In_ LSLicense *lpLicense, _Out_ PDWORD pdwErrCode );
Parameters
- hHandle [in]
-
Handle to a Remote Desktop license server. Specify a handle that is opened by the TLSConnectToLsServer function.
- lpLicense [in]
-
Pointer to a LSLicense structure that receives the next license that matches the search criteria.
- pdwErrCode [out]
-
Pointer to a variable that receives one of the following error codes on return.
-
Call is successful.
-
No more licenses match the search criteria.
-
Internal error in license server.
-
The calling sequence was not valid. Must call the TLSLicenseEnumBegin() function before this.
-
License server is too busy to process the request.
-
Cannot process the request because of insufficient memory.
Return value
This function returns the following possible return values.
- RPC_S_OK
-
The call succeeded. Check the value of the pdwErrCode parameter to get the return code for the call.
- RPC_S_INVALID_ARG
-
The argument was not valid.
Requirements
|
Minimum supported client |
Windows Vista |
|---|---|
|
Minimum supported server |
Windows Server 2008 |
|
DLL |
|
See also