Problem with w32api/*.h
Corinna Vinschen
corinna-cygwin@cygwin.com
Tue Apr 6 20:52:00 GMT 2004
On Apr 6 16:43, Thomas Chadwick wrote:
> I'm having a problem building an app which #includes <windows.h>. It
> depends on some #defines which are inside a #if (_WIN32_WINNT >= 0x0403 ..
> #endif clause. (to be specific, it needs the typedef for LPINPUT in
> winuser.h). My build environment is Windows 2000 SP4, and a quick test
> tells me that _WIN32_WINNT = 0x0400.
>
> Advice?
If the application is supposed to run also under NT 4, don't use these
functions or load them at run time (LoadLibrary/GetProcAddress).
Otherwise set the minimal required version before including windows.h:
#define _WIN32_WINNT 0x0500 /* For W2K */
#include <windows.h>
...
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list