I even tried writing the mIRC hwnd manually into the source :P
Still doesn't work.

Just so you know, it's not the first DLL I code, but I'm really stuck on this one.

Thanks for your help.