From: <dan...@ya...> - 2002-01-17 21:18:09
|
--- Earnie Boyd <ear...@ya...> wrote: > Private email to me is inappropriate for a list question. I've > redirected your query to the mingw-users list for your convenience. > > Earnie. > Better yet, submit a patch at mingw's SourceForge site: http://sourceforge.net/tracker/?group_id=2435&atid=302435 That way the information won't get lost in a mailing list and is more likely to be used. Thanks for your input though. I've used the defines you've supplied to patch the w32api headers in CVS repository. Danny > Marcus Geelnard wrote: > > > > Hello! > > > > I downloaded the 1.2 release of w32api (I don't know if you > > are the maintainer, but I made a qualified guess). > > > > My problem is that I have code that uses the WH_KEYBOARD_LL > > lowlevel keyboard hook of Windows NT. In earlier versions of > > w32api the constant WH_KEYBOARD_LL was not defined, so then > > I could do this: > > > > #ifndef WH_KEYBOARD_LL > > #define WH_KEYBOARD_LL 13 > > typedef struct tagKBDLLHOOKSTRUCT { > > DWORD vkCode; > > DWORD scanCode; > > DWORD flags; > > DWORD time; > > DWORD dwExtraInfo; > > } KBDLLHOOKSTRUCT, FAR *LPKBDLLHOOKSTRUCT, *PKBDLLHOOKSTRUCT; > > #endif // WH_KEYBOARD_LL > > > > Well, now it IS defined, but the KBDLLHOOKSTRUCT is NOT > > defined, so my code fails (I have no way of knowing if the > > KBDLLHOOKSTRUCT types have been typedef:ed). I am hoping for > > a fix soon... > > > > While I'm at it, here are some other def's that are not > > included in w32api yet: > > > > #define LLKHF_ALTDOWN 0x00000020 > > (related to WH_KEYBOARD_LL) > > > > #define SPI_SETSCREENSAVERRUNNING 97 > > (used as a parameter to SystemParametersInfo) > > > > ...and here's a snippet from my code (don't know if any/all > > of these are missing in the present version of w32api): > > > > #ifndef CDS_FULLSCREEN > > #define CDS_FULLSCREEN 4 > > #endif > > #ifndef PFD_GENERIC_ACCELERATED > > #define PFD_GENERIC_ACCELERATED 0x00001000 > > #endif > > #ifndef PFD_DEPTH_DONTCARE > > #define PFD_DEPTH_DONTCARE 0x20000000 > > #endif > > #ifndef ENUM_CURRENT_SETTINGS > > #define ENUM_CURRENT_SETTINGS -1 > > #endif > > #ifndef ENUM_REGISTRY_SETTINGS > > #define ENUM_REGISTRY_SETTINGS -2 > > #endif > > > > Regards, > > > > Marcus > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > > _______________________________________________ > MinGW-users mailing list > Min...@li... > > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users http://my.yahoo.com.au - My Yahoo! - It's My Yahoo! Get your own! |