something I found that might help GDI hackers

Dmitry Timoshkov dmitry at
Wed Sep 10 10:47:03 CDT 2003

"Jonathan Wilson" <jonwil at> wrote:

> struct GDIHandleBitFields {
> unsigned long Index:0:10;
> unsigned long Type:10:5;
> unsigned long AltType:15:2;
> unsigned long Stock:17:1;
> unsigned long Unique:18:8;
> };
> This might help people trying to understand the inner workings of GDI...
> Its current as of windows XP SP1.

Internal presentation of GDI handles is well described in the Feng Yuan's
book "Windows Graphics Programming". The struct above has a good coincidence
with his findings.

Among other things that book has a good article about internal presentation
of regions.


More information about the wine-devel mailing list