Hooks do not work?

JonY 10walls@gmail.com
Sat Oct 26 09:40:00 GMT 2013


On 10/26/2013 14:32, niXman wrote:
> compiled as:
> gcc hook.c -shared -oopenhook.dll
> gcc main.c -omain
> 
> run as:
> LD_PRELOAD=/home/niXman/openhook.dll ./main
> 
> But a can't see the output.
> What I am doing wrongly?
> 

LD_PRELOAD is an ELF interpreter feature and bares no effect on Windows,
so you are out of luck.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 834 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20131026/6a9115d4/attachment.sig>


More information about the Cygwin mailing list