It might be in one of the WNet* API calls.