As with the main API, most configuration and detection functions return error codes. Zero indicates no error, while a negative error code indicates that an error occurred.