34

Windows 10 source code apparently leaked!

The main.c file is short tho and unchanged since 95(it's just run in parallel) so I'mma just paste it here:

void WinMain(int nCmdArgs){
static int userDisgust = 5; //he/she booted up Win10 so 5 to begin with

Time time = Time.time;
while(!crashed){
Time time2 = Time.time;
if(time + 3600 < time2){
ApplyUpdate();
sleep(500000); //users can stretch, have a tea and overall be healthier, happier and better part of society
if(restartNecessary){
Restart();
}
Restart(); // just in case
}
SendUserData();
SendMoreUserData();

for(int i = 1; i < 99+1; i++){
RunUserApps();
UninstallUnnecessaryApps(); // keeps blacklist of apps that John and I don't like
AnnoyUser(); // added a function that slows the computer down significantly and reduces lifespan of the hardware so it's not just a short term gain
if(shouldRepeat){
//break; -- this caused some issue in one special case and we don't know why so we'll just omit it and add a fancy button elsewhere
}
userDisgust++;
}
if(userDisgust >= 2147483647) { //mission finished
Crash();
crashed = true;
}
}
String error = Windows.GetFullErrorMessage();
error.cat(Windows.GetRegistersDump());
error.cat(Windows.GetErrorCode());
error.cat(Windows.GetStackTrace());

error.erase(); // so that it doesn't occupy any space and allows the error to be resolved more quickly, release major optimization Update
BSOD(_T("We're sorry :/"));
}

Comments
  • 11
    BTW looks like they use custom structs and shit for everything.

    "Reinventing the wheel since 1975" - Microsoft
  • 4
    You know you could just make a snippet on hastebin or something and paste the link... just saying.
  • 16
    @Ryhazerus I took writing this on my phone as a challenge proving my endurance and superiority to everyone.
  • 4
    main.c file

    c# code inside

    exciuse me what the fuck?
  • 1
    @Gregozor2121 Microsoft likes to keep stuff consistent. Didn't you see with all the UWP frontends for all the "legacy" apps ?
Add Comment