'From: Chris <list@w...> Wed Oct 16, 2002 9:40 am
' How to BEEP with Windows NT4
'NT4, 2000, and XP do not allow direct accident to
'port 92 (not IP). You will need to use the aptly named API call BEEP.
'Begin BASIC
'Function Prototype (copy and paste into program)
DECLAREFUNCTION Beep LIB "kernel32" ALIAS "Beep" (BYVAL dwFreq ASLONG, BYVAL dwDuration ASLONG) ASLONG
Beep(500,300)
'?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.
'If the function succeeds, the return value is nonzero.
'If the function fails, the return value is zero. To get extended error
'information, call GetLastError.
'End BASIC