Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2i On Apr 6 16:43, Thomas Chadwick wrote: > I'm having a problem building an app which #includes . 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 ... 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/