<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.5pt;
        font-family:Consolas;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:Consolas;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-AU link=blue vlink=purple><div class=WordSection1><p class=MsoPlainText>Any help for this?<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>--------------------------------------------------------------<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>I’m testing support for GetConsoleScreenBufferInfoEx.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>At the moment, I’ve extended the screen_buffer struct in server/console.c to look like this:<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>struct screen_buffer<o:p></o:p></p><p class=MsoPlainText>{<o:p></o:p></p><p class=MsoPlainText>    struct object         obj;           /* object header */<o:p></o:p></p><p class=MsoPlainText>    struct list           entry;         /* entry in list of all screen buffers */<o:p></o:p></p><p class=MsoPlainText>    struct console_input *input;         /* associated console input */<o:p></o:p></p><p class=MsoPlainText>    int                   mode;          /* output mode */<o:p></o:p></p><p class=MsoPlainText>    int                   cursor_size;   /* size of cursor (percentage filled) */<o:p></o:p></p><p class=MsoPlainText>    int                   cursor_visible;/* cursor visibility flag */<o:p></o:p></p><p class=MsoPlainText>    int                   cursor_x;      /* position of cursor */<o:p></o:p></p><p class=MsoPlainText>    int                   cursor_y;      /* position of cursor */<o:p></o:p></p><p class=MsoPlainText>    int                   width;         /* size (w-h) of the screen buffer */<o:p></o:p></p><p class=MsoPlainText>    int                   height;<o:p></o:p></p><p class=MsoPlainText>    int                   max_width;     /* size (w-h) of the window given font size */<o:p></o:p></p><p class=MsoPlainText>    int                   max_height;<o:p></o:p></p><p class=MsoPlainText>    char_info_t          *data;          /* the data for each cell - a width x height matrix */<o:p></o:p></p><p class=MsoPlainText>    unsigned short        attr;          /* default attribute for screen buffer */<o:p></o:p></p><p class=MsoPlainText>    rectangle_t           win;           /* current visible window on the screen buffer *<o:p></o:p></p><p class=MsoPlainText>                                * as seen in wineconsole */<o:p></o:p></p><p class=MsoPlainText>    struct fd            *fd;            /* for bare console, attached output fd */<o:p></o:p></p><p class=MsoPlainText>    unsigned short        popup_attr;    /* the console popup fill attribute */<o:p></o:p></p><p class=MsoPlainText>    BOOL                  fullscreen;    /* indicates whether fullscreen mode is supported */<o:p></o:p></p><p class=MsoPlainText>    COLORREF              colortable[16];/* an array of DWORD values */<o:p></o:p></p><p class=MsoPlainText>};<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>In server/protocol.def I have:<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>@REQ(get_console_output_info)<o:p></o:p></p><p class=MsoPlainText>    obj_handle_t handle;        /* handle to the console */<o:p></o:p></p><p class=MsoPlainText>@REPLY<o:p></o:p></p><p class=MsoPlainText>    short int    cursor_size;   /* size of cursor (percentage filled) */<o:p></o:p></p><p class=MsoPlainText>    short int    cursor_visible;/* cursor visibility flag */<o:p></o:p></p><p class=MsoPlainText>    short int    cursor_x;      /* position of cursor (x, y) */<o:p></o:p></p><p class=MsoPlainText>    short int    cursor_y;<o:p></o:p></p><p class=MsoPlainText>    short int    width;         /* width of the screen buffer */<o:p></o:p></p><p class=MsoPlainText>    short int    height;        /* height of the screen buffer */<o:p></o:p></p><p class=MsoPlainText>    short int    attr;          /* default attribute */<o:p></o:p></p><p class=MsoPlainText>    short int    win_left;      /* window actually displayed by renderer */<o:p></o:p></p><p class=MsoPlainText>    short int    win_top;       /* the rect area is expressed within the */<o:p></o:p></p><p class=MsoPlainText>    short int    win_right;     /* boundaries of the screen buffer */<o:p></o:p></p><p class=MsoPlainText>    short int    win_bottom;<o:p></o:p></p><p class=MsoPlainText>    short int    max_width;     /* maximum size (width x height) for the window */<o:p></o:p></p><p class=MsoPlainText>    short int    max_height;<o:p></o:p></p><p class=MsoPlainText>    short int    popup_attr;    /* the console popup fill attribute */<o:p></o:p></p><p class=MsoPlainText>    short int    fullscreen;    /* indicates whether fullscreen mode is supported */<o:p></o:p></p><p class=MsoPlainText>--> type???      colortable;    /* a COLORREF array of DWORD values */<o:p></o:p></p><p class=MsoPlainText>@END<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>While colortable is a COLORREF array, protocol.def does not allow types such as DWORD, COLORREF, etc.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>What type should colortable be given to pass tools/make_requests?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>