InjectLibrary returns -1

c++ / delphi package - dll injection and api hooking

InjectLibrary returns -1

Postby manutai » Fri Mar 14, 2014 9:38 am

InjectLibrary returns -1, while doing system wide injection. Is it an error or success? What does it signify? Why its not a positive value, if it is a success?
Posts: 83
Joined: Sun Aug 03, 2008 1:40 am

Re: InjectLibrary returns -1

Postby madshi » Fri Mar 14, 2014 9:40 am

By definition 0 is FALSE, everything else in TRUE. You can test this in C++ by doing this:

Code: Select all
if (-1) doSomething();
Site Admin
Posts: 10008
Joined: Sun Mar 21, 2004 5:25 pm

Return to madCodeHook

Who is online

Users browsing this forum: No registered users and 6 guests