[PATCH] w32api fixes

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] w32api fixes

Michael James-9
Some corrections to w32api I needed while porting an application to
mingw in this patch.

Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/winsup/w32api/ChangeLog,v
retrieving revision 1.985
diff -r1.985 ChangeLog
0a1,12

> 2009-02-08  Michael James  <[hidden email]>
>
>       * include/wingdi.h (CLEARTYPE_QUALITY): Define.
>       * include/winuser.h (WM_KEYLAST): Alternative definition when
>       _WIN32_WINNT >= 0x0501.
>       (WM_UNICHAR,UNICODE_NOCHAR): Define.
>       * lib/comctl32.def (DefSubclassProc@16,GetWindowSubclass@16,
>       RemoveWindowSubclass@12): Add exports.
>       * lib/gdi32.def (GetDCBrushColor@4,GetDCPenColor@4): Add exports.
>       * lib/msimg32.def (GetDCBrushColor@4,GetDCPenColor@4): Remove exports,
>       belong in gdi32.def originally in msimg32 due to bad documentation.
>
Index: include/wingdi.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/wingdi.h,v
retrieving revision 1.61
diff -r1.61 wingdi.h
361c361
< //http://www.pinvoke.net/default.aspx/Structures/LOGFONT.html
---
> /* http://www.pinvoke.net/default.aspx/Structures/LOGFONT.html */
374a375,377
> #if _WIN32_WINNT >= 0x0500
> #define CLEARTYPE_QUALITY 5
> #endif
Index: include/winuser.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/winuser.h,v
retrieving revision 1.128
diff -r1.128 winuser.h
1556a1557,1561
> #if _WIN32_WINNT >= 0x0501
> #define WM_KEYLAST 265
> #define WM_UNICHAR 265
> #define UNICODE_NOCHAR 0xffff
> #else
1557a1563
> #endif
Index: lib/comctl32.def
===================================================================
RCS file: /cvs/src/src/winsup/w32api/lib/comctl32.def,v
retrieving revision 1.5
diff -r1.5 comctl32.def
42a43
> DefSubclassProc@16
57a59
> GetWindowSubclass@16
103a106
> RemoveWindowSubclass@12
Index: lib/gdi32.def
===================================================================
RCS file: /cvs/src/src/winsup/w32api/lib/gdi32.def,v
retrieving revision 1.9
diff -r1.9 gdi32.def
145a146
> GetDCBrushColor@4
146a148
> GetDCPenColor@4
Index: lib/msimg32.def
===================================================================
RCS file: /cvs/src/src/winsup/w32api/lib/msimg32.def,v
retrieving revision 1.2
diff -r1.2 msimg32.def
4,5d3
< GetDCBrushColor@4
< GetDCPenColor@4