delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/04/06/16:52:44

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Tue, 6 Apr 2004 22:52:14 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Problem with w32api/*.h
Message-ID: <20040406205214.GE20805@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <BAY8-F1047QZZZ8svmA00032dbd AT hotmail DOT com>
Mime-Version: 1.0
In-Reply-To: <BAY8-F1047QZZZ8svmA00032dbd@hotmail.com>
User-Agent: Mutt/1.4.2i

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 AT cygwin DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019