vxdstub.asm
资源名称:filemon.zip [点击查看]
上传用户:ibmxxxxx
上传日期:2007-01-03
资源大小:35k
文件大小:1k
源码类别:
系统编程
开发平台:
Visual C++
- ; ******* Listing 2 VXDSTUB.ASM *******
- PAGE 58,132
- TITLE VXDSTUB - Device Declaration and Control Procedure
- .386p
- include vmm.inc
- FILEMON_DYNAMIC EQU 1
- ; Declare FILEMON's device descriptor block
- DECLARE_VIRTUAL_DEVICE FILEMON, 1, 0, CtrlMsgDispatch,
- UNDEFINED_DEVICE_ID, FSD_Init_Order, 0, 0
- VXD_LOCKED_CODE_SEG
- ; Setup FILEMON's control procedure
- BeginProc CtrlMsgDispatch
- Control_Dispatch Sys_VM_Terminate,
- CtrlMsg_SysVMTerminate, sCall, <ebx>
- Control_Dispatch SYS_DYNAMIC_DEVICE_INIT,
- CtrlMsg_DynDeviceInit, sCall
- Control_Dispatch SYS_DYNAMIC_DEVICE_EXIT,
- CtrlMsg_DynDeviceExit, sCall
- Control_Dispatch W32_DEVICEIOCONTROL,
- CtrlMsg_W32DeviceIoControl, sCall, <ecx,ebx,esi>
- clc
- ret
- EndProc CtrlMsgDispatch
- VXD_LOCKED_CODE_ENDS
- END