Update of /cvsroot/netrek/client/netrekxp/src/winkey
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5894/src/winkey

Modified Files:
	winkey.cpp 
Log Message:
Major features in this patch are:
Merge of Stas' latest source into client.
 - Lots of double buffering code
 - Cleanup of protoyping functions and proper variable initialization
 - Addition of working RSA key generator mkkey.exe (this necessitates another DLL in the source)
 - Updated compile instructions, and a new document on how to make a RSA key
 - Working version of winkey with BCC compiler
 - Bug fixes as per listed in his change log
Cleanup of changes list to remove bug fix/stuff only coders need to know.
Removal of buildexe script - Stas rewrote build to make this obsolete
Addition of HR bitmap set (including a few placeholder bitmaps until art is done)
Metablock patch accepted (not working proper yet though due to retrieving login issue)
Probably a few other things I forgot about!

Index: winkey.cpp
===================================================================
RCS file: /cvsroot/netrek/client/netrekxp/src/winkey/winkey.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- winkey.cpp	12 Apr 2006 04:31:04 -0000	1.1
+++ winkey.cpp	7 May 2006 16:59:27 -0000	1.2
@@ -2,12 +2,19 @@
 #define STRICT
 #include <windows.h>
 
+#if defined(__BORLANDC__)
+extern HHOOK g_hMsgHook;
+extern HHOOK g_hKeyHook;
+
+extern int   g_iFlags;
+#else
 #pragma data_seg(".shared")
 HHOOK g_hMsgHook = NULL;
 HHOOK g_hKeyHook = NULL;
 
 int   g_iFlags = NULL;
 #pragma data_seg()
+#endif
 
 const int KILL_WINKEY =  0x0001;
 const int KILL_CTRLESC = 0x0002;