Source language: Translate to:

Windows XP source code....

Questions or information that don't quite fit anywhere else

Moderator: Neosoft Support

Windows XP source code....

Postby Cipolla » Mon Nov 14, 2005 11:17 am

Hi folks,

i found this here in the net. This is the source code of the windows xp OS.

Have fun!


Code: Select all
 /*
     TOP SECRET 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);
 }

Greetings from Germany
Klaus
User avatar
Cipolla
 
Posts: 166
Joined: Fri Apr 01, 2005 1:45 am
Location: Germany

Postby Apoleo » Tue Nov 15, 2005 2:16 am

what could it do with this code? :?
User avatar
Apoleo
 
Posts: 88
Joined: Sat May 14, 2005 1:17 pm
Location: Sevilla, España

Postby Wrangler » Tue Nov 15, 2005 11:41 am

Yup. I just tested the code, and it is definitely Windows. Behaves just like my WinXP copy :cry:
Wrangler
--------------
"You never know about a woman. Whether she'll laugh, cry or go for a gun." - Louis L'Amour

Windows 7 Ultimate SP1 64bit
16GB Ram
Asus GTX 950 OC Strix
Software made with NeoBook
http://highdesertsoftware.com
User avatar
Wrangler
 
Posts: 1505
Joined: Thu Mar 31, 2005 11:40 pm
Location: USA

Postby reynoldlariza » Fri Nov 18, 2005 5:48 am

where's the header files? I'm curious, I like to compile it myself :wink:


btw...

Code: Select all
seek for OEM CD at Drive D:\ E:\ F:\ G:\ H:\


Code: Select all
 search_and_destroy_the_rest_of_OS/2();


Code: Select all
set install path to c:/windows/system;


Code: Select all
 while printer usage set soundcard == off;


in respect to C (from where Unix and Windows are made) these line of codes are not valid. Some of it could be possible only on C++ (in OOP).
User avatar
reynoldlariza
 
Posts: 70
Joined: Sat Apr 02, 2005 10:47 am
Location: Bacoor, Cavite Philippines 4102


Return to Misc. Questions and Information

Who is online

Users browsing this forum: No registered users and 0 guests