Overloading Windows API

Can Windows API be overloaded to call the custom-function? I'd like to do this to return a different return code and customize the behavior of the API.

More specifically, I am looking to overload m_EnumDeviceDrivers. Please let me know if you have prior knowledge/experience with this.

Thanks.
I don't understand: Can't you write your own function, say MyEnumDeviceDrivers(), then call the WinAPI one inside of this one, then do the extra work? What is that you are trying to do?
Actually it should not be done .. what are you looking for .
Topic archived. No new replies allowed.