home *** CD-ROM | disk | FTP | other *** search
- This is the SPY program from "Spying on Windows" in the 1987 IBM special
- issue of BYTE, modified to run under Windows 3.0. It "spies" on other
- windows' attributes, such as style, icon handle, etc.
-
- List of files
- ./:
- -d---- 0 original - Directory containing original source
- a----- 2229 readme - This file!
- a----- 36878 spy.c - The source in C.
- a----- 269 spy.def - Module definition file
- a----- 21100 spy.exe - The Win 3.0 executable
- a----- 701 spy.h - The source header file
- a----- 1038 spy.ico - The icon file
- a----- 4731 spy.prj - BC's project file
- a----- 976 spy.res - The compiled resource file
-
- ./original:
- a----- 282 spy - Makefile for the original program
- a----- 1231 spy.doc - The original docs
- a----- 1023 spy.rc - The original resource script
- a----- 35574 spy104.c - The original source
-
- Modifications I made:
- Minor modifications to SPY.C
- Changed a function (Paint) to use more the standard va_args
- Deleted an include line in SPY.RC
- Converted the Windows 2.0 icon file to 3.0 (and changed a few of
- its colours as well).
- Add a timer to automatically update the windows information.
- Change the display logic to use the value returned by BeginPaint
- instead of using the PAINTSTRUCT structure.
-
- What I did not do:
- Made intensive tests on this port.
- Guarantee that it would work on your machine. (In fact I will
- *NOT* even guarantee that you can compile it.) This is a
- 10-minute hack so don't expect miracles. I compiled it
- using Borland C++, using the small model - all functions
- exported.
- Changed any of its algorithm. Some of it may not work for
- Windows 3.0.
- Tried to compile it with Microsoft C v6.0 but I may try if I
- get requests to do so.
-
- Modifications that ought to be done but was not (anybody keen?):
- Have the display change when the scroll bars are tracked.
- Add an about option.
- Display objects rather than numbers, for example, instead of
- displaying the handle to a window's background brush, display
- the brush itself.
-
- If you cannot run/compile this - tough. I included the original
- Windows 2.0 source so you can hack it if you like. You will
- have to edit the makefile though, as I renamed the source to
- SPY104.C. Note that I used Borland C++'s IDE project
- management so I did not need a makefile.
-
- Disclaimer: By using this hack, you are accepting that I will
- NOT be held responsible for any loss or damage resulting
- from the use or misuse of this program.
-
- If you have a problem, you can either;
- a) Contact me. Although I don't plan to support this program, try
- me anyway - if I have the time and the knowledge, I will
- try and help you.
- b) Contact the original author. He is probably the person to
- ask if you have a problem with the algorithm. I merely
- ported it to Windows 3.0.
-
- If you are using Microsoft's SDK, you might want to rename SPY to
- something like, ESP, to avoid confusion with the SPY that comes
- with the SDK.
-
- I can be contacted at:
- email:
- chuah@stargate.elec.canterbury.ac.nz (prefered)
- CHUAHDC@ELEC.canterbury.ac.nz
-
-
- *** Happy hacking ***