I want to run the VoxEdit.exe application from https://www.sandbox.game with a custom size.
As far as I know, the start command can only run with /MAX and /MIN arguments. I don't know in which programming language it is built and it may not allow resizing. The question remains valid as for any windows application:
Is it possible to start a windows 10 application with custom sizes?
CodePudding user response:
The STARTUPINFO struct used by CreateProcess has the STARTF_USEPOSITION and STARTF_USESIZE flags and members to set values for them. The system will only respect these values if the application creates its main window as overlapped and with CW_USEDEFAULT (Notepad etc.).
I don't see these options in ProcessStartInfo so you will have to P/Invoke...
