Do an internet search for "AEC DMO". It will turn up some useful MSDN links like this one on the AEC component shipped for Vista/Win7. There is a sample app for the DMO that shipped on Vista, but you may need to download the relevant Windows SDK to get at that code.
For XP, there's IDirectSoundFullDuplexCreate8. Barely works on XP. Doesn't work at all on Vista+.