Beep(freq, dur)

Generates simple tones on the speaker.


freq : int

Specifies the frequency, in hertz, of the sound. This parameter must be in the range 37 through 32,767 (0x25 through 0x7FFF).

dur : int

Specifies the duration, in milliseconds, of the sound.~ One value has a special meaning: If dwDuration is - 1, the function operates asynchronously and produces sound until called again.

Win32 API References

Search for Beep at msdn, google or google groups.