[DllImport("kernel32.dll")]
static extern bool Beep(uint dwFreq, uint dwDuration);
Unlike MessageBeep, this function is synchronous. (It doesn't return control to its caller until the sound finishes.)
Please add some sample code!
Please add some!
System.Console.Beep, coming in v2.0 (Whidbey) of the .NET Framework