[3/13] wineconsole and kernel32: set GetLargestConsoleWindowSize based on screen resolution
Hugh McMaster
hugh.mcmaster at masterindexing.com
Tue Apr 9 08:20:59 CDT 2013
Eric Pouech wrote:
>Le 08/04/2013 16:03, Nikolay Sivov a écrit :
>>If you need to access registry from kernel32 you'll need to use ntdll calls directly.
>>This functionality belongs to advapi32. Do you really need anything more than ntdll calls provide?
>and on top of that, using registry as a way to exchange information
>between wineconsole and kernel is not the right thing to do the correct way is to:
>- enhance the wine server protocol to grab max win size in kernel32
>from wine server
>- enhance wineconsole to set the max wine size into wine server (and to
>recompute it when there's a screen resize event)
This is just the beginning, but do you mean something along the lines of this code?
SERVER_START_REQ( get_desktop_workarea )
{
if(!wine_server_call_err( req ))
{
int screen_width = reply->workarea.right;
int screen_height = reply->workarea.bottom;
}
}
SERVER_END_REQ;
More information about the wine-devel
mailing list