When I use the LoadLibraryEx API to load a PE file and it fails for whatever reason, it sends a message box to the user rather than simply returning NULL. I looked around to see if there was a flag that could be used to supress this behavior, but haven't found one.
Any ideas?