delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/12/16/10:21:11

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Sun, 14 Dec 2008 13:53:45 -0500
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Fwd: 1.5.25 : Win32 API function RegisterShellWindowHook not supported
Message-ID: <20081214185345.GA4340@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <23f4d5c70812140819p1b38b91fh7ac0a032fda113cc AT mail DOT gmail DOT com> <23f4d5c70812140822j1259f237ka0466086c03b1b20 AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <23f4d5c70812140822j1259f237ka0466086c03b1b20@mail.gmail.com>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

On Sun, Dec 14, 2008 at 09:22:05AM -0700, Tim Stewart wrote:
>Environment:
>
>   cygcheck -s shows that I'm running the 1.5.25 version of cygwin1.dll.
>
>   I just updated my system a few days ago.
>
>   I'm trying to compile some C++ code using g++.
>
>Documentation for the missing API function:
>
>   http://msdn.microsoft.com/en-us/library/ms644989.aspx
>
>The Problem:
>
>   The above documentation states that the function should be located
>in winuser.h but it's not.  Its related function
>DeregisterShellWindowHook is in winuser.h.
>
>   Even if I add a hand-coded prototype for this function, I get a
>linker error stating that the RegisterShellWindowProc function was
>unresolved.  That's because it's not included in libuser32.a.
>
>Workaround:
>
>   I am using GetProcAddress to access the function.  For example:
>
>      ::GetProcAddress(::GetModuleHandle("USER32.DLL"),
>"RegisterShellHookWindow");

You probably want to report this to the MinGW folks at http://mingw.org/

The focus of this project is to provide POSIX functionality.  Windows
functions are really only an afterthought and are not guaranteed to be
fully supported.

cgf

--
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