Assuming I already have an opened RDP instance for a machine...
I'm trying to resize it and put it is specific location on window using the below code:
ShowWindow(mstscInstance.MainWindowHandle, SW_RESTORE); SetForegroundWindow(mstscInstance.MainWindowHandle); MoveWindow(mstscInstance.MainWindowHandle, machine.Left, machine.Top, machine.Width, machine.Height, true);
But, unfortunately it is not working (The RDP instance still maximized).
Can you please assist?