This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
Should the safe query_interface
return a Result<Interface, HResult>
instead of a Option<Interface>
?
#176
Labels
question
Further information is requested
We assume that if a call to
QueryInterface
doesn't return success, that the requested interface is not implemented for the backing class. But it is possible that some implementations may return non-standard errors. Should we provide the ability for the user to inspect the error to ensure thatE_NOINTERFACE
is returned and if not, do something else with the error?The text was updated successfully, but these errors were encountered: