Jump to content

DevHelp Beep

From EDM2
Revision as of 22:14, 23 August 2017 by Martini (talk | contribs) (Created page with "This service generates a beep. ==Syntax== ===C=== <PRE> USHORT APIENTRY DevHelp_Beep(USHORT Frequency, USHORT DurationMS); </PRE> ===Assembler=...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This service generates a beep.

Syntax

C

USHORT APIENTRY DevHelp_Beep(USHORT Frequency,
                             USHORT DurationMS);

Assembler

MOV   BX,_Freq        ; Frequency of beep in Hz
MOV   CX,_Duration    ; Duration of beep in milliseconds
MOV   DL,DevHlp_Beep

CALL  [Device_Help]

Parameters

C

Frequency (USHORT)
Frequency of beep in Hz
DurationMS (USHORT)
Duration of beep in milliseconds

Assembler

MOV   BX,_Freq        ; Frequency of beep in Hz
MOV   CX,_Duration    ; Duration of beep in milliseconds
MOV   DL,DevHlp_Beep

CALL  [Device_Help]

Return Code

C

Success Indicator: 0

Possible errors:

ERROR_INVALID_FREQUENCY (395)

Assembler

   'C' Clear if successful.
       AX = 0.

   'C' Set if error.
       AX = Error code.
            Possible errors:
               ERROR_INVALID_FREQUENCY (395)

Remarks

This function uses the DX register.

Example Code

C

#include  "dhcalls.h"

USHORT APIENTRY DevHelp_Beep(USHORT Frequency,
                             USHORT DurationMS);

Related Functions