Closed NilsHoyer closed 4 months ago
In general, I have chosen to let .NET handle HRESULT errors from COM interface methods as exceptions except in cases where the interface must be implemented in .NET or when the HRESULT can return results like S_FALSE that are more result codes than errors.
When I read your comment, I thought this would be bad implemented. Today, I love it! 😌
Thank you for the positive feedback!
The Portable Device API has several COM interfaces and as far I see, all their methods are giving back a HRESULT. But your implementations are not (void instead of HRESULT).