This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem with w32api/*.h


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]