TLSGetServerCertificate function
Returns the certificate of the Remote Desktop license server.
Syntax
DWORD WINAPI TLSGetServerCertificate( _In_ TLS_HANDLE hHandle, _In_ BOOL bSignCert, _Out_ LPBYTE *ppbCertBlob, _Out_ LPDWORD lpdwCertBlobLen, _Out_ PDWORD pdwErrCode );
Parameters
- hHandle [in]
-
Handle to a Remote Desktop license server that is opened by a call to the TLSConnectToLsServer function.
- bSignCert [in]
-
TRUE if signature certificate, FALSE if exchange certificate.
- ppbCertBlob [out]
-
Pointer to a variable that receives a pointer to a buffer that contains the certificate.
- lpdwCertBlobLen [out]
-
Pointer to a variable that receives the size of the certificate that is returned.
- pdwErrCode [out]
-
Pointer to a variable that receives the error code.
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 invalid.
Requirements
|
Minimum supported client |
Windows Vista |
|---|---|
|
Minimum supported server |
Windows Server 2008 |
|
DLL |
|
See also