Open mtfriesen opened 1 year ago
That's a good point. If we define our own errors, I think we should try to line them up so that the lower two bytes are easily convertible to HRESULT or WINERROR, maybe they're just the same as the standard WIN32 errors and the higher bytes can be used to define whether it's a standard error, or a hardware-specific error?
If we define our own errors for per-connection status, I'd argue we shouldn't use HRESULTs in those APIs, and treat them as a "failure reason" rather than an "error". We should make an effort to avoid using reserved bits that would make it difficult for them to reuse with HRESULTs, for sure.
ok, I am willing to hear further arguments, but if nothing comes in by tomorrow, let's go with defining our own errors. This sounds like a better design.
Should we continue to use the
NDIS_STATUS
data type to report the result of each connection offload attempt? There are two major downsides:If we define our own failure reasons, it will simplify the end-to-end control path flow and perhaps simplify error-handling, too.