The waveInGetNumDevs function returns the number of waveform-audio input devices present in the system.
UINT waveInGetNumDevs();
int waveInGetNumDevs() => _waveInGetNumDevs();