DevHelp VirtToLin

This service converts a selector:offset pair into a linear address.

C
 USHORT APIENTRY DevHelp_VirtToLin( SEL   Selector,                                   ULONG  Offset,                                   PLIN   LinearAddr) 

Assembler
 MOV  AX,Selector          ; Selector in  Selector:Offset MOV  ESI,Offset           ; Offset in Selector:Offset MOV  DL,DevHlp_VirtToLin

CALL [Device_Help] 

C

 * Selector (SEL) : Selector in the selector:offset


 * Offset (ULONG) : Offset in the selector:offset


 * LinearAddr (PLIN) : Linear address to be returned

Assembler
 MOV  AX,Selector          ; Selector in  Selector:Offset MOV  ESI,Offset           ; Offset in Selector:Offset 

C
Success Indicator: 0

Possible errors: Linear address not obtained.

Assembler
 'C' Clear if Linear address obtained. EAX = Linear address.

'C' Set if linear address not obtained. EAX = Error code. 

Remarks
None.

C

 * 1) include "dhcalls.h"

USHORT APIENTRY DevHelp_VirtToLin( SEL   Selector,                                   ULONG  Offset,                                   PLIN   LinearAddr) 