On Wed Sep 13 10:36:37 2023 +0000, Ziqing Hui wrote:
OK, should I use HRESULT_FROM_NT in PE api side?
I think it'd be better, but then you shouldn't return HRESULT values from the unix side. I'm not sure if these specific values are supposed to be meaningful but if it's just something like E_FAIL / E_OUTOFMEMORY you can replace them with their STATUS_* equivalent.