Desktop Functions: Smart Device Functions:
|
beep (kernel32)
C# Signature:
[DllImport("kernel32.dll")] VB Signature:
Declare Function Beep Lib "kernel32.dll" (dwFreq As Integer, _ Parameter Information:dwFreq Windows NT: Specifies the frequency, in hertz, of the sound. This parameter must be in the range 37 through 32,767 (0x25 through 0x7FFF). Windows 95: The parameter is ignored. dwDuration Windows NT: Specifies the duration, in milliseconds, of the sound. Windows 95: The parameter is ignored. 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:The following sample plays the PC speaker in a series of ascending frequencies:
using System; Added by David C. Carachi Alternative Managed API:System.Console.Beep, coming in v2.0 (Whidbey) of the .NET Framework Please edit this page!Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more). |
|