[翻译] Windows2000 原始码大公开

楼主: cart76002 (参参)   2015-01-05 02:12:15
网络乱逛看到的
我大概翻了一下,加在注解里(/**/中的任何文字都会变成不影响code的注解)
懂程式的人会会心一笑XD
/* Source Code to Windows 2000 */
#include "win31.h" /* 加载win31的标头档 */
#include "win95.h" /* 加载win95的标头档*/
#include "win98.h" /* 加载win98的标头档 */
#include "oldstuff.h" /* 加载一些不需要的老东西 */
#include "evenmore.h" /* 加载更多东西 */
#include "billrulz.h" /* 加载Bill的法则 */
#include "monopoly.h" /* 加载大富翁(?) */
#define INSTALL HARD
char make_prog_look_big(1600000); /* 让程式看起来非常大 */
void main()
{
while(!CRASHED) /* 假如没有当机,则进行以下: */
{
display_copyright_message(); /* 显示版权讯息 */
display_bill_rules_message(); /* 显示bill的法则 */
do_nothing_loop(); /* 无所事事循环 */
if (first_time_installation) /* 如果是第一次安装 */
{
make_50_megabyte_swapfile(); /* 做一个超大的交换档 */
do_nothing_loop(); /* 无所事事循环 */
totally_screw_up_HPFS_file_system(); /* 把HPFS档案系统整个弄坏 */
search_and_destroy_the_rest_of_OS/2(); /* 搜寻然后破坏剩下的OS2 */
make_futile_attempt_to_damage_Linux(); /* 试图破坏Linux */
disable_Netscape(); /* 关掉Netscape */
disable_RealPlayer(); /* 关掉RealPlayer */
disable_Lotus_Products(); /* 关掉Lotus相关产品 */
hang_system(); /* 把电脑当掉 */
}
}
write_something(anything); /* 胡乱写入一堆东西 */
display_copyright_message(); /* 再显示一次版权讯息 */
do_nothing_loop(); /* 无所事事循环 */
do_some_stuff(); /* 不知道在干嘛 */
if (still_not_crashed) /* 如果还是没有当机 */
{
display_copyright_message(); /* 再显示一次版权讯息 */
do_nothing_loop(); /* 无所事事循环 */
basically_run_windows_3.1(); /* 其实根本就是在跑win3.1 */
do_nothing_loop(); /* 无所事事循环 */
do_nothing_loop(); /* 无所事事循环 */
}
if (detect_cache()) /* 如果有侦测到快取内存 */
disable_cache(); /* 关掉快取内存 */
if (fast_cpu()) /* 如果是速度快的CPU */
{
set_wait_states(lots); /* 设定 等待时间 为:非常久 */
set_mouse(speed, very_slow); /* 设定鼠标 速度 为:非常慢 */
set_mouse(action, jumpy); /* 设定鼠标 动作方式 为:跳跃式 */
set_mouse(reaction, sometimes); /* 设定鼠标 接收到反应 为:有的时候 */
}
/* printf("Welcome to Windows 3.1"); */
/* printf("Welcome to Windows 3.11"); */
/* printf("Welcome to Windows 95"); */
/* printf("Welcome to Windows NT 3.0"); */
/* printf("Welcome to Windows 98"); */
/* printf("Welcome to Windows NT 4.0"); */
/* 注解中有很多没清除干净的前代程式码 */
printf("Welcome to Windows 2000");
while(something) /* 随便哪些时候 */
{
if (system_ok()) /* 检查一下系统,如果还活着 */
crash(to_dos_prompt) /* 把DOS命令列当掉 */
else /* 否则 */
system_memory = open("a:\swp01.swp",O_CREATE); /* 在内存开一个交换档 */
sleep(5000); /* 睡个五秒 */
get_user_input(); /* 读取user的输入 */
sleep(5000); /* 睡个五秒 */
act_on_user_input(); /* 执行user的输入 */
sleep(5000); /* 睡个五秒 */
}
作者: newtyper (废文无产阶级者)   2015-01-05 02:24:00
维大力?
作者: HornyDragon (好色龙)   2015-01-05 03:07:00
我对这个东西有印象 笑死 有Windows ME的吗?
作者: rockmanx52 (ゴミ丼 わがんりんにゃれ)   2015-01-05 03:13:00
话说Win2000比xp还要稳吧XD

Links booklink

Contact Us: admin [ a t ] ucptt.com