在用代码进行远程连接的时候需要设置全屏属性,此时调用 IMsTscSecuredSettings::put_Fullscreen方法参数设置为TRUE即可。
IMsRdpClient::FullScreen property
Syntax
HRESULT put_FullScreen( [in] VARIANT_BOOL fFullScreen ); HRESULT get_FullScreen( [out] VARIANT_BOOL *pfFullScreen );
Property value
True to enter full-screen mode, False to leave full-screen mode and return to window mode.
Error codes
If the methods succeed, S_OK is returned. Any other HRESULT value indicates that the call failed.
You can set this property when the control is connected.
You must call the IMsRdpClientNonScriptable3::put_ConnectionBarText method before you call the IMsTscSecuredSettings::put_Fullscreen method or theIMsRdpClient::put_Fullscreen method.
For more information about Remote Desktop Web Connection, see Requirements for Remote Desktop Web Connection.