Hilfe bei C Source Code
Da ich mich ja zur Zeit mit der C Entwicklung herumplage, bin ich auf folgenden Code Snippet gestoßen.
Kann mir jemand die Funktion erklären?
/*
Microsoft(c) Code
Project: Whistler(tm)
Projected release-date: October 2001
$History$
*/
#include "system_errors.h"
#include "stdlib.h"
#include "msdos_bugs.h"
#include "win31.h"
#include "workst~1.h"
#include "oldstuff.h"
#include "billrulz.h"
#include "monopoly.h"
#include "assembler.h"
#define INSTALL = HARD
char make_prog_look_big[1600000];
layout set near CarbonLook() of (Mac OS X)
set bluescreen color = #0000ff;
void main()
{
while(!CRASHED)
{
display_copyright_message();
do_nothing_loop();
if (detect_cache())
disable_cache();
registry_size = registry_size + 200 kB;
if (first_time_installation)
{
make_50_megabyte_swapfile();
install msn();
search_and_destroy_the_rest_of_OS/2();
totally_screw_up_HPFS_file_system();
make_futile_attempt_to_damage_Linux();
disable_Netscape();
hang_system();
}
write_something(anything);
display_copyright_message();
do_nothing_loop();
seek for OEM CD at Drive D:\ E:\ F:\ G:\ H:\
do_some_stuff();
if (still_not_crashed)
{
display_copyright_message();
do_nothing_loop();
basically_run_windows_3.1();
do_nothing_loop();
make busy harddisk drive(30sec);
do_nothing_loop();
}
}
if (fast_cpu())
{
set_wait_states(lots);
set_mouse(speed, very_slow);
set_mouse(action, jumpy);
set_mouse(reaction, sometimes);
}
/* printf("Welcome to Windows 3.11"); */
/* printf("Welcome to Windows 95"); */
/* printf("Welcome to Windows 98"); */
/* printf("Welcome to Windows NT 3.0"); */
/* printf("Welcome to Windows 2000"); */
printf("Welcome to Windows XP");
if (system_ok())
crash(to_dos_prompt);
else
system_memory = open("c:\swp001.swp" O_CREATE);
if detect [Netscape/Mozilla]
{
message ("New default Browser is MSIE");
delete Netscape(); install MSIE 5.5(== 80MB);
smarttags.enabled:=true;
}
if user install software
{
if subdir <> "c:/windows/system";
set install path to c:/windows/system;
}
while(something)
{
sleep(5);
get_user_input();
sleep(5);
act_on_user_input();
while printer usage set soundcard == off;
}
create_general_protection_fault();
crash(complete_system);
return(unrecoverable_system);
}
[danke und via Luftpiraten]
Kann mir jemand die Funktion erklären?
/*
Microsoft(c) Code
Project: Whistler(tm)
Projected release-date: October 2001
$History$
*/
#include "system_errors.h"
#include "stdlib.h"
#include "msdos_bugs.h"
#include "win31.h"
#include "workst~1.h"
#include "oldstuff.h"
#include "billrulz.h"
#include "monopoly.h"
#include "assembler.h"
#define INSTALL = HARD
char make_prog_look_big[1600000];
layout set near CarbonLook() of (Mac OS X)
set bluescreen color = #0000ff;
void main()
{
while(!CRASHED)
{
display_copyright_message();
do_nothing_loop();
if (detect_cache())
disable_cache();
registry_size = registry_size + 200 kB;
if (first_time_installation)
{
make_50_megabyte_swapfile();
install msn();
search_and_destroy_the_rest_of_OS/2();
totally_screw_up_HPFS_file_system();
make_futile_attempt_to_damage_Linux();
disable_Netscape();
hang_system();
}
write_something(anything);
display_copyright_message();
do_nothing_loop();
seek for OEM CD at Drive D:\ E:\ F:\ G:\ H:\
do_some_stuff();
if (still_not_crashed)
{
display_copyright_message();
do_nothing_loop();
basically_run_windows_3.1();
do_nothing_loop();
make busy harddisk drive(30sec);
do_nothing_loop();
}
}
if (fast_cpu())
{
set_wait_states(lots);
set_mouse(speed, very_slow);
set_mouse(action, jumpy);
set_mouse(reaction, sometimes);
}
/* printf("Welcome to Windows 3.11"); */
/* printf("Welcome to Windows 95"); */
/* printf("Welcome to Windows 98"); */
/* printf("Welcome to Windows NT 3.0"); */
/* printf("Welcome to Windows 2000"); */
printf("Welcome to Windows XP");
if (system_ok())
crash(to_dos_prompt);
else
system_memory = open("c:\swp001.swp" O_CREATE);
if detect [Netscape/Mozilla]
{
message ("New default Browser is MSIE");
delete Netscape(); install MSIE 5.5(== 80MB);
smarttags.enabled:=true;
}
if user install software
{
if subdir <> "c:/windows/system";
set install path to c:/windows/system;
}
while(something)
{
sleep(5);
get_user_input();
sleep(5);
act_on_user_input();
while printer usage set soundcard == off;
}
create_general_protection_fault();
crash(complete_system);
return(unrecoverable_system);
}
[danke und via Luftpiraten]
Bob-der-Blogmeister - 10. Mär, 12:27
0 Kommentare - Kommentar verfassen - 0 Trackbacks
Trackback URL:
https://blogmeister.twoday.net/stories/563611/modTrackback