Patch submission for AltGr handling

DJ Delorie dj@delorie.com
Mon Mar 5 17:51:00 GMT 2001


> 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



More information about the Cygwin mailing list