beep (kernel32)
Last changed: -91.118.56.136

.
Summary
Generates simple tones on the speaker.

C# Signature:

[DllImport("kernel32.dll")]
static extern bool Beep(uint dwFreq, uint dwDuration);

VB Signature:

Declare Function Beep Lib "kernel32.dll" (dwFreq As Integer, _
   dwDuration As Integer) As Boolean

Notes:

Unlike MessageBeep, this function is synchronous. (It doesn't return control to its caller until the sound finishes.)

Tips & Tricks:

Please add some sample code!

Sample Code:

Please add some!

Alternative Managed API:

System.Console.Beep, coming in v2.0 (Whidbey) of the .NET Framework

Documentation
Beep on MSDN