Better error codes for madCodeHook functions

c++ / delphi package - dll injection and api hooking
Post Reply
_NN_
Posts: 55
Joined: Mon Jan 21, 2013 4:00 pm

Better error codes for madCodeHook functions

Post by _NN_ »

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
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: Better error codes for madCodeHook functions

Post by madshi »

In theory you can call GetLastError() if the madCodeHook APIs fail. It often returns useful values, but not always. :oops:
Post Reply