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
Better error codes for madCodeHook functions
Re: Better error codes for madCodeHook functions
In theory you can call GetLastError() if the madCodeHook APIs fail. It often returns useful values, but not always.