I assume you are using Windows Vista or later. Most of this reply assumes that.
From your other post Adding a Tip to the FAQs I think you are talking about poor quality audio due to mismatched sample rates, rather than a stream not arriving at all (which would produce “error opening sound device”). Is that so?
In the case you mention where Windows Default Format is 44100 Hz but the device is sending 48000 Hz, and you have Audacity set in Device Toolbar to use MME host, the problem (if any) will be due to resampling between the audio leaving the device and Windows passing it to Audacity.
In that case the answer (on Vista and later) would be to use Windows DirectSound or Windows WASAPI host instead, with the “Exclusive Mode” boxes enabled in Windows Sound, as the FAQ says. If you do that then in theory, Default Format is ignored, and Audacity will request the sample rate that you choose in Audacity Project Rate directly from the sound card
As you can see at http://manual.audacityteam.org/o/man/status_bar.html, the “Actual Rate” display when recording shows the rate being communicated by the sound card to Audacity.
When you choose MME host on Vista and later, another point to note is that Windows always upconverts to 32-bit float for any processing that it does, before sending 16-bit or 24-bit to Audacity.
And then because MME host is 16-bit only, any upconversion of bit depth that Audacity does when it stores the audio is entirely padding of sample values. The same “padding” applies if you choose Windows DirectSound, because PortAudio doesn’t support more than 16-bit for DirectSound. As a result of all this, if you have a 24-bit sound card and want to record with 24-bit dynamic range, you must choose Windows WASAPI host in Device Toolbar.
As I understand it, that exact method only applies to Vista and later, but if you look in lib-src\portaudio-v19 in the Audacity source code, you’ll see PortAudio is already using it.
As Steve said, these methods are how Audacity gets the “supported rates” information that it displays in Audio Device Info… . For WASAPI this might show only the current Default Format, whether Exclusive Mode is enabled or not, which might be questionable.
Gale