Accretion in wind-driven X-ray sources