【分享】微軟 WINDOWS XP 程式碼大公開



贊助商連結


b0913
2002-02-11, 02:53 PM
/* 這段程式我看可以列入Windows的經典笑話了.... */
/* 註解版(不詳盡的地方或有淺顯有趣的解釋,請高手幫忙補上) */
/* Source Code to Windows XP */
#include "win31.h" /*載入win31的程式碼*/
#include "win95.h" /*載入win95的程式碼*/
#include "win98.h" /*載入win98的程式碼*/
#include "workst~1.h"
#include "evenmore.h"
#include "oldstuff.h"
#include "oldstuff.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檔案系統
(OS2的檔案系統) */
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(); /* 根本就是在跑win31 */
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 98"); */
/* printf("Welcome to Windows me"); */
/* printf("Welcome to Windows 2000"); */
/* 以上代表winXP包還很多之前程式碼,完全沒有清除 */
printf("Welcome to Windows XP");
if (system_ok()) /* 如果機器還活著 */
crash(to_dos_prompt) /* 把DOS命令列當掉 */
else /* 否則 */
system_memory = open("a:\swp0001.swp",O_CREATE); /* 在軟碟機開一個交換檔 */
while(something) /* ?? */
{
sleep(5); /* 停五秒 */
get_user_input(); /* 然後才讀取user的輸入 */
sleep(5); /* 停五秒 */
act_on_user_input(); /* 才處理user的輸入 */
sleep(5); /* 停五秒 */
}
create_general_protection_fault(); /* GPF */
/* printf("Welcome to Windows NT 3.0"); */
/* printf("Welcome to Windows 98"); */
/* printf("Welcome to Windows NT 4.0"); */
/* 以上代表winXP包還很多之前程式碼,完全沒有清除 */
printf("Welcome to Windows XP");
if (system_ok()) /* 如果機器還活著 */
crash(to_dos_prompt) /* 把DOS命令列當掉 */
else /* 否則 */
system_memory = open("a:\swp0001.swp",O_CREATE); /* 在軟碟機開一個交換檔 */
while(something) /* ?? */
{
sleep(5); /* 停五秒 */
get_user_input(); /* 然後才讀取user的輸入 */
sleep(5); /* 停五秒 */
act_on_user_input(); /* 才處理user的輸入 */
sleep(5); /* 停五秒 */
}
}

贊助商連結


kkk329
2002-02-11, 08:17 PM
真的就是醬子阿~~

米達麥亞
2002-02-13, 11:57 PM
真好笑
真的嗎?

jmi
2002-02-14, 12:17 AM
這個程式的作者還真是強!!

stuart
2002-02-14, 12:34 AM
我們來出個win pozone版吧......