Injecting into Win9x DOS box

c++ / delphi package - dll injection and api hooking
Post Reply
dcsoft
Posts: 380
Joined: Sat Dec 11, 2004 2:11 am
Location: San Francisco Bay Area, CA USA
Contact:

Injecting into Win9x DOS box

Post by dcsoft »

InjectLibrary() fails to inject when passed the process handle of a Win9x DOS box. I understand Win9x DOS boxes are 16-bit (not 32-bit), and that is why it fails.

Is there any way at all to inject to a Win9x DOS box?

Thanks,
David
madshi
Site Admin
Posts: 10764
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

Not really. The main problem is that DOS boxes don't allow secondary threads to be created. Because of that madCodeHook can't get control over them.

You could eventually try whether SetWindowsHookEx injects your dll into the DOS box, but I'm not sure whether it works.
Post Reply