Sets the Security layer to one of RDP Security Layer, Negotiate or SSL. The function takes one parameter that specifies the ...

Sets the Security layer to one of RDP Security Layer, Negotiate or SSL. The function takes one parameter that specifies the Security Layer: 0 = RDP Security Layer, 1 = Negotiate, 2 = SSL. Note that if current Encryption level = 1, then Security Layer = 2 setting is invalid.