Jump to content

DevHelp RegisterBeep: Difference between revisions

From EDM2
Created page with "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 ke..."
 
Ak120 (talk | contribs)
mNo edit summary
 
Line 1: Line 1:
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.  
{{DISPLAYTITLE:DevHelp_RegisterBeep}}
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==
==Syntax==
Line 48: Line 49:
USHORT APIENTRY DevHelp_RegisterBeep(PFN BeepHandler);
USHORT APIENTRY DevHelp_RegisterBeep(PFN BeepHandler);
</PRE>
</PRE>
==Related Functions==


[[Category:DevHlps]]
[[Category:DevHlps]]

Latest revision as of 13:32, 2 January 2020

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);