Windows



- 6


VxDcall VPICD_Virtualize_IRQ ;

jc short vdi1 ; ,

mov hIRQ,eax ;

mov edx,FAKE_PORT

mov esi,OFFSET32 Port_IO_Callback

VMMCall Install_IO_Handler

VMMCall Enable_Global_Trapping ;

clc ;

vdi1:

ret

EndProc VxD2B_Device_Init

VxD_ICODE_ENDS

VxD_REAL_INIT_SEG

VxD2B_Real_Init LABEL FAR ; , Windows

mov ax,Device_Load_OK ; VxD

xor bx,bx ; (Exclude) EMM

xor si,si ;

; edx

ret

VxD_REAL_INIT_ENDS

END VxD2B_Real_Init

_____________________________________________________________________

6. vxd2.asm

_____________________________________________________________________

LIBRARY VXD2

DESCRIPTION 'Enhanced Windows VXD2(B) Device (Version 1.0)'

EXETYPE DEV386

SEGMENTS

_LTEXT PRELOAD NONDISCARDABLE

_LDATA PRELOAD NONDISCARDABLE

_ITEXT CLASS 'ICODE' DISCARDABLE

_IDATA CLASS 'ICODE' DISCARDABLE

_TEXT CLASS 'PCODE' NONDISCARDABLE

_DATA CLASS 'PCODE' NONDISCARDABLE

EXPORTS

VXD2_DDB @1

_____________________________________________________________________

7. vxd2.def