Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

TLSKeyPackEnumNext function

Continues from a previous call to the TLSKeyPackEnumBegin function and returns the next key pack that is installed on a Remote Desktop license server that matches the search criteria.

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


DWORD WINAPI TLSKeyPackEnumNext(
  _In_   TLS_HANDLE hHandle,
  _In_   LsKeyPack *lpKeyPack,
  _Out_  PDWORD pdwErrCode
);

Parameters

hHandle [in]

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

lpKeyPack [in]

Pointer to a LSKeyPack structure that receives the next key pack that matches the search criteria.

pdwErrCode [out]

Pointer to a variable that receives one of the following error codes on return.

ValueMeaning
LSERVER_S_SUCCESS
0

Call is successful.

LSERVER_I_NO_MORE_DATA
4001

No more key packs match the search criteria.

LSERVER_E_INTERNAL_ERROR
5001

Internal error in license server.

LSERVER_E_INVALID_SEQUENCE
5006

The calling sequence was not valid. Must call the TLSKeyPackEnumBegin() function before this.

LSERVER_E_SERVER_BUSY
5007

License server is too busy to process the request.

LSERVER_E_OUTOFMEMORY
5008

Cannot process the request because of insufficient memory.

 

Return value

This function returns the following possible return values.

Return codeDescription
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 XP

Minimum supported server

Windows Server 2003

DLL

Mstlsapi.dll

See also

LSKeyPack
TLSConnectToLsServer
TLSKeyPackEnumBegin
TLSKeyPackEnumEnd

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.