vxdstub.asm
上传用户:ibmxxxxx
上传日期:2007-01-03
资源大小:35k
文件大小:1k
源码类别:

系统编程

开发平台:

Visual C++

  1. ; *******  Listing 2   VXDSTUB.ASM  *******
  2. PAGE 58,132
  3. TITLE VXDSTUB - Device Declaration and Control Procedure
  4.     .386p
  5.     include vmm.inc
  6. FILEMON_DYNAMIC EQU 1   
  7. ; Declare FILEMON's device descriptor block
  8. DECLARE_VIRTUAL_DEVICE  FILEMON, 1, 0, CtrlMsgDispatch,
  9.     UNDEFINED_DEVICE_ID, FSD_Init_Order, 0, 0
  10. VXD_LOCKED_CODE_SEG
  11. ; Setup FILEMON's control procedure
  12. BeginProc CtrlMsgDispatch
  13.     Control_Dispatch Sys_VM_Terminate,  
  14.           CtrlMsg_SysVMTerminate, sCall, <ebx>
  15.     Control_Dispatch SYS_DYNAMIC_DEVICE_INIT, 
  16.        CtrlMsg_DynDeviceInit, sCall
  17.     Control_Dispatch SYS_DYNAMIC_DEVICE_EXIT, 
  18.        CtrlMsg_DynDeviceExit, sCall
  19.     Control_Dispatch W32_DEVICEIOCONTROL, 
  20.           CtrlMsg_W32DeviceIoControl, sCall, <ecx,ebx,esi>
  21.     clc
  22.     ret
  23. EndProc CtrlMsgDispatch
  24. VXD_LOCKED_CODE_ENDS
  25.     END