Jump to content

DevHelp_RegisterBeep

From EDM2

This service is called by the physical Clock$ device driver during initialization time to register the beep service entry point so that other physical device drivers or the kernel can generate preemptive beeps.

Syntax

C

USHORT APIENTRY DevHelp_RegisterBeep(PFN BeepHandler);

Assembler

MOV   CX,SEGMENT PDDBeep_Func     ; CX:DI (16:16) = Entry point to
MOV   DI,OFFSET PDDBeep_Func      ; physical device driver's Beep routine.
MOV   DL,DevHlp_RegisterBeep

CALL  [Device_Help]

Parameters

C

BeepHandler (PFN)
Pointer to the entry point after the physical device driver's Beep routine.

Assembler

MOV   CX,SEGMENT PDDBeep_Func     ; CX:DI (16:16) = Entry point to
MOV   DI,OFFSET PDDBeep_Func      ; physical device driver's Beep routine.

Return Code

C

Success Indicator: 0

Possible errors: None.

Assembler

Success:
         If successful, AX = 0.
Failure:
         N/A

Remarks

None.

Example Code

C

#include  "dhcalls.h"

USHORT APIENTRY DevHelp_RegisterBeep(PFN BeepHandler);