In a virtual box, the screen resolution can be anything - even something strange, like 993x451, etc. I tried changing it using pywin32, but I could not:
>>> dm = win32api.EnumDisplaySettings(None, 0) >>> dm.PelsHeight = 451 >>> dm.PelsWidth = 950 >>> win32api.ChangeDisplaySettings(dm, 0) -2L
which ends:
DISP_CHANGE_BADMODE
any help?
The way I found this is to enable automatic resizing of the client from the guest OS. Then, in the host OS, programmatically resize the VM window. This will change the resolution.
Have you configured the virtual machine to actually advertise this mode in the OS?
edit: VirtualBox , . (. ), . VESA VESA. , , , . ( smdline, , ) , YMMV.
, : VBoxManage controlvm
, : VBoxManage setextradata global GUI/MaxGuestResolution xres, yres
VirtualBox ? .
Source: https://habr.com/ru/post/1716363/More articles:Android ListView Understanding - androidLucene search results are sorted by an individual list of orders (unique to each user) - javaVS2010 WPF not working well inside Windows7 virtual machine? - virtual-machineGoogle Maps API: create a storage locator - javascriptGoogle Maps API, all markers opening the same window - javascriptCleaning connection string with network packet analyzer - securityGoogle Maps The same text appears in the info window when using multiple markers - javascriptHow to call a public function in Javascript namesapce - javascriptmySQL сортирует подчеркивание последним - javascriptA look to clear the site - screen-scrapingAll Articles