3 ms·
> I guess he's implicitly talking about a C# API built on top of Win32. Correct. The error `ERROR_CANCELLED` is defined in WinErr.h and it's translated via `HR
by felsokning 3y ago
> I guess he's implicitly talking about a C# API built on top of Win32.
Correct. The error `ERROR_CANCELLED` is defined in WinErr.h and it's translated via `HRESULT_FROM_WIN32` in the same[1]. It was this change pointed out in `CreateWidget` to get around returning the null pointer that he was suggesting would be better to make the API inert.
[1] - https://learn.microsoft.com/en-us/windows/win32/api/winerror/nf-winerror-hresult_from_win32 https://learn.microsoft.com/en-us/windows/win32/api/winerror...