行业新闻
网友曝光Windows Vista源代码
[时间:2008-04-07 10:31 am | 编辑:mu ]

  4月7日消息,Digg网站日前发表一篇文章爆炸性地披露了WindowsVista原代码的细节。人们能够在网页的图片中清晰地看到Vista代码的复杂性,或者看到Vista源代码是什么样子。

  一幅图片也许比1000个字更有说服力。但是,这些源代码不会永远存在于网页的图片上。谷歌的搜索引擎肯定会找到它。因此,一位业内人士把这个代码的图片转换为文本重新发表出来。

  在美国司法部和欧盟最终看到Vista为何如此失败的原因的时候,微软的律师肯定会忙得不可开交。微软肯定要投入大量资金调查这个事情。

  同时,微软的敌人现在能够看到这个很容易拷贝的有价值的代码。采用开源软件修改的盗版的Vista软件也许很快就会出现。Linux开发人员也许能从这些源代码中学到一些教训。

  目前还不清楚这些源代码是否包含VistaSP1的改进功能,不过,业内人士认为这是VistaRTM版的源代码。也许泄漏这个源代码的人还会找到SP1的源代码并且把它曝光。下面是Digg网站发表的源代码。的确,这是某个人编的一个笑话。因为有趣,所以发表出来与大家共享。

  Digg网站发表的源代码

  /*

  GNOT General Public License!

  (c) 1995-2007 Microsoft Corporation

  */

  #include “dos.h”

  #include “win95.h”

  #include “win98.h”

  #include “sco_unix.h”

  class WindowsVista extends WindowsXP implements Nothing

  {}

  int totalNewFeatures = 3;

  int totalWorkingNewFeatures = 0;

  float numberOfBugs = 345889E+O8;

  boolean readyForRelease = FALSE;

  void main {

  while (!CRASHED) {

  if (first_time_install) {

  if ((installedRAM < 2GB) ||

  (processorSpeed < 4GHz))

  {

  MessageBox(”Hardware incompatibility error.”);

  GetKeyPress();

  BSOD();

  }

  }

  Make10GBswapfile():

  SearchAndDestroy(FIREFOX|OPENOFFICEORG|ANYTHING_GOOGLE);

  AddRandomDriver();

  MessageBox(”Driver incompatibility error.”);

  GetKeyPress();

  BSOD();

  }

  //printf(”Welcome to Windows 2000″);

  //printf(Welcome to Windows XP”);

  printf (”Welcome to Windows Vista”);

  if (still_not_crashed){

  CheckUserLicense();

  DoubleCheckUserLicense();

  TripleCheckUserLicense();

  RelayUserDetaitsToRedmond();

  DisplayFancyGraphics();

  FlickerLED(hard_drive);

  RunWindowsXP();

  return LotsMoreMoney,

  }

  }

产品咨询与帮助请前往 毒霸客服专区>> 网友评论  

Linux开发人员也许能从这些源代码中学到一些教训??
就这种代码???

笑死啦:)好搞笑,最搞笑是這一段
int totalNewFeatures = 3;

int totalWorkingNewFeatures = 0;

float numberOfBugs = 345889E+O8;

boolean readyForRelease = FALSE;
自己加一句
if (LotsMoreMoney > 1000000000000) {
boolean readyForRelease = TURE;
}

This is a big joke

开始时应该再加几句:
if(Startup_Rolling < 100)
{
printf(”Unknow Error:%i”,getRolling());
sleep(5);
BSOD();
}
if(DiskRPM < 8400 && DiskSpeed < 8GB)
{
printf(”Bad HardDisk!”);
sleep(5);
BSOD();
{
if(GraphicsMemory <128MB)
{
printf(”Bad Graphics Card!”);
sleep(5);
BSOD();
}
if(AudioBox != 5.1)
{
printf(”Cannot Play Microsoft Sound!”);
sleep(5);
BSOD();
}

  • 匿名发表 昵称:
  •  邮箱:
  •  验证码:
前往毒霸产品下载页,体验2008版最新安全技术