Change a few types to match you-know-who's declarations. HTREEITEM is a struct _TREEITEM FAR* GetDIBits passes a LPVOID for the bitmap data, not LPSTR. Adjustment of Wine C code to match the new types included.