IMsRdpClient8::Reconnect method
Reconnects to the remote session with the new desktop width and height. The control must already be connected to a remote session for this method to succeed.
Syntax
HRESULT Reconnect(
[in] ULONG ulWidth,
[in] ULONG ulHeight,
[out, retval] ControlReconnectStatus *pReconnectStatus
);
Parameters
-
ulWidth [in]
-
Type: ULONG
The new desktop width, in pixels. See the DesktopWidth property for value restrictions.
-
ulHeight [in]
-
Type: ULONG
The new desktop height, in pixels. See the DesktopHeight property for value restrictions.
-
pReconnectStatus [out, retval]
-
Type: ControlReconnectStatus*
A pointer to a ControlReconnectStatus variable that receives the status of the reconnect operation.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 8 |
Minimum supported server |
Windows Server 2012 |
Type library |
|
DLL |
|
IID |
IID_IMsRdpClient8 is defined as 4247E044-9271-43A9-BC49-E2AD9E855D62 |