Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than kernel32, prefix the name with the module name and a period.
static void Main()
{
Console.WriteLine("Testing PC speaker...");
for (uint i = 100; i <= 20000; i++)
{
Beep(i, 5);
}
Console.WriteLine("Testing complete.");
}
}
Added by David Carachi
Alternative Managed API:
System.Console.Beep
Adendum 2007 AUG 14
This function does nothing when imported into a VB6 application. It does however work properly when called directly from a C++ application compiled with MSVC6.
Added by Barny Short
To run this function in VB6 the declaration you have to make is
Declare Function Lib "kernel32.dll" Alias "Beep" (dwFrequency As Long, dwMilliseconds As Long) As Long
Have fun with it. I am lol.
Added by Luke Torjussen
Plays a waveform sound.
7/1/2010 10:25:43 AM - -92.251.8.36
Click to read this page
9/7/2021 12:55:49 AM - tmo793-180.150.94.207
Click to read this page
9/7/2021 12:55:49 AM - tmo793-180.150.94.207
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
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).