Closed asklar closed 4 months ago
Per the docs for this API, this API qualifies for the CanReturnMultipleSuccessValuesAttribute
. That needs to be applied in the metadata.
In the meantime, @asklar, you can use the NativeMethods.json file to add this method to the preserveSig methods so that you get the HRESULT back.
Fixed for next release. As Andrew mentioned, an easy short term workaround is to disable CsWin32 signature transformation for this method, as such:
{
"$schema": "https://aka.ms/CsWin32.schema.json",
"comInterop": {
"preserveSigMethods": [
"IPropertyStoreCapabilities.IsPropertyWritable"
]
}
}
Actual behavior
IPropertyStoreCapabilities::IsPropertyWritable returns S_OK or S_FALSE However it is projected as returning void
Expected behavior
ideally return true/false