WINAPI IMPORT UNITS FOR GPC
---------------------------

This package represents the current state of play in providing
GPC versions of the Delphi(tm) Messages and Windows units. These
can be used with the Win32 ports of GPC (Mingw32 and Cygwin), but
it may also be possible to use them with WINE under unix/linux.
In this effort I have tried to follow the Delphi(tm) 1.0 and Borland 
Pascal for Windows conventions of naming the units - so I have
produced 3 UNITs;

	MESSAGES

	WINTYPES \
                  ----- WINDOWS
	WINPROCS /

Delphi 2.0 and subsequent versions of Delphi merge "Wintypes" and
"Winprocs" into a single "Windows" unit. I have also followed that 
convention, with a "Windows" unit that is basically a wrapper for 
the Wintypes and Winprocs units.

At present, there are two ways of using the sources in your programs;

1. By putting each of them in the USES clause - e.g.,
      Program Test1;
      USES Messages, Wintypes, Winprocs;
      Begin
        {blah blah}
      End.

2. By USEing just the Messages and Windows units - e.g.,
      Program Test2;
      USES Messages, Windows;
      Begin
        {blah blah}
      End.

The code is based mainly on *old* GCC Win32 API headers, which
have been translated by me into Pascal.

The MESSAGES and WINTYPES units should be usable with other 
Windows Pascal compilers with little modification. The 
WINPROCS unit on the other hand uses moree GPC-specific features
(for example, the declarations of imported functions only needs
to happen once - in the INTERFACE section). It will require
some work to make the unit compile if using other Pascal 
compilers. This should be achievable by the use of IFDEFs, so
that a single source code base can be maintained.

FILE LIST
---------
1. messages.pas    	- Win32 messages
2. wintypes.pas		- Win32 type definitions
3. winprocs.pas		- Win32 API imports
4. windows.pas		- Unified "wintypes" and "winprocs" units
5. moretype.inc		- Extra Win32 types (from Virtual Pascal)
6. wingui.pas		- Simple GUI test program, using Win32 API calls
7. readme.txt		- this file
8. copying		- Licence terms for some of the files


LICENCE
-------
As is obvious from the comments in the sources, the original 
GCC headers for the MESSAGES, WINTYPES and WINPROCS units were 
released under the LGPL (the GNU Library General Public License). 
These three units are hereby released under the new LGPL (version 2.1),
now called the GNU Lesser General Public License. A copy of this
licence is in the file "COPYING" which is part of this package.

The "moretype.inc" file is derived from source code for the
Virtual Pascal WINDOWS unit. Virtual Pascal is a freeware Pascal
compiler for Win32 and OS/2. It is copyrighted by Allan Mertner
(vpascal@vpascal.com). The Virtual Pascal code has been amended 
by me and is used herein with the kind permission of Allan Mertner. 

Moretype.inc is released as freeware.

-------------------
June 2002,
Prof. Abimbola A Olowofoyeku (The African Chief)
Email: African_Chief@bigfoot.com
WWW:   http://www.bigfoot.com/~African_Chief/

