WinAlarm: Difference between revisions
Appearance
No edit summary |
m →Returns |
||
Line 21: | Line 21: | ||
Possible errors from [[WinGetLastError]] are: | Possible errors from [[WinGetLastError]] are: | ||
* [[ | * [[PM Error Codes#PM_INVALID_HWND|PM_INVALID_HWND]] | ||
* [[ | * [[PM Error Codes#PM_INVALID_PARAM|PM_INVALID_PARAM]] | ||
== Module == | == Module == |
Revision as of 02:17, 1 December 2019
Generates an audible alarm.
Syntax
WinAlarm(desktopHandle, alarmStyle)
Parameters
Constants
These are the differing alarm tone constants:
- WA_WARNING
- WA_NOTE
- WA_ERROR
The frequency of these alarm types can be changed with WinSetSysValue. The alarm frequency range is 0x0025 through 0x7FFF. If SV_ALARM is set to FALSE then no alarm will sound.
Returns
This function returns a BOOL with the values of:
Possible errors from WinGetLastError are:
Module
DOSCALLS
Define (C/C++)
INCL_WINDIALOGS or INCL_WIN or INCL_PM or INCL_COMMON
Calling Convention
Example Code
... APIRET rc; rc = WinAlarm (HWND_DESKTOP, WA_NOTE); ...
Related Functions
- WinFlashWindow
- WinMessageBox
Notes
WinAlarm function also used for multimedia subsystem notification.