COM-lookup routines ported from parcel.