This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Problem with w32api/*.h
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 6 Apr 2004 22:52:14 +0200
- Subject: Re: Problem with w32api/*.h
- References: <BAY8-F1047QZZZ8svmA00032dbd@hotmail.com>
- Reply-to: cygwin at cygwin dot com
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/