Skip to main content

win32_code_of

Function win32_code_of 

Source
pub fn win32_code_of(code: ErrorCode) -> Option<u32>
Expand description

The Win32 code code wraps, if it is one wrapped by HRESULT_FROM_WIN32: severity set, FACILITY_WIN32, and no other bit above the code. None for S_OK, a success wrapping no error, and for an HRESULT of any other facility. The inverse of error_code_from_win32 for the codes from 1 to 65535.