Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Mon, 5 Mar 2001 20:51:02 -0500 Message-Id: <200103060151.UAA06498@envy.delorie.com> X-Authentication-Warning: envy.delorie.com: dj set sender to dj AT envy DOT delorie DOT com using -f From: DJ Delorie To: jtiller AT sjm DOT com CC: cygwin AT cygwin DOT com In-reply-to: (message from Jason Tiller on Mon, 5 Mar 2001 17:45:09 -0800 (Pacific Standard Time)) Subject: Re: Patch submission for AltGr handling References: > Thanks for the tip. I do see how that works. One thing I don't > understand, though - why do you go through the code you do to load > procedure addresses instead of LoadProcAddress()'ing them? The idea is that the first time you call our stub function, it does call LoadProcAddress. Then it rewrites the stub to simply jump to the new address, and jumps back to the stub! The second time the stub is called, it has nothing but the jump in it. You can't just call the function, because you don't know what the parameters look like (well, we do, but it's not automatic like the jmp is, and jmp is faster). -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple