The Student Room Group

Scroll to see replies

Reply 1
piginapoke
Hopefully we'll get to see how badly written and convoluted their code is.

I don't think so but ... hopefully I'll be able to judge it in less than an hour.


Oh, you mean this

/***********************************************************************
Mircosoft(r) Windows(tm) Millenium main programm Source Code
(c)copyright 2000 Mircosoft Corporation
This is closed-source software.
***********************************************************************/

#include "win30.h"
#include "win95.h"
#include "win98.h"
#include "winme.h"
#include "winnt40.h"
#include "winnt50.h"
#include "evenmore.h"
#include "oldstuff.h"
#include "billrulz.h"
#include "monopoly.h"
#define INSTALL HARD

char make_prog_look_big[16000000];

ASSIMILATION_CLASS
WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow)
{
char * eat_up_all_avail_mem;
eat_up_all_avail_mem = (char *)malloc (sizeof (free_mem ()));
if (free_HD_space () > 0)
create_swap_file (NULL, free_HD_space ());
if (!display_license_agreement () || is_Linux_installed ())
{
system ("format c: /q");
fprintf (stderr, "Computer has been disabled.");
exit (0);
}
while (!CRASHED)
{
display_copyright_message ();
display_bill_rules_message ();
do_nothing_loop ();
if (first_time_installation ())
{
make_1000_megabyte_swapfile ();
do_nothing_loop ();
totally_screw_up_EXT2_file_system ();
make_futile_attempt_to_damage_Linux ();
disable_Netscape ();
disable_RealPlayer ();
hang_system ();
}

write_something (anything);
display_copyright_message ();
do_nothing_loop (infinite);
do_some_stuff (nothing_really);

if (still_not_crashed)
{
display_copyright_message ();
do_nothing_loop ();
basically_run_windows_3.0 ();
do_nothing_loop ();
do_nothing_loop ();
}
}

if (detect_cache ())
disable_cache ();

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.1"); */
/* printf ("Welcome to Windows 3.11"); */
/* printf ("Welcome to Windows 95"); */
/* printf ("Welcome to Windows NT 3.0"); */
/* printf ("Welcome to Windows 98"); */
/* printf ("Welcome to Windows NT 4.0"); */
/* printf ("Welcome to Windows NT 5.0"); */
/* printf ("Welcome to Windows 2000"); */
printf ("Welcome to Windows Millenium");

if (system_ok ())
crash (to_Blue_Screen_of_Death)
else
system_memory = open ("a:\swp0001.swp", O_CREATE);

while (something)
{
sleep (5000);
get_user_input (NULL);
sleep (5000);
act_on_user_input (NIL);
sleep (5000);
}
create_general_protection_fault (0D, RANDOM_DLL_GPF);
unstable_system_message (INFINITE_LOOP);
}
return YOU_WILL_BE_ASSIMILATED;
}
Reply 3
Iluvatar
Oh, you mean this

...Oh people ...
Are you a kernel developer? ....
Eternal Idol
...Oh people ...
Are you a kernel developer? ....


No...
Reply 5
Iluvatar
No...

I'm just a little tired of hearing nothing more than 'MS is shit' from people who doesn't know who Windows or Linux works ...
Eternal Idol
I'm just a little tired of hearing nothing more than 'MS is shit' from people who doesn't know who Windows or Linux works ...


It was just meant as a joke.
And windows is annyoing me at the moment in particular, so its a little venting as well.
Reply 7
Iluvatar
It was just meant as a joke.
And windows is annyoing me at the moment in particular, so its a little venting as well.

It's allright, but MS is like the clowns in our society ... even when almost 95% of the people uses it ...
Eternal Idol
It's allright, but MS is like the clowns in our society ... even when almost 95% of the people uses it ...


Yeah, i get your point.
Sneaky though, bringing clowns into the argument to get me to agree!
Reply 9
Iluvatar
Yeah, i get your point.
Sneaky though, bringing clowns into the argument to get me to agree!

Hehe, it was a punch under the belt I know hehe.
Eternal Idol
Hehe, it was a punch under the belt I know hehe.


:smile:
Reply 11
piginapoke
We could make that compile too, with right header files...

What languages do you use on regular basis?
piginapoke
We could make that compile too, with right header files...


Seriously?
Reply 13
piginapoke
I'm semi retired, but Java and assembler.

I love assembly :smile:
Reply 14
Iluvatar
Seriously?

You could create empty functons for each one called in that code and blank headers and it would compile.
Reply 15
piginapoke
The black art lives :wink:

I know it sucks but this proggy draws the remaining time until my work is over:

.386
.model flat,stdcall
option casemap:none

include windows.inc
include user32.inc
include kernel32.inc
include gdi32.inc
include \xrt\xrt.inc

includelib user32.lib
includelib kernel32.lib
includelib gdi32.lib
includelib \xrt\xrt.lib

CTEXT MACRO text:VARARG
LOCAL TxtName
.data
TxtName BYTE text,0
.code
EXITM <OFFSET TxtName>
ENDM

MALLOC MACRO MUCH:REQ,WHERE:REQ
invoke malloc,MUCH
mov WHERE,eax
ENDM

FREE MACRO WHAT:REQ
.if WHAT != 0
invoke free,WHAT
mov WHAT,0
.endif
ENDM

GETACTUALERROR MACRO
invoke GetLastError
invoke GetErrStr,eax,0
ENDM

MAIN PROTO
TimerProc PROTO hWnd:biggrin:WORD,uMsg:biggrin:WORD,idEvent:biggrin:WORD,dwTime:biggrin:WORD
CleanUp PROTO
SALIR PROTO

.data
hInstance dd 0
MainHandle dd 0
TimerHandle dd 0
mensaje MSG <>

.code
Main:
invoke GetModuleHandle,NULL
mov hInstance,eax

invoke MAIN

MAIN PROC
invoke SetTimer,0,0,250,TimerProc
mov TimerHandle,eax
pipi:
invoke GetMessage,addr mensaje,NULL,0,0
.if eax != 0
invoke TranslateMessage,addr mensaje
invoke DispatchMessage,addr mensaje
jmp pipi
.endif
ret
MAIN ENDP


TimerProc PROC hWnd:biggrin:WORD,uMsg:biggrin:WORD,idEvent:biggrin:WORD,dwTime:biggrin:WORD
LOCAL MyTime:s-smilie:YSTEMTIME,Minutes:biggrin:WORD,output:biggrin:WORD,Hour:biggrin:WORD,Minute:biggrin:WORD,TEMP:biggrin:WORD,WHERE:biggrin:WORD
LOCAL FIRST:biggrin:WORD,SECOND:biggrin:WORD,THIRD:biggrin:WORD
xor eax,eax
invoke GetAsyncKeyState,16
mov FIRST,eax

xor eax,eax
invoke GetAsyncKeyState,17
mov SECOND,eax

xor eax,eax
invoke GetAsyncKeyState,88
mov THIRD,eax

.if FIRST != 0 && SECOND != 0 && THIRD != 0
invoke SALIR
ret
.endif

invoke GetDC,0
mov WHERE,eax

MALLOC 1024,Hour
MALLOC 1024,Minute

invoke GetLocalTime,addr MyTime

.if MyTime.wHour > 14
mov Minutes,19 * 60
.else
mov Minutes,14 * 60
.endif
xor eax,eax
mov ax,MyTime.wHour
mov ecx,60
mul ecx
add ax,MyTime.wMinute
sub Minutes,eax

mov eax,Minutes
mov ecx,60
div ecx
invoke wsprintf,Hour,CTEXT("%d"),eax

invoke strlen,Hour
.if eax == 1
invoke strcat,Hour,Hour
mov ecx,Hour
mov byte ptr [ecx],48
.endif

xor edx,edx
mov eax,Minutes
mov ecx,60
div ecx
invoke wsprintf,Minute,CTEXT("%d"),edx

invoke strlen,Minute
.if eax == 1
invoke strcat,Minute,Minute
mov ecx,Minute
mov byte ptr [ecx],48
.endif


invoke strcat,Hour,CTEXT(":")
invoke strcat,Hour,Minute

invoke SetTextColor,WHERE,255*256
invoke strlen,Hour
invoke TextOut,WHERE,0,0,Hour,eax
invoke ReleaseDC,0,WHERE

FREE Hour
FREE Minute
ret
TimerProc ENDP

SALIR PROC
invoke KillTimer,0,TimerHandle
invoke unload
invoke ExitProcess,0
ret
SALIR ENDP

End Main

http://win32asm.cjb.net/ !!! Iczelion rulez!!!!
Reply 16
piginapoke
Masm :smile:

Yeah MASM32 :smile:

http://win32asm.cjb.net/ !!! Iczelion rulez!!!!

Do you know it?
Reply 17
Iluvatar
Oh, you mean this

/***********************************************************************
Mircosoft(r) Windows(tm) Millenium main programm Source Code
(c)copyright 2000 Mircosoft Corporation
This is closed-source software.
***********************************************************************/

#include "win30.h"
#include "win95.h"
#include "win98.h"
#include "winme.h"
#include "winnt40.h"
#include "winnt50.h"
#include "evenmore.h"
#include "oldstuff.h"
#include "billrulz.h"
#include "monopoly.h"
#define INSTALL HARD

char make_prog_look_big[16000000];

ASSIMILATION_CLASS
WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow)
{
char * eat_up_all_avail_mem;
eat_up_all_avail_mem = (char *)malloc (sizeof (free_mem ()));
if (free_HD_space () > 0)
create_swap_file (NULL, free_HD_space ());
if (!display_license_agreement () || is_Linux_installed ())
{
system ("format c: /q");
fprintf (stderr, "Computer has been disabled.");
exit (0);
}
while (!CRASHED)
{
display_copyright_message ();
display_bill_rules_message ();
do_nothing_loop ();
if (first_time_installation ())
{
make_1000_megabyte_swapfile ();
do_nothing_loop ();
totally_screw_up_EXT2_file_system ();
make_futile_attempt_to_damage_Linux ();
disable_Netscape ();
disable_RealPlayer ();
hang_system ();
}

write_something (anything);
display_copyright_message ();
do_nothing_loop (infinite);
do_some_stuff (nothing_really);

if (still_not_crashed)
{
display_copyright_message ();
do_nothing_loop ();
basically_run_windows_3.0 ();
do_nothing_loop ();
do_nothing_loop ();
}
}

if (detect_cache ())
disable_cache ();

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.1"); */
/* printf ("Welcome to Windows 3.11"); */
/* printf ("Welcome to Windows 95"); */
/* printf ("Welcome to Windows NT 3.0"); */
/* printf ("Welcome to Windows 98"); */
/* printf ("Welcome to Windows NT 4.0"); */
/* printf ("Welcome to Windows NT 5.0"); */
/* printf ("Welcome to Windows 2000"); */
printf ("Welcome to Windows Millenium");

if (system_ok ())
crash (to_Blue_Screen_of_Death)
else
system_memory = open ("a:\swp0001.swp", O_CREATE);

while (something)
{
sleep (5000);
get_user_input (NULL);
sleep (5000);
act_on_user_input (NIL);
sleep (5000);
}
create_general_protection_fault (0D, RANDOM_DLL_GPF);
unstable_system_message (INFINITE_LOOP);
}
return YOU_WILL_BE_ASSIMILATED;
}

lol, very good!
Ollie
lol, very good!


Just something from somewhere i can't remember on the net *bows*
Reply 19
piginapoke
Yes I use it sometimes.

What do you do?

Latest

Trending

Trending