I got the idea of doing this from WixStdBA:

    HRESULT E_WIXSTDBA_CONDITION_FAILED = MAKE_HRESULT(SEVERITY_ERROR, 500, 1)

Can I hook off of WiX already using the 500 facility code, or should I change both to use FACILITY_ITF?