Actual behavior
E_NOTFOUND generates:
internal static readonly winmdroot.Foundation.HRESULT E_NOTFOUND = (winmdroot.Foundation.HRESULT)(-2147479539);
This is the value from infotech.h:
./um/infotech.h:#define E_NOTFOUND _HRESULT_TYPEDEF_(0x8000100DL)
Expected behavior
internal static readonly winmdroot.Foundation.HRESULT E_NOTFOUND = (winmdroot.Foundation.HRESULT)(-2147023728);
Which is the HRESULT for ERROR_NOT_FOUND (um/xamlOM.h and um/devicetopology.h and ./um/mmdeviceapi.h)
i.e.
#define E_NOTFOUND HRESULT_FROM_WIN32(ERROR_NOT_FOUND)
Repro steps
NativeMethods.txt content:
NativeMethods.json content (if present):
- Any of your own code that should be shared?
Context
- CsWin32 version:
0.3.275
- Win32Metadata version (if explicitly set by project):
- Target Framework:
net10.0-windows10.0.26100.0
LangVersion (if explicitly set by project): [e.g. 9]
Actual behavior
E_NOTFOUNDgenerates:internal static readonly winmdroot.Foundation.HRESULT E_NOTFOUND = (winmdroot.Foundation.HRESULT)(-2147479539);This is the value from infotech.h:
./um/infotech.h:#define E_NOTFOUND _HRESULT_TYPEDEF_(0x8000100DL)Expected behavior
internal static readonly winmdroot.Foundation.HRESULT E_NOTFOUND = (winmdroot.Foundation.HRESULT)(-2147023728);Which is the HRESULT for ERROR_NOT_FOUND (um/xamlOM.h and um/devicetopology.h and ./um/mmdeviceapi.h)
i.e.
#define E_NOTFOUND HRESULT_FROM_WIN32(ERROR_NOT_FOUND)Repro steps
NativeMethods.txtcontent:NativeMethods.jsoncontent (if present):Context
0.3.275net10.0-windows10.0.26100.0LangVersion(if explicitly set by project): [e.g.9]