Re: PATCH - Winuser.h
Danny Smith <[email protected]>
| Newsgroups | gmane.comp.gnu.mingw.patches |
|---|---|
| Message-ID | <000b01c270da$782afda0$8998a7cb@DANNY> |
----- Original Message ----- From: "Steven Edwards" <Steven_Ed4153-/[email protected]> To: <[email protected]> Sent: Thursday, 10 October 2002 18:47 Subject: [MinGW-patches] PATCH - Winuser.h > 2002-10-10 "KJK::Hyperion" <[email protected]> > * include/winuser.h (MONITOR_DEFAULTTONULL, TPM_RECURSE, > MONITOR_DEFAULTTOPRIMARY, MONITOR_DEFAULTTONEAREST, > MONITORINFOF_PRIMARY, CCHDEVICENAME): Add Defines > * include/winuser.h (NCCALCSIZE_PARAMS): Add Structure > (MONITORINFOEX): Ditto > > > > Index: winuser.h > @@ -2623,6 +2628,19 @@ > RECT rcWork; > DWORD dwFlags; > } MONITORINFO,*LPMONITORINFO; > +#define CCHDEVICENAME 32 > +#ifdef __cplusplus > +typedef struct tagMONITORINFOEX: public MONITORINFO > +{ > + TCHAR szDevice[CCHDEVICENAME]; > +} MONITORINFOEX, *LPMONITORINFOEX; > +#else > +typedef struct tagMONITORINFOEX > +{ > + MONITORINFO; > + TCHAR szDevice[CCHDEVICENAME]; > +} MONITORINFOEX, *LPMONITORINFOEX; > +#endif 1) Anonymous structs will raise warnings with -pedantic in C 2) My docs say ANSI and UNICODE versions. The TCHAR needs to be expanded into two explicit structs with A and W suffix, 3) Does "KJK::Hyperion" have a proper name. I don't like obvious pseudonyms and would like to change the earlier ChangeLog records as well. Danny ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf