🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.nt.admin.misc
Article #88

NT Workstation -> Server

#88
From: Anonymous
Date: Thu, 12 Dec 1996 00:00
66 lines
3105 bytes
Do you want NT server ? Try to compile and use the next program :(

#define _UNICODE
#include "windows.h"
#pragma hdrstop
#include "stdio.h"

/*
     This program was compiled by Microsoft Visual C++ 4.0. Before you
   start it, you should exit all other programs. (When this program
   stops, you must use RESET to restart your computer).

     Before you use this program, you should make copy of NT registry
   database (\winnt\system32\config\*.*). Then, if your NT directory
   is on FAT, you can restore original configuration if something goes
   wrong. (And it sometimes it GOES wrong!)
  
     This program don't work if service pack 1 has been applied. But
   you can first use this program and then apply service pack 1. This
   should work fine.
  
     Last, but not least, you should read again your NT licence whether
   everything you are doing is legal. I thing that (according to law in
   our country) running and distributing this program is legal but you
   are still limited by NT Workstation's licence (you agreed with the
   licence when you installed NT).

   p.s.Uz se tesim na ceske vydani NT. Jsem zvedav, jestli to bude stejne
   trivialni... A nakonec pozdrav: Where do We want You to go Today?

*/

HKEY OpenK(HKEY hCurrent,LPSTR pKey)
{
   HKEY hNew = 0;
   RegOpenKey(hCurrent,pKey,&hNew);  
   return hNew;
}

void main()
{
   SetPriorityClass(GetCurrentProcess(),REALTIME_PRIORITY_CLASS);
   SetThreadPriority(GetCurrentThread(),THREAD_PRIORITY_TIME_CRITICAL);
  
   HKEY hNew; BYTE Data[10]; DWORD Type,Size;

   hNew = OpenK(HKEY_LOCAL_MACHINE,"System");
   hNew = OpenK(hNew,"CurrentControlSet");
   hNew = OpenK(hNew,"Control");
   hNew = OpenK(hNew,"ProductOptions"); 
   RegSetValueEx(hNew,"ProductType",0,REG_SZ,(const unsigned
char*)"ServerNT",9);
   RegFlushKey(hNew);

   hNew = OpenK(HKEY_LOCAL_MACHINE,"System");
   hNew = OpenK(hNew,"Setup");          
   RegQueryValueEx(hNew,"SystemPrefix",0,&Type,Data,&Size);  
   Data[7] |= 0x4;                     
   RegSetValueEx(hNew,"SystemPrefix",0,REG_BINARY,Data,8);
   RegFlushKey(hNew);   

   printf("Wait for several seconds and then press RESET ... and enjoy your NT
Server");  
   for (;;);
}
Technical Details
Message-ID: <199612121919.LAA16516@mailmasher.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 104ed6,3134ea2a1ebbb3de,start
X-Google-Attributes: gid104ed6,public
X-Google-Thread: 115e93,3134ea2a1ebbb3de,start
X-Google-Attributes: gid115e93,public
X-Google-Thread: 1125fa,3134ea2a1ebbb3de,start
X-Google-Attributes: gid1125fa,public
X-Google-Thread: f782f,3134ea2a1ebbb3de,start
X-Google-Attributes: gidf782f,public
From: Anonymous <nobody@mailmasher.com>
Subject: NT Workstation -> Server
Date: 1996/12/12
Message-ID: <199612121919.LAA16516@mailmasher.com>
X-Deja-AN: 203753187
organization: http://www.mailmasher.com pseudonymous service
mail-to-news-contact: admin@nym.alias.net
comments: Please report abuse to abuse@mailmasher.com
newsgroups: comp.os.ms-windows.nt.admin.misc,comp.os.ms-windows.nt.advocacy,cz.comp.windows.nt,microsoft.public.windowsnt.misc