-
When An example:
When I set
|
Beta Was this translation helpful? Give feedback.
Answered by
AArnott
Sep 9, 2024
Replies: 1 comment
-
The signatures are not incorrect. They are simply declared in the default .NET interop mode where the HRESULT is hidden, and error codes are thrown in a COMException. If you want to see the HRESULT return codes, you can opt into preservesig mode with a NativeMethods.json file like this: {
"$schema": "https://aka.ms/CsWin32.schema.json",
"comInterop": {
"preserveSigMethods": [
"IAttachmentExecute"
]
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
AArnott
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The signatures are not incorrect. They are simply declared in the default .NET interop mode where the HRESULT is hidden, and error codes are thrown in a COMException.
If you want to see the HRESULT return codes, you can opt into preservesig mode with a NativeMethods.json file like this: