home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / sdktools / spy / readme.txt < prev   
Text File  |  1996-01-17  |  1KB  |  39 lines

  1. Monitoring Messages with SPY
  2.  
  3.  
  4. SUMMARY
  5. =======
  6.  
  7. The SPY tool demonstrates how to monitor system messages sent to a specified
  8. window. SPY records the messages and displays them on the specified device. 
  9. SPY is also useful in debugging, to verify that the messages you think a 
  10. window is receiving are actually being received.
  11.  
  12. SPY demonstrates the following techniques:
  13.  
  14.   - Using a system message hook.
  15.   - Using the WM_COPYDATA message to pass data to another application.
  16.   - Reading and writing the registry.
  17.   - Creating a thread.
  18.   - Creating a DLL for the hook.
  19.  
  20. MORE INFORMATION
  21. ================
  22.  
  23. To use SPY to monitor messages, do the following:
  24.  
  25.  1. Choose the Options menu to select the following:
  26.  
  27.       - Messages: Selects the messages you wish to monitor.
  28.       - Font: Selects the font you wish to have displayed.
  29.       - Output: Selects the output device to which you want messages to go.
  30.  
  31.  2. Select the window whose messages you want to watch by choosing the 
  32.     Select Window command from the Spy menu. This brings up a dialog box 
  33.     listing the current windows to watch. The default is all windows.
  34.  
  35.  3. The Edit menu allows you to use the clipboard from the SPY window.
  36.  
  37.  4. Choose Start! to start monitoring. Once this option is chosen, the menu 
  38.     item changes to Stop!. Choose Stop! to cease monitoring messages.
  39.