Closed myth384 closed 4 weeks ago
CsWin32 is doing the default .NET thing: considering PreserveSig to be false by default. If a failing HRESULT were to be returned from this API, an exception would be thrown to your code. Or if you are the one implementing the interface, you should throw an exception to produce a failing HRESULT for your native caller.
If you really want an HRESULT instead of exceptions, you can add this API to the list of preservesig APIs as described in the readme.
Actual behavior
Currently
IShellItemImageFactory.GetImage
returns void.Expected behavior
According to the official documentation it should return an
HRESULT
.Repro steps
NativeMethods.txt
content:NativeMethods.json
content (if present):Any of your own code that should be shared?
Context
LangVersion
(if explicitly set by project): not set