look up the mciSendString API function. It allows you to do all sorts, including read/writing the volume values of the lineIn mic, wav etc.

Try searching on this site for it, try planetsourcecode.com, try microsoft.com - it's their function!

actually try the MSDN library - it's in there im sure.