home *** CD-ROM | disk | FTP | other *** search
/ Freelog 24 / Freelog024.iso / Popup / Junkbuster / win32.c < prev   
C/C++ Source or Header  |  1998-10-30  |  1KB  |  44 lines

  1. char *win32_rcs = "$Id: win32.c,v 1.11 1998/02/06 00:23:52 ACJC Exp $";
  2. /* Written and copyright 1997 Anonymous Coders and Junkbusters Corporation.
  3.  * Distributed under the GNU General Public License; see the README file.
  4.  * This code comes with NO WARRANTY. http://www.junkbusters.com/ht/en/gpl.html
  5.  */
  6. #ifdef _WIN32
  7.  
  8. #include <stdio.h>
  9. #ifdef REGEX
  10. #include "gnu_regex.h"
  11. #endif
  12. #include "jcc.h"
  13. #include <windows.h>
  14.  
  15. extern int hideConsole;
  16. void InitWin32()
  17. {
  18.     WORD wVersionRequested;
  19.     WSADATA wsaData;
  20.  
  21.     SetProcessShutdownParameters(0x100, SHUTDOWN_NORETRY);
  22.     if (hideConsole) {
  23.         FreeConsole();
  24.     }
  25.  
  26.     wVersionRequested = MAKEWORD(2, 0);
  27.     if (WSAStartup(wVersionRequested, &wsaData) != 0) {
  28.         exit(1);
  29.     }
  30. }
  31.  
  32. char *win32_blurb =
  33. "Internet Junkbuster Proxy(TM) Version " VERSION " for Windows is Copyright (C) 1997-8\n"
  34. "by Junkbusters Corp.  This is free software; it may be used and copied under\n"
  35. "the GNU General Public License: http://www.junkbusters.com/ht/en/gpl.html.\n"
  36. "This program comes with ABSOLUTELY NO WARRANTY OF ANY KIND.\n"
  37. "\n"
  38. "For information about how to to configure the proxy and your browser, see\n"
  39. "        http://www.junkbusters.com/ht/en/ijbwin.html#v" VERSION_MAJOR "\n"
  40. "\n"
  41. "The Internet Junkbuster Proxy(TM) is running and ready to serve!\n"
  42. ;
  43. #endif
  44.