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

Windows Develop

Development Platform:

WINDOWS

  1. The RealModeInit sample shows a VxD with a real-mode initialization function.
  2. The sample also shows how to access registry services from a real-mode
  3. initializer, which isn't necessarily one of the things you'd really have to
  4. do in a typical device driver.
  5. To build this sample, prepare your system according to the general
  6. directions in the root directory of this disc. Run "nmake -f rmreg.mak" to
  7. build from a command prompt, or open the RealModeInit project in Microsoft 
  8. Developer Studio and build within that environment.
  9. To actually execute this sample and see it do something:
  10. 1. Modify the sample to contain an INT 3 instruction at the beginning of
  11.    the VxD_REAL_INIT_SEG segment.
  12. 2. Use REGEDIT to add the registry key       
  13.       HKLMSystemCurrentControlSetServicesVxDRMREG.
  14.    Within that key, add two values:
  15.        StaticVxD = [path]rmreg.vxd      (a string value)
  16.        Port = 1234                       (a binary value)
  17.    where [path] is the path to wherever you saved RMREG.VXD.  Note that you'll need
  18.    to put the VxD in a path other than ...RealModeInit, because Windows 95 can't
  19.    handle the long file name in the registry entry.  The VxD must also be on 
  20.    a drive that is visible in real mode before Windows startup (as opposed to
  21.    a drive that has only protected-mode drivers).
  22. 3. Restart your system under control of the WDEB386 debugger. (Follow directions in
  23.    the Windows 95 DDK about how to use this debugger.) You'll halt on the INT 3
  24.    instruction in the real-mode initializer, whereupon you can trace the function
  25.    calls that read out the Port value from the registry.