change to ATL's recent regstry api
add return statement for remove warning