Page 1 of 1

Better error codes for madCodeHook functions

Posted: Sun Jul 15, 2018 6:50 am
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

Re: Better error codes for madCodeHook functions

Posted: Wed Jul 18, 2018 8:08 am
by madshi
In theory you can call GetLastError() if the madCodeHook APIs fail. It often returns useful values, but not always. :oops: