Better error codes for madCodeHook functions

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

Better error codes for madCodeHook functions

Postby _NN_ » Sun Jul 15, 2018 6:50 am

Did you consider returning error code instead of simple TRUE/FALSE in the madCodeHook API ?
It would be much nicer to know the exact problem and not just to get FALSE return value.

Thanks
_NN_
 
Posts: 53
Joined: Mon Jan 21, 2013 4:00 pm

Re: Better error codes for madCodeHook functions

Postby madshi » Wed Jul 18, 2018 8:08 am

In theory you can call GetLastError() if the madCodeHook APIs fail. It often returns useful values, but not always. :oops:
madshi
Site Admin
 
Posts: 9826
Joined: Sun Mar 21, 2004 5:25 pm


Return to madCodeHook

Who is online

Users browsing this forum: Baidu [Spider] and 10 guests