OVERVIEW:
	
	SAMPLE1 illustrates how to create a .DLL that wil
	intercept an API of a system DLL

	It is composed of an EXE (THEAPP.EXE) which loads
	the DLL (THEDLL.DLL).

	The DLL proceeds to intercept the MessageBoxA function
	and after this THEAPP uses the MessageBox function.

	If you run this under the 32 bit debugger you will also
	see a debug string stating that it is in the intercepted
	function


INSTRUCTIONS:

	To compile the executable run MAKEAPP.BAT
	To compile the DLL, call MAKEDLL.BAT

NOTES:

	1/	If the DLL had not been made to load above 2GB,
	it would have only intercepted the call from THEAPP.
	Any other application that started and called MessageBox
	would have crashed.

	To make it into a sharable DLL you had to make segments
	sharable (ie in the .DEF file) and give the DLL a base
	address of above 0x80000000 (via the /base option to the
	linker)

	2/	I used GetProcAddress in my executable to get the
	address of 'MessageBoxA." If I had used a static .LIB
	file THEAPP would have obtained the address of MessageBoxA
	before it had a chance to substitute it.