compatible with windows errorcode