[PATCH 10/11] server: add calls to get/set menu item info

Robert Shearman rob at codeweavers.com
Fri Jun 30 05:37:44 CDT 2006


H. Verbeet wrote:

> On 29/06/06, Thomas Kho <tkho at ucla.edu> wrote:
>
>> + at REQ(get_menu_item_info)
>> +    user_handle_t  handle;
>> +    unsigned int   pos;
>> + at REPLY
>> +    unsigned int   required_size;
>> +
>> +    unsigned int type;
>> +    unsigned int state;
>> +    unsigned int id;
>> +    user_handle_t submenu;
>> +    user_handle_t checkbit;
>> +    user_handle_t uncheckbit;
>> +    void* text;
>> +    unsigned long itemdata;
>> +    void* typedata;
>> +    user_handle_t bmpitem;
>> +
>> +    rectangle_t rect;
>> +    unsigned int xTab;
>> +    dimension_t bmpsize;
>> +
>> +    VARARG(text,unicode_str);
>> + at END
>
> HBITMAPs aren't technically user handles, and afaik you can't pass GDI
> handles between processes like that. At least, not on Windows.


You can pass HBITMAPs between processes on Windows, although you are 
correct in saying that they aren't user handles. Of course, passing 
bitmap handles between processes on Wine won't work yet.

Thomas, can you regenerate this patch using "void *" for bmpitem (or 
perhaps add a new gdi_handle_t type)?

-- 
Rob Shearman




More information about the wine-devel mailing list