ik heb het begrepen
using System.Runtime.InteropServices;
[DllImport("winmm.dll", SetLastError = true)]
public static extern uint waveOutGetNumDevs();
private void frmSound_Load(object sender, System.EventArgs e){
if(waveOutGetNumDevs() != 0)
{
lblSound.Text = "The Sound device is detected for this system";
}
else
{
lblSound.ForeColor = Color.Red;
lblSound.Text = "The Sound device is Not Found for this system";
}
}