Chinaunix

标题: Windows 98的源代码!!![ZT!!!!] [打印本页]

作者: zalem    时间: 2005-12-20 21:30
标题: Windows 98的源代码!!![ZT!!!!]
ZT!!!!

http://forum.tech.sina.com.cn/cgi-bin/viewone.cgi?gid=23&fid=290&itemid=80607



  1. 项目:Chicago(tm)
  2. 项目发行日期:1998年夏天
  3. */
  4. #include "win31.h"
  5. #include "win95.h"
  6. #include "evenmore.h"
  7. #include "oldstuff.h"
  8. #include "billrulz.h"
  9. #define INSTALL = HARD
  10. char make_prog_look_big[1600000]; /*使程序看起来很大*/
  11. void main()
  12. {
  13. while(!CRASHED) {  /*如果不崩溃*/
  14.  display_copyright_message();  /*显示版权信息*/
  15.  display_bill_rules_message();  /*显示比尔的规则的信息*/
  16.  do_nothing_loop();        /*进行空循环*/
  17.  if (first_time_installation) {  /*如果是第一次安装*/
  18.   make_50_megabyte_swapfile();   /*创建50M的交换文件*/
  19.   do_nothing_loop();        /*进行空循环*/
  20.   totally_screw_up_HPFS_file_system(); /*将HPFS文件系统完全搞乱*/
  21.   search_and_destroy_the_rest_of_OS/2(); /*搜寻并删除OS/2的所有残余信息*/
  22.   hang_system();  /*挂起系统*/
  23.   }
  24.  write_something(anything); /*随便写一些信息*/
  25.  display_copyright_message(); /*显示版权信息*/
  26.  do_nothing_loop();  /*进行空循环*/
  27.  do_some_stuff();
  28.  if (still_not_crashed) {  /*如果还没崩溃*/
  29.   display_copyright_message(); /*显示版权信息*/
  30.   do_nothing_loop();    /*进行空循环*/
  31.   basically_run_windows_3.1(); /*基本上运行Windows 3.1*/
  32.   do_nothing_loop();  /*进行空循环*/
  33.   do_nothing_loop();  /*进行空循环*/
  34.   }
  35.  }
  36.  if (detect_cache()) /*如果检测到缓存*/
  37.   disable_cache();  /*使缓存失效*/
  38.  if (fast_cpu()) {  /*如果CPU很快*/
  39.   set_wait_states(lots); /*设置等待状态*/
  40.   set_mouse(speed, very_slow); /*设置鼠标(速度很慢)*/
  41.   set_mouse(action, jumpy);  /*设置鼠标(动作跳跃)*/
  42.   set_mouse(reaction, sometimes); /*设置鼠标(有时反应)*/
  43.   }
  44. /* printf("Welcome to Windows 3.11"); */
  45. /* printf("Welcome to Windows 95"); */
  46. printf("Welcome to Windows 98"); /*输出“欢迎使用Windows 98”*/
  47. if (system_ok()) /*如果系统正常*/
  48.  crash(to_dos_prompt); /*崩溃(到DOS提示符)*/
  49. else
  50.  system_memory = open("a:\swp0001.swp", O_CREATE);
  51.  /*否则打开a:\swp0001.swp作为系统内存*/
  52. while(something) {
  53.  sleep(5);   /*睡眠5秒钟*/
  54.  get_user_input(); /*接收用户输入*/
  55.  sleep(5);   /*睡眠5秒钟*/
  56.  act_on_user_input(); /*对用户输入起反应*/
  57.  sleep(5);   /*睡眠5秒钟*/
  58.  }
  59. create_general_protection_fault(); /*产生一般保护错误*/

复制代码




作者: zalem    时间: 2005-12-20 21:32
/* printf("Welcome to Windows 3.11"; */
/* printf("Welcome to Windows 95"; */
printf("Welcome to Windows 98"; 



作者: dlflying    时间: 2005-12-20 21:33
看不懂ING
作者: rainballdh    时间: 2005-12-20 22:40
原帖由 zalem 于 2005-12-20 21:30 发表
ZT!!!!

http://forum.tech.sina.com.cn/cg ... 90&itemid=80607

[code]

项目:Chicago(tm)
项目发行日期:1998年夏天
*/
#include "wi ...

FT
作者: japonensis    时间: 2005-12-20 22:42
埋汰人呢
作者: ipaddr    时间: 2005-12-20 22:44
有意思吗?
作者: zalem    时间: 2005-12-20 23:31
原帖由 ipaddr 于 2005-12-20 22:44 发表
有意思吗?

我觉得我2楼引的那段挺搞笑哈




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2