README.TXT
Upload User: linklycbj
Upload Date: 2009-11-12
Package Size: 447k
Code Size: 1k
Category:

Windows Develop

Development Platform:

WINDOWS

  1. The ServiceHook sample illustrates how to hook a VxD service from an
  2. assembly-language VxD. Coincidentally, it also illustrates how a Win32
  3. application and a VxD cooperate using DeviceIoControl and _VWIN32_QueueUserApc.
  4. MYVXD.VXD is a dynamic VxD that hooks the DOSMGR_Begin_V86_App and
  5. DOSMGR_End_V86_App services in order to monitor the starting and stopping
  6. of V86-mode programs. SERVTEST.EXE is a Win32 console application that
  7. waits for APC notifications sent by the VxD in response to the hooked
  8. service calls.
  9. To build MYVXD.VXD, prepare your system according to the general
  10. directions in the root directory of this disc. Run "nmake -f myvxd.mak" to
  11. build from a command prompt, or open the ServiceHook project in Microsoft 
  12. Developer Studio and build within that environment.
  13. To build SERVTEST.EXE, open the SERVTEST project in Microsoft Developer
  14. Studio and select the Build Rebuild All command.
  15. To run the sample, start at an MS-DOS prompt in the project directory (where
  16. the build script will have left MYVXD.VXD) and issue the command:    
  17. C:...ServiceHook-ASM>winrelservtest
  18. or
  19. C:...ServiceHook-ASM>windebugservtest
  20. The MS-DOS box will now pause while SERVTEST.EXE monitors start/stop events 
  21. noted by the VxD. Open one or more other MS-DOS boxes and execute commands 
  22. inside them to see messages from SERVTEST. Terminate SERVTEST.EXE by pressing 
  23. Ctrl-Break with the focus in its MS-DOS session.