Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.
This repository was 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

Open
@rylev

Description

@rylev

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 that E_NOINTERFACE is returned and if not, do something else with the error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions