WEBVTT
Kind: captions
Language: en-US

00:00:06.423 --> 00:00:10.143
Ahh yes, the dulcet tones of Windows 95.

00:00:10.143 --> 00:00:13.179
It's like shoving warm butter into your ears, you know what I mean?

00:00:14.731 --> 00:00:15.899
Or is that just me?

00:00:15.899 --> 00:00:19.019
And it's not just nostalgia speaking, Windows 95 was genuinely

00:00:19.019 --> 00:00:21.388
a huge milestone in the world of home computing.

00:00:21.388 --> 00:00:23.823
There's a reason so many people have fond memories of it,

00:00:23.823 --> 00:00:28.495
it was basically the first OS that mere mortals could actually use and afford.

00:00:28.495 --> 00:00:31.231
Plus just look at all these attractive people using it.

00:00:31.231 --> 00:00:32.365
This could be you!

00:00:32.365 --> 00:00:35.235
Coupled with a lot of technological advancements occurring at the same time,

00:00:35.235 --> 00:00:39.239
Windows 95 stood at the forefront of a very exciting time for personal computers,

00:00:39.239 --> 00:00:43.093
and solidified the Windows-dominated world that we live in today.

00:00:43.093 --> 00:00:45.879
Honestly, why did we ever upgrade from Windows 95?

00:00:45.879 --> 00:00:47.380
I can still browse the internet,

00:00:47.380 --> 00:00:48.381
check my e-mails,

00:00:48.381 --> 00:00:49.649
and write Word documents.

00:00:49.649 --> 00:00:50.567
What more do you need?

00:00:50.567 --> 00:00:52.268
And it doesn't spy on me either.

00:00:52.268 --> 00:00:52.969
You know what?

00:00:52.969 --> 00:00:53.953
Reject modernity,

00:00:53.953 --> 00:00:56.206
embrace thirty-year-old versions of Windows!

00:01:09.335 --> 00:01:13.022
Ohhhh, that's why...

00:01:13.022 --> 00:01:18.928
Yeah it might have been the most usable mainstream OS of its day, but that's not saying much.

00:01:18.928 --> 00:01:21.548
Windows 95, especially in retrospect, was

00:01:21.548 --> 00:01:23.166
and there's no other word for it

00:01:23.166 --> 00:01:23.817
...clunky.

00:01:23.817 --> 00:01:24.851
Maclunkey.

00:01:24.851 --> 00:01:27.270
Even Microsoft was aware of this to an extent.

00:01:27.270 --> 00:01:29.689
At the exact same time they were developing Windows 95,

00:01:29.689 --> 00:01:33.777
they were also developing, from scratch, a much more modern OS called NT.

00:01:33.777 --> 00:01:36.463
An OS with none of the foibles that come from being based on something

00:01:36.463 --> 00:01:39.532
originally called "Quick and Dirty Operating System".

00:01:39.532 --> 00:01:43.319
But NT was far too resource hungry for the average home computer at the time

00:01:43.319 --> 00:01:47.107
and like it or not, its lack of full DOS compatibility would have been a

00:01:47.107 --> 00:01:49.993
significant problem for a lot of regular computer users.

00:01:49.993 --> 00:01:53.429
We did eventually get the benefits of NT at home in the form of Windows XP

00:01:53.429 --> 00:01:56.366
we just needed a stopgap while the rest of the world caught up. 

00:02:01.204 --> 00:02:04.457
So if Windows 95 wasn't even the greatest operating system at the time,

00:02:04.457 --> 00:02:06.126
why are we still talking about it?

00:02:06.126 --> 00:02:06.659
Well...

00:02:07.861 --> 00:02:09.345
...clearly I don't have much else going on.

00:02:09.345 --> 00:02:12.282
Us nerds just enjoy reliving computer history.

00:02:12.282 --> 00:02:14.167
No matter how primitive it all used to be.

00:02:14.167 --> 00:02:16.686
Normal people might like talking about Ancient Rome but

00:02:16.686 --> 00:02:18.872
this was our assassination of Julius Caesar.

00:02:18.872 --> 00:02:22.809
And the one thing we like even more than that is running new stuff on old stuff.

00:02:22.809 --> 00:02:25.395
Ever see Super Mario 64 on Windows 98?

00:02:25.395 --> 00:02:28.431
Or a newish version of Firefox on Windows 2000?

00:02:28.431 --> 00:02:31.417
It may not have a lot of practical use, but man is it satisfying

00:02:31.417 --> 00:02:33.286
seeing these old dogs do new tricks.

00:02:33.286 --> 00:02:34.954
So what happens when you're in the situation

00:02:34.954 --> 00:02:36.756
which I'm sure a lot of us have been

00:02:36.756 --> 00:02:39.342
where you need to write a new app for Windows 95?

00:02:39.342 --> 00:02:41.311
What are even your options?

00:02:41.444 --> 00:02:43.046
Alright team, by which I mean...

00:02:43.580 --> 00:02:44.531
one guy...

00:02:44.764 --> 00:02:48.067
so we've gone over the new project, but the client has made a special request!

00:02:48.067 --> 00:02:50.320
They want it to run on Windows 95!

00:02:50.320 --> 00:02:52.572
Yay...!

00:02:53.840 --> 00:02:55.008
So what are our options?

00:02:55.008 --> 00:02:56.726
Umm, well, it's Windows, right?

00:02:56.726 --> 00:02:58.394
Surely we can just use the Windows API.

00:02:58.394 --> 00:03:00.146
Ugh, the Windows API?

00:03:00.146 --> 00:03:01.164
That thing's a mess.

00:03:01.164 --> 00:03:04.300
Haven't you ever seen how much code it takes just to make a window that does absolutely nothing?

00:03:04.300 --> 00:03:04.901
Come on.

00:03:05.201 --> 00:03:06.553
Do you really hate yourself that much?

00:03:09.055 --> 00:03:10.356
Maybe not that much.

00:03:10.356 --> 00:03:13.259
What about that, uh, Microsoft application framework, MFC?

00:03:13.543 --> 00:03:15.311
Yeah, maybe...

00:03:15.828 --> 00:03:18.348
but what was the last version to support 95, like 4.2?

00:03:18.348 --> 00:03:19.549
Something like that.

00:03:19.549 --> 00:03:20.833
Hmm, it's pretty old...

00:03:20.833 --> 00:03:23.486
The only official way to make the UI is gonna be this clunky old IDE 

00:03:23.486 --> 00:03:25.338
that barely even runs on modern Windows.

00:03:25.338 --> 00:03:26.522
Can't we use anything more modern?

00:03:26.522 --> 00:03:29.175
More modern? I guess that rules out Delphi too?

00:03:29.175 --> 00:03:30.293
Pfft, Delphi?

00:03:30.293 --> 00:03:32.729
What, do you think we're all gonna put up with Object Pascal for the next twenty years?

00:03:32.729 --> 00:03:33.246
Come on.

00:03:33.246 --> 00:03:34.430
Use your head, idiot.

00:03:34.430 --> 00:03:37.717
Okay, well how about that, uh, newfangled one, wxWidgets?

00:03:37.717 --> 00:03:39.869
Oh God, don't get me started, wxWidgets?

00:03:39.869 --> 00:03:42.422
The one that says it works on 95 but actually just doesn't?

00:03:42.422 --> 00:03:45.425
Besides haven't you seen all of the stuff moving away from wxWidgets and towards "Cute"?

00:03:46.743 --> 00:03:47.644
"Cute"?

00:03:47.644 --> 00:03:48.745
Yeah, you know,

00:03:48.745 --> 00:03:49.462
"Cute".

00:03:51.147 --> 00:03:53.316
Ohh, you mean "QT"!

00:03:54.167 --> 00:03:54.884
No...?

00:03:55.134 --> 00:03:56.669
I'm pretty sure it's pronounced "Cute".

00:03:57.220 --> 00:03:58.538
Well I'm not calling it that.

00:03:58.538 --> 00:04:00.123
Oh but you're okay with calling it "cutie"?

00:04:00.573 --> 00:04:02.108
[stammers] That's besides the point!

00:04:02.108 --> 00:04:05.245
First of all, the last version of Qt to support 95 was Qt 3,

00:04:05.245 --> 00:04:07.280
which is already several versions behind.

00:04:07.280 --> 00:04:09.766
Secondly, you'll never be able to find a copy of the builds anywhere.

00:04:09.766 --> 00:04:12.268
Apparently their Windows builds were only part of their "commercial" tier

00:04:12.268 --> 00:04:13.987
and they've never been republished so

00:04:13.987 --> 00:04:16.673
as far as I can tell, they've effectively become lost media.

00:04:16.673 --> 00:04:20.660
Sure we can compile it ourselves with the help of patches from some guy on SourceForge but

00:04:20.660 --> 00:04:24.247
even then, on Windows 95, it only barely actually works. 

00:04:24.247 --> 00:04:25.531
The text is all screwed up,

00:04:25.531 --> 00:04:27.734
windows can't be resized or maximized, which

00:04:27.734 --> 00:04:29.802
especially sucks when one opens looking like this,

00:04:29.802 --> 00:04:32.956
and there's no one to report these issues to because no one's maintained this stuff in about twenty years!

00:04:32.956 --> 00:04:34.857
Alright you've made your point, "Cute" would be a pain in the ass.

00:04:34.857 --> 00:04:35.692
"QT".

00:04:35.692 --> 00:04:38.127
[scoffs] Whatever, alright, do we have anything else?

00:04:38.628 --> 00:04:39.429
Umm...

00:04:39.979 --> 00:04:41.514
twenty-three year old version of Java?

00:04:41.514 --> 00:04:45.285
[sighs] So let me get this straight, we've got like six options and all of them suck.

00:04:46.386 --> 00:04:47.654
...Yeah.

00:04:48.471 --> 00:04:50.857
No wonder everything's a [censored] website nowadays.

00:04:52.558 --> 00:04:54.627
There might be a better way...

00:04:55.445 --> 00:04:56.462
Maybe...

00:04:56.462 --> 00:04:58.965
In the early 2000s, Microsoft introduced .NET

00:04:58.965 --> 00:05:02.101
which confusingly enough has almost nothing to do with the internet.

00:05:02.101 --> 00:05:05.238
Nor does it have anything to do with cars like this commercial suggests.

00:05:05.605 --> 00:05:10.159
But to be fair even I've found it challenging to know how to visually represent .NET.

00:05:10.159 --> 00:05:14.297
It's not like it has a UI and there are only so many times you can show the same logo so

00:05:14.297 --> 00:05:16.966
to solve that I'm just gonna show pictures of this guy instead.

00:05:16.966 --> 00:05:19.719
What .NET really was, was a response to Java

00:05:19.719 --> 00:05:23.423
which had gained a lot of traction for being both easier to write than C/C++

00:05:23.423 --> 00:05:25.425
and completely platform independent.

00:05:25.425 --> 00:05:27.777
"Write once, run anywhere" was Java's slogan

00:05:27.777 --> 00:05:29.846
and it didn't take long for the idea to catch on.

00:05:29.846 --> 00:05:35.335
Microsoft responded by making their own easier version of C++ called... C#...

00:05:35.335 --> 00:05:39.439
And they too made a whole platform independent "write once, run anywhere" infrastructure

00:05:39.439 --> 00:05:41.507
that they then only released on Windows.

00:05:41.507 --> 00:05:45.194
Since then though, Microsoft has become a little less, well...

00:05:45.194 --> 00:05:45.661
...evil.

00:05:45.661 --> 00:05:48.398
And today .NET is available on more or less everything.

00:05:48.398 --> 00:05:52.668
Its primary language, C#, frequently ranks in the top five most popular languages

00:05:52.668 --> 00:05:56.439
and its become essentially the de facto way to write modern Windows apps.

00:05:56.439 --> 00:05:57.974
Well it all sounds great, doesn't it?

00:05:57.974 --> 00:06:00.159
If only we could get this on Windows 9x.

00:06:00.159 --> 00:06:02.061
Well, actually...

00:06:02.061 --> 00:06:02.979
...you can.

00:06:02.979 --> 00:06:06.916
Visual Studio, even today, still supports writing apps for .NET 2

00:06:06.916 --> 00:06:09.886
and .NET 2 supports everything from Windows 11

00:06:09.886 --> 00:06:12.655
all the way down to 98 Second Edition.

00:06:12.655 --> 00:06:16.392
Yeah you can actually write 98 apps with the latest Visual Studio.

00:06:16.392 --> 00:06:18.394
But what about Windows 95?

00:06:18.394 --> 00:06:21.697
What about the king that ushered in the Windows revolution?

00:06:21.697 --> 00:06:23.349
Well, no.

00:06:23.349 --> 00:06:27.203
Even .NET's earliest versions never supported 95.

00:06:27.203 --> 00:06:28.871
Well, why not?

00:06:28.871 --> 00:06:33.292
Is 95 really that much more primitive than 98 and NT 4?

00:06:33.292 --> 00:06:37.029
I mean they all look and feel pretty much the same.

00:06:37.029 --> 00:06:40.767
What is the difference between 98 and 95?

00:06:42.718 --> 00:06:45.121
Well for the record, the answer is 3

00:06:45.121 --> 00:06:47.523
but other than that, I'm not really sure.

00:06:47.523 --> 00:06:51.644
98 definitely feels more refined, and that's mostly how it was marketed

00:06:51.644 --> 00:06:53.446
as a tuneup to Windows 95.

00:06:53.446 --> 00:06:55.631
It did introduce a more stable driver model.

00:06:56.566 --> 00:06:59.001
and it had built in support for USB, but

00:06:59.001 --> 00:07:03.055
how do either of those affect the ability of .NET to run?

00:07:03.055 --> 00:07:06.843
I know this was 2002 and Windows 95 was 7 years old but

00:07:06.843 --> 00:07:10.296
technically Windows 10 is older than that today.

00:07:10.296 --> 00:07:14.383
I needed answers, so I went to the one place I knew I could find some:

00:07:14.383 --> 00:07:16.519
the streets of Los Angeles!

00:07:16.519 --> 00:07:19.372
Why was .NET not released on Windows 95?

00:07:19.789 --> 00:07:20.790
What is .NET again?

00:07:23.776 --> 00:07:25.495
You ever get the feeling you're in a bit of a niche?

00:07:25.495 --> 00:07:30.333
There is actually an answer to this, but it comes in the form of an old Usenet thread from 2001

00:07:30.333 --> 00:07:32.335
back when .NET was still in beta.

00:07:32.335 --> 00:07:35.171
Chris Crabtree tries running .NET on Windows 95

00:07:35.171 --> 00:07:36.772
only to find that it says it doesn't support it

00:07:36.772 --> 00:07:39.659
despite apparently finding some documentation to the contrary.

00:07:39.659 --> 00:07:44.480
Rusty Miller, a Microsoft employee, confirms that Windows 95 will not be supported by .NET.

00:07:44.480 --> 00:07:46.115
When Chris expresses his disappointment,

00:07:46.115 --> 00:07:49.452
another Microsoft employee, Lance Olson, spawns in to explain.

00:07:49.452 --> 00:07:52.805
There's a lot of corporate softspeak here about quality assurance,

00:07:52.805 --> 00:07:53.756
deadlines, and

00:07:53.756 --> 00:07:55.224
customer satisfaction, but

00:07:55.224 --> 00:07:58.744
essentially it all boils down to: they didn't think it would be worth the effort.

00:07:58.744 --> 00:08:00.346
And to an extent they were probably right,

00:08:00.346 --> 00:08:02.448
I mean according to stats collected by w3schools,

00:08:02.448 --> 00:08:05.902
Windows 95 had a whopping .8% marketshare

00:08:05.902 --> 00:08:07.737
around the time .NET was released.

00:08:07.737 --> 00:08:11.557
Now that was probably a little higher for the general population, w3schools has a...

00:08:11.557 --> 00:08:13.309
let's say "technical" demographic,

00:08:13.309 --> 00:08:17.263
but still, if you were Microsoft and you were making something THIS complex,

00:08:17.263 --> 00:08:20.116
even I'll admit that it would be hard to see the point.

00:08:20.116 --> 00:08:23.553
Still, that doesn't help me, or my good friend Chris Crabtree

00:08:23.553 --> 00:08:27.623
or anyone else who wants an easier way to write apps for a nearly 30 year old operating system.

00:08:27.623 --> 00:08:31.410
That being said, Lance Olson does admit something that we've suspected this whole time:

00:08:31.410 --> 00:08:33.779
"Technically," he says, "there are not a ton of differences

00:08:33.779 --> 00:08:36.282
"between Windows 95 and Windows 98,

00:08:36.282 --> 00:08:39.735
"but there certainly are some, and we can't just assume that they won't have an impact."

00:08:39.735 --> 00:08:45.291
Now back in the day, telling Windows 95 users to upgrade was probably not bad advice in general,

00:08:45.291 --> 00:08:48.227
but today we're not using Windows 95 as our daily driver.

00:08:49.278 --> 00:08:50.346
At least I hope you aren't.

00:08:50.346 --> 00:08:53.883
Our goal today is just being able to run new stuff on old stuff, and

00:08:53.883 --> 00:08:57.887
from that perspective getting a whole new app framework on 95 makes a lot of sense.

00:08:57.887 --> 00:08:59.805
Not only would it make it easier to write new stuff,

00:08:59.805 --> 00:09:02.775
it would theoretically backport a ton of existing stuff too.

00:09:02.775 --> 00:09:06.779
According to GitHub, at least a few thousand repositories using this version of .NET.

00:09:06.779 --> 00:09:10.349
Microsoft may not have been willing to smooth over the gaps between 98 and 95

00:09:10.349 --> 00:09:14.704
but they also admit there aren't that many gaps to begin with, so you know what?

00:09:15.371 --> 00:09:16.239
Fine.

00:09:18.291 --> 00:09:20.009
I'll do it myself.

00:09:20.760 --> 00:09:24.080
So I finally decided to plunge in and give it a shot.

00:09:24.080 --> 00:09:26.015
I mean, how hard could it be?

00:09:51.524 --> 00:09:53.259
So uhh...

00:09:54.327 --> 00:09:56.145
What's the deal with backporting?

00:09:59.999 --> 00:10:03.603
Well, like a lot of things, it's actually pretty simple at least in theory.

00:10:03.603 --> 00:10:08.507
If you're writing a program, you may wish to use a fancy newfangled function from the Windows API,

00:10:08.507 --> 00:10:11.327
let's say something introduced first in Windows 10.

00:10:11.327 --> 00:10:14.597
Backporting is essentially just... not doing that.

00:10:14.597 --> 00:10:19.785
Finding ways to achieve the same result, or something close enough, using only older system calls.

00:10:19.785 --> 00:10:22.655
It's kinda like Windows is your office janitor, you know?

00:10:22.655 --> 00:10:25.958
And backporting is like saying to him, no thanks,

00:10:25.958 --> 00:10:27.760
I'll clean the toilets.

00:10:27.760 --> 00:10:30.746
You start to get a feel for why companies don't do this very often.

00:10:30.746 --> 00:10:32.848
Imagine explaining to your boss, "yes sir,

00:10:32.848 --> 00:10:35.368
"I could have had this done within budget and on schedule,

00:10:35.368 --> 00:10:38.371
"but I chose to accept less help.

00:10:39.505 --> 00:10:40.406
"Why?

00:10:41.424 --> 00:10:43.225
"I really wanted to see it run on Windows ME."

00:10:43.225 --> 00:10:46.412
Alright, so .NET is gonna expect certain help from the operating system that

00:10:46.412 --> 00:10:48.864
Windows 95 is not gonna be able to provide.

00:10:48.864 --> 00:10:50.916
So all we have to do to get it running is

00:10:50.916 --> 00:10:53.319
find other ways to do what .NET wants.

00:10:53.319 --> 00:10:55.955
To test our work, I'm using an old version of a tool that mods

00:10:55.955 --> 00:10:59.191
some obscure game called... LEGO Island?

00:10:59.191 --> 00:10:59.992
Never heard of it.

00:10:59.992 --> 00:11:03.329
But whoever wrote this tool ended up rewriting the whole app in MFC

00:11:03.329 --> 00:11:06.248
specifically to support Windows 95.

00:11:06.248 --> 00:11:06.999
But what if I-

00:11:06.999 --> 00:11:08.134
I mean, they,

00:11:08.134 --> 00:11:09.201
never had to?

00:11:09.201 --> 00:11:10.486
Let's find out.

00:11:10.486 --> 00:11:14.740
Now it's one thing to rewrite code when you, you know, have code to rewrite, but

00:11:14.740 --> 00:11:17.360
how are we going to do this with something that's closed source?

00:11:17.360 --> 00:11:20.346
Well, welcome to part 1 of decompiling .NET!

00:11:20.346 --> 00:11:22.214
Okay, no no, I'm kidding, I'm kidding.

00:11:22.214 --> 00:11:25.768
We can actually do this without touching .NET's code at all.

00:11:25.768 --> 00:11:29.638
You see, applications communicate with Windows through an array of DLL files

00:11:29.638 --> 00:11:34.276
and there are many ways to shove our own DLL in between

00:11:34.276 --> 00:11:36.328
with which we can do just about anything.

00:11:36.328 --> 00:11:39.699
Intercept, modify, or even replace calls entirely

00:11:39.699 --> 00:11:42.985
or add those missing calls that the original program expects.

00:11:42.985 --> 00:11:44.754
Is that a good way to write a virus?

00:11:44.754 --> 00:11:46.021
Yes it is!

00:11:46.021 --> 00:11:49.058
Something you might be thinking is this sounds a lot like KernelEx

00:11:49.058 --> 00:11:54.397
a compatibility layer that allows apps for Windows XP and 2000 to run on 98 and ME.

00:11:54.397 --> 00:12:00.753
It's really cool and does work for a lot of things, but not for Windows 95, so we're on our own here.

00:12:00.753 --> 00:12:03.856
Not the first time an ex has left me on my own, am I right ladies?

00:12:03.856 --> 00:12:05.007
Heh yeah!

00:12:05.007 --> 00:12:08.411
Now thankfully I'm not trying to write something as all encompassing as that.

00:12:08.411 --> 00:12:11.080
Technically, I'm only focusing on one app.

00:12:11.080 --> 00:12:12.882
One app that runs a bunch of other apps.

00:12:12.882 --> 00:12:15.901
So that means I only have to worry about what it uses explicitly.

00:12:15.901 --> 00:12:19.655
Speaking of .NET, how do we actually get it installed on this bad boy?

00:12:20.489 --> 00:12:22.608
Obviously it won't be as simple as just running the setup,

00:12:22.608 --> 00:12:26.862
in fact, even the installer complains about missing Windows APIs.

00:12:26.862 --> 00:12:27.513
Damn...

00:12:27.513 --> 00:12:30.249
And honestly I wasn't all that invested in running the installer.

00:12:30.249 --> 00:12:33.068
Chances are with the amount of modifications I'll have to make to .NET,

00:12:33.068 --> 00:12:37.573
it'll probably be worth just making a new installer that makes those modifications automatically.

00:12:37.573 --> 00:12:39.358
So what's the main thing an installer does?

00:12:39.358 --> 00:12:41.660
Well, it puts files on the hard drive, and

00:12:41.660 --> 00:12:45.598
thankfully there are a lot of easy ways to extract files from Windows installers.

00:12:45.598 --> 00:12:48.150
So I just threw the files into the right places on Windows 95,

00:12:48.150 --> 00:12:49.869
and tried it out to see what would happen.

00:12:50.586 --> 00:12:52.738
Exactly what we would expect.

00:12:52.738 --> 00:12:57.510
If an app has a hard dependency on a function Windows can't resolve, it'll refuse to even start it.

00:12:57.510 --> 00:13:00.129
And, weirdly, complain about a device not functioning.

00:13:00.129 --> 00:13:01.647
But this is where we come in.

00:13:01.647 --> 00:13:04.166
Using a tool called "dumpbin", we can list everything it needs

00:13:04.166 --> 00:13:07.770
so now we just have to grind through adding whatever's missing on 95.

00:13:07.770 --> 00:13:09.238
The Dump Bin?

00:13:09.238 --> 00:13:10.756
What is this my house?

00:13:15.594 --> 00:13:18.531
This will cover most of it, but not all of it.

00:13:18.531 --> 00:13:22.418
There are ways to call system functions that fail much more silently.

00:13:22.418 --> 00:13:25.821
Case in point, one DLL wouldn't throw any error message at all.

00:13:25.821 --> 00:13:28.974
Instead, .NET would attempt to reload it infinitely,

00:13:28.974 --> 00:13:30.226
overflow the stack,

00:13:30.226 --> 00:13:33.512
corrupt the memory, and crash the entire computer!

00:13:33.512 --> 00:13:34.380
Cool...

00:13:34.380 --> 00:13:39.151
For the record, that wouldn't actually have been possible on NT, or any modern OS for that matter.

00:13:39.151 --> 00:13:43.489
Only 9x allows a single app to corrupt the entire system's memory.

00:13:43.489 --> 00:13:46.325
One of the many reasons why we don't use 9x anymore.

00:13:50.446 --> 00:13:52.231
But really that's all this was.

00:13:52.231 --> 00:13:55.084
Making fake system DLLs for .NET to talk to,

00:13:55.084 --> 00:13:57.386
 passing through the calls that did exist on 95,

00:13:57.386 --> 00:13:59.154
and adding the ones that didn't.

00:13:59.154 --> 00:14:01.640
Which was really only about twenty or so

00:14:01.640 --> 00:14:06.061
and honestly I'm pretty sure most of these never even get called.

00:14:06.061 --> 00:14:09.415
Now, how can an app have hard dependencies that it doesn't even use?

00:14:09.415 --> 00:14:14.887
Well if you compile something with Visual Studio, by default it links a few standard libraries into your app too.

00:14:14.887 --> 00:14:20.643
This means it will inherit all of the dependencies of those libraries, even if you never actually use any of that stuff.

00:14:20.643 --> 00:14:25.931
That's why even a simple Hello World app built with the latest Visual Studio won't run on Windows 95.

00:14:25.931 --> 00:14:29.151
You have to disable any default libraries and only add what you need.

00:14:29.151 --> 00:14:31.687
Again, assuming you only use stuff that is on 95.

00:14:31.687 --> 00:14:33.556
It's like I'm just trying to "hello a world" here.

00:14:37.343 --> 00:14:39.929
Where did you get this from? Why are you carrying this around?

00:14:39.929 --> 00:14:46.569
So I have to admit, if I never saw a function actually get used, I just left it blank because it didn't matter.

00:14:46.569 --> 00:14:50.072
For the ones that did get used, they were actually really straightforward.

00:14:50.072 --> 00:14:52.975
I thought I was gonna have to steal code from Wine for these, but

00:14:52.975 --> 00:14:57.997
honestly it was all pretty obvious what each function needed to do just from the name or description.

00:14:57.997 --> 00:15:01.467
There were things that realistically couldn't be implemented on Windows 95,

00:15:01.467 --> 00:15:04.637
they just had no relevance or support at the OS level, but

00:15:04.637 --> 00:15:08.857
for those I could just get away with faking the results without causing any adverse effects.

00:15:08.857 --> 00:15:11.510
Eventually I'd worked through all of these system calls and

00:15:11.510 --> 00:15:13.312
added some registry entries it asked for, and

00:15:13.312 --> 00:15:17.633
for a lot of apps that would have probably been sufficient, but not here,

00:15:17.633 --> 00:15:20.836
in fact, now when I'd open an app I'd get... nothing...

00:15:21.487 --> 00:15:24.456
Well... at least it's not an error message...

00:15:24.456 --> 00:15:25.774
Uhh...

00:15:25.774 --> 00:15:27.826
...progress?

00:15:27.826 --> 00:15:29.595
Well I got my DLLs to produce some logs

00:15:29.595 --> 00:15:33.582
so I could see not only if and when it was calling my hacked together code, but

00:15:33.582 --> 00:15:37.336
also if they, or any other system calls for that matter, were failing.

00:15:37.336 --> 00:15:41.423
And I soon found one that was, though it wasn't actually one of mine.

00:15:41.423 --> 00:15:44.426
Yeah so just because a function exists in Windows 95

00:15:44.426 --> 00:15:47.680
doesn't mean it works the same way as it did later on.

00:15:47.680 --> 00:15:48.864
It's kinda like puberty, you know,

00:15:48.864 --> 00:15:50.633
old stuff has new functionality.

00:15:51.517 --> 00:15:53.636
Anyway, uhh, that's the end of my set.

00:15:53.636 --> 00:15:55.371
Umm, goodbye everyone.

00:15:55.955 --> 00:15:57.423
[cheering]

00:15:57.957 --> 00:15:58.991
Seriously?

00:15:59.358 --> 00:16:02.011
So I guess I don't have a career as a standup comedian.

00:16:02.011 --> 00:16:04.046
It's okay, I'll go console myself with that new movie

00:16:04.046 --> 00:16:05.447
I hear it's pretty therapeutic.

00:16:05.447 --> 00:16:06.532
Besides, at least I went on now,

00:16:06.532 --> 00:16:08.400
I hear the guy from Seinfeld's going up next.

00:16:26.852 --> 00:16:27.870
The computer.

00:16:27.870 --> 00:16:30.873
A brilliant tool for anything from equations to communications.

00:16:30.873 --> 00:16:32.992
An electronic tool like never seen before.

00:16:32.992 --> 00:16:35.778
Something so powerful, it can even work with letters and words.

00:16:35.778 --> 00:16:38.163
Watch what happens as Clive here pushes a key on the keyboard.

00:16:40.749 --> 00:16:44.119
As you can see, that very same letter appears on the screen like magic.

00:16:44.119 --> 00:16:46.655
But the computer does not speak a language like you or me.

00:16:46.655 --> 00:16:48.157
The computer speaks in numbers.

00:16:48.157 --> 00:16:53.245
In order to produce human-readable words, the computer needs a way to relate those numbers to letters and vice versa.

00:16:53.245 --> 00:16:55.280
This is called an "encoding".

00:16:55.280 --> 00:17:00.235
For decades, different people speaking different languages would use distinct and largely incompatible encodings.

00:17:00.235 --> 00:17:03.122
This was fine when communicating only with people in the same country,

00:17:03.122 --> 00:17:05.574
but our world is becoming more interconnected as we speak.

00:17:05.574 --> 00:17:09.912
And when documents are traded between these incompatible encodings, all havoc breaks loose.

00:17:09.912 --> 00:17:13.499
These concerns led to the formation of the Unicode consortium in 1991

00:17:13.499 --> 00:17:16.285
to create a single encoding for every language in the world.

00:17:16.285 --> 00:17:21.874
It is thanks to Unicode that today Japanese hentai can be seamlessly viewed by computer users in America.

00:17:21.874 --> 00:17:23.659
But it didn't get that way overnight.

00:17:23.659 --> 00:17:28.080
Early versions of Unicode required existing software to make significant changes in order to adopt it.

00:17:28.080 --> 00:17:30.833
Potentially even requiring large scale rewrites.

00:17:30.833 --> 00:17:36.739
Nevertheless, it was still considered so valuable, Microsoft had Unicode in their Windows operating system by 1993.

00:17:36.739 --> 00:17:38.741
But this early adoption came at a price.

00:17:38.741 --> 00:17:43.445
As many programs, including certain versions of Windows itself, could not be easily adapted to Unicode,

00:17:43.445 --> 00:17:49.535
Microsoft, as well as many Windows developers, would be forced to support both Unicode and non-Unicode simultanously.

00:17:49.535 --> 00:17:54.957
The Unicode consortium soon released UTF-8, a standard that required minimal changes to existing code if any.

00:17:54.957 --> 00:17:56.625
But it was too late for Windows.

00:17:56.625 --> 00:17:59.778
Windows developers would be forced to frequently convert between the competing standards.

00:17:59.778 --> 00:18:02.915
Exactly the kind of scenario Unicode was intended to prevent.

00:18:02.915 --> 00:18:05.534
Microsoft's own .NET does these conversions too,

00:18:05.534 --> 00:18:09.822
causing problems on Windows 95 as it is simply too old to know what UTF-8 is.

00:18:09.822 --> 00:18:13.242
However since the string is simple ASCII, and UTF-8 is fully backwards compatible,

00:18:13.242 --> 00:18:14.409
the conversion can be switched over with no consequence.

00:18:14.409 --> 00:18:15.778
the conversion can be switched over with no consequence.

00:18:15.778 --> 00:18:19.364
Luckily this solution was relatively simple, but it could have been much worse,

00:18:19.364 --> 00:18:22.000
and it's just another consequence of Windows Unicode.

00:18:22.000 --> 00:18:26.321
We can only hope that the world of international communication continues to become more harmonious.

00:18:32.427 --> 00:18:35.931
Well now that we've worked that out, it should just work right?

00:18:36.482 --> 00:18:38.951
Yeah... about that...

00:18:38.951 --> 00:18:44.957
I'd finally figured out all of the DLLs but was still getting vague cryptic errors I couldn't trace.

00:18:44.957 --> 00:18:48.794
By this point, I started testing my work on a clean Windows 98 install too

00:18:48.794 --> 00:18:51.830
since .NET should have no problem running there.

00:18:51.830 --> 00:18:54.216
Yet I was seeing the same error.

00:18:54.216 --> 00:18:58.687
Clearly my installer is missing something and honestly that's not hard to believe.

00:18:58.687 --> 00:19:00.689
I mean just look at the original installer.

00:19:00.689 --> 00:19:02.391
Look how much stuff it's doing.

00:19:02.391 --> 00:19:05.527
Who, what, where, why?

00:19:05.527 --> 00:19:09.581
I had no idea, and it was no use staring at it and hoping I'd catch everything.

00:19:09.581 --> 00:19:13.468
I needed to dig into this installer and see exactly what it was doing.

00:19:26.148 --> 00:19:27.449
I don't really like musicals.

00:19:28.016 --> 00:19:29.852
Nothing against them or anything, I just don't really see why

00:19:29.852 --> 00:19:32.154
someone would start singing in the middle of a video

00:19:32.154 --> 00:19:34.056
Feels like it would throw off the pacing, you know?

00:19:35.657 --> 00:19:36.642
Anyway, where were we?

00:19:36.642 --> 00:19:38.644
So let's talk about this installer for a second.

00:19:38.644 --> 00:19:41.730
I've already mentioned how it won't run out of the box on Windows 95,

00:19:41.730 --> 00:19:46.201
however if you unpack it, you'll find it's centered around a bog standard MSI file.

00:19:46.201 --> 00:19:48.770
If you're a Windows user, you've almost certainly seen these before.

00:19:48.770 --> 00:19:50.956
And hey, shouldn't we be able to run that directly as long as we have the

00:19:50.956 --> 00:19:53.542
Windows Installer Framework... installed?

00:19:53.542 --> 00:19:55.928
Well, apparently no.

00:19:55.928 --> 00:19:58.847
For some reason it insists that we run it from the EXE,

00:19:58.847 --> 00:20:01.400
the one that doesn't run on Windows 95.

00:20:01.934 --> 00:20:02.551
Okay...

00:20:02.551 --> 00:20:05.637
Now as I said, I wasn't originally planning to use this installer anyway,

00:20:05.637 --> 00:20:07.239
I just wanted to see what it did.

00:20:07.239 --> 00:20:09.608
But then I learned that Microsoft has a tool called Orca

00:20:09.608 --> 00:20:13.262
that can not only view but also edit MSI files?

00:20:13.262 --> 00:20:16.381
Maybe I don't have to make a new installer from scratch, let's check it out!

00:20:16.381 --> 00:20:22.888
"This tool is only available in the&nbsp;Windows SDK Components for Windows Installer Developers"

00:20:22.888 --> 00:20:25.908
Umm, okay... let's install that?

00:20:25.908 --> 00:20:30.245
Now generally, the Windows SDK components are installed automatically with Visual Studio,

00:20:30.245 --> 00:20:33.632
but for some reason you can't actually get Orca this way.

00:20:33.632 --> 00:20:35.767
You have to download a separate SDK installer,

00:20:35.767 --> 00:20:40.505
which will almost certainly refuse to run because it'll detect the SDK you already have from Visual Studio.

00:20:40.839 --> 00:20:41.556
Great...

00:20:41.556 --> 00:20:45.577
So here I go uninstalling those, which was its own little maze because

00:20:45.577 --> 00:20:47.829
apparently I had two SDKs installed.

00:20:47.829 --> 00:20:52.451
Yeah somehow having two SDKs wasn't a problem before, it's just this moody [censored] that can't handle it.

00:20:52.451 --> 00:20:56.488
Finally I can start installing the Windows Installer tools, but guess what!

00:20:56.488 --> 00:20:58.757
This still doesn't install Orca!

00:20:58.757 --> 00:21:01.877
Instead it just installs... the installer!

00:21:01.877 --> 00:21:04.613
You have to manually comb through your file system to find it.

00:21:04.613 --> 00:21:08.684
You try to run it and it flashes on the screen for barely a second, and you're like what the hell was that?

00:21:08.684 --> 00:21:09.618
Is it broken?

00:21:09.618 --> 00:21:14.222
But no, don't be confused, Orca is now installed on your system.

00:21:14.439 --> 00:21:16.925
Okay, just one really simple question.

00:21:16.925 --> 00:21:19.461
What the [censored] was the point of all that?

00:21:19.461 --> 00:21:21.313
Why couldn't you just put this installer online?

00:21:21.313 --> 00:21:23.198
You know, maybe here? Or here?

00:21:23.198 --> 00:21:27.436
Hell, any of the various places you had to write "you can't download Orca separately".

00:21:27.436 --> 00:21:32.274
Anyway, Orca can indeed open and view the various tables making up .NET's installer.

00:21:32.274 --> 00:21:36.578
It's not the most readable thing in the world, but does indeed seem to be everything.

00:21:36.578 --> 00:21:39.514
But can we actually edit the installer? Let's find out.

00:21:39.514 --> 00:21:42.534
I managed to track down that check it does to see if it was launched from the EXE

00:21:42.534 --> 00:21:45.170
so let's try removing it and see what happens.

00:21:45.704 --> 00:21:51.443
Wait, apparently that's not all I removed, how is the installer now a tenth of the size it used to be?

00:21:51.443 --> 00:21:54.446
In fact, why does this happen whether I make a change or not?

00:21:54.446 --> 00:21:57.265
Orca just discards, like, most of the file.

00:21:57.265 --> 00:22:00.402
My guess is Orca isn't including the actual install files

00:22:00.402 --> 00:22:02.404
you know, the stuff we extracted earlier,

00:22:02.404 --> 00:22:05.791
but that's kind of an important thing to include and

00:22:05.791 --> 00:22:08.944
all I'm left with is an installer that doesn't work at all.

00:22:08.944 --> 00:22:11.113
No wonder they buried this as deep as they could,

00:22:11.113 --> 00:22:12.564
I'd be ashamed too.

00:22:12.564 --> 00:22:16.935
Maybe the .NET installer was made in a way that happens to be incompatible with Orca?

00:22:16.935 --> 00:22:21.023
But you'd think if any tool stood a chance of working with a Microsoft installer,

00:22:21.023 --> 00:22:23.458
it would be, you know, their own.

00:22:23.458 --> 00:22:26.561
So yeah, looks like MSI editing is a bust.

00:22:26.561 --> 00:22:28.663
Back to plan A: recreating.

00:22:28.663 --> 00:22:33.402
Sadly, I mentioned it wasn't particularly readable, but it's actually even worse than that.

00:22:33.402 --> 00:22:35.303
This stuff is downright obtuse.

00:22:35.303 --> 00:22:36.321
What did you call me?

00:22:36.321 --> 00:22:39.074
Like, look at this, I may as well be reading Egyptian hieroglyphics.

00:22:39.074 --> 00:22:44.730
I was poring over this stuff for hours just trying to figure out what the hell this was doing that my installer wasn't.

00:22:44.730 --> 00:22:47.749
And I'll be honest, I'm still not sure I understand all of it.

00:22:47.749 --> 00:22:49.568
God, I'd rather listen to Russell Crowe sing.

00:22:49.568 --> 00:22:51.236
AND I'M JAVERT!

00:22:51.236 --> 00:22:52.487
Well, maybe not, actually.

00:22:52.487 --> 00:22:55.824
What I did figure was that I should get all the registry entries ported over.

00:22:55.824 --> 00:23:00.562
That's usually the other big thing a Windows installer does, and .NET clearly had a lot of them.

00:23:00.562 --> 00:23:05.283
But I was not prepared for just how many...

00:23:05.283 --> 00:23:09.521
Welcome back to America's favorite game show, How Many Registry Entries,

00:23:09.521 --> 00:23:12.257
and we finish today with an audience question.

00:23:12.257 --> 00:23:13.458
I'll ask a question,

00:23:13.458 --> 00:23:16.762
and I'll call on three completely random members of the audience.

00:23:16.762 --> 00:23:19.064
If you get it right, you become...

00:23:19.064 --> 00:23:23.535
the proud owner of a brand new...

00:23:23.535 --> 00:23:28.440
PHILIPS CD-I!

00:23:28.440 --> 00:23:29.908
Alright, alright, alright,

00:23:29.908 --> 00:23:32.244
here we are with the Answertron 5000

00:23:32.244 --> 00:23:34.079
here to help us out with this next question.

00:23:39.017 --> 00:23:40.719
Wow, a lot of excitement for this one!

00:23:40.719 --> 00:23:41.787
Alright, closing my eyes,

00:23:41.787 --> 00:23:43.855
no cheating, this really is random.

00:23:44.523 --> 00:23:46.858
I'm picking, I'm picking, I'm picking...

00:23:46.858 --> 00:23:47.559
You!

00:23:47.559 --> 00:23:48.260
In the hat.

00:23:48.260 --> 00:23:49.294
Err... uhh...

00:23:50.662 --> 00:23:51.563
Give me 23!

00:23:51.563 --> 00:23:52.931
23!

00:23:52.931 --> 00:23:55.233
Not a bad guess at all, best of luck to you.

00:23:55.233 --> 00:23:57.836
Alright let's pick our next contestant...

00:23:57.836 --> 00:23:58.637
You!

00:23:58.637 --> 00:24:00.138
With the... hair.

00:24:00.138 --> 00:24:01.373
Uhh, 100!

00:24:01.373 --> 00:24:03.341
100, I like it!

00:24:03.341 --> 00:24:05.577
Go big or go home, that's what I always say.

00:24:05.577 --> 00:24:07.279
Alright, we need one more guess,

00:24:07.279 --> 00:24:09.781
one more chance to win the CD-i.

00:24:09.781 --> 00:24:11.583
Gonna be...

00:24:11.583 --> 00:24:12.417
You!

00:24:12.417 --> 00:24:13.051
In the front.

00:24:13.351 --> 00:24:15.020
69!

00:24:15.187 --> 00:24:16.988
69!

00:24:19.558 --> 00:24:20.659
A popular guess!

00:24:20.659 --> 00:24:22.260
But is it correct?

00:24:22.260 --> 00:24:22.994
Let's find out.

00:24:22.994 --> 00:24:25.263
Answertron, show us the correct answer please.

00:24:31.336 --> 00:24:35.640
Aww I'm so sorry guys, and it was so close too.

00:24:36.141 --> 00:24:39.945
Ech, yeah I don't know why, and I don't want to know why

00:24:39.945 --> 00:24:44.516
but that really is the number of entries .NET 2 adds to your registry.

00:24:44.516 --> 00:24:47.452
It's honestly kind of rude, Microsoft.

00:24:47.452 --> 00:24:50.188
I didn't ask for this much bloat to be added to my computer.

00:24:50.188 --> 00:24:51.890
Why are you so buff?

00:24:51.890 --> 00:24:52.924
Is it necessary?

00:24:52.924 --> 00:24:56.394
It's like some kind of cancer seeping its tentacles all over your system.

00:24:56.394 --> 00:25:01.349
But I have to assume they exist for a reason so off I went adding them to my installer.

00:25:01.349 --> 00:25:04.853
Obviously processing thousands of registry entries by hand would be a waste of time,

00:25:04.853 --> 00:25:09.808
so I wrote a script to translate from Orcalang to the install system I was using.

00:25:09.808 --> 00:25:12.677
Yeah, Orcalang, that's about how understandable any of this is.

00:25:12.677 --> 00:25:15.630
Was that the missing piece?

00:25:15.630 --> 00:25:16.498
...No.

00:25:16.498 --> 00:25:19.834
It probably helped, but we were still missing one thing.

00:25:19.834 --> 00:25:24.189
Something that I actually didn't get from poring through Orca tables.

00:25:24.189 --> 00:25:28.126
Remember when I said I wasn't going to figure anything out by just staring at the installer?

00:25:28.126 --> 00:25:31.796
Well, I figured this one out by just staring at the installer.

00:25:31.796 --> 00:25:35.650
I noticed it spent a decent chunk of time installing .NET assemblies, and I was like,

00:25:35.650 --> 00:25:38.336
well how's it doing that? What does that even mean?

00:25:38.336 --> 00:25:42.774
Well it turns out one of the core components of .NET is the Global Assembly Cache or GAC.

00:25:44.593 --> 00:25:49.731
The GAC is supposed to be a smarter alternative to just dumping DLLs in the Windows folder.

00:25:49.731 --> 00:25:54.803
The GAC keeps track of each library and each version, so in theory you can have multiple versions of everything

00:25:54.803 --> 00:25:57.706
and apps will automatically link to the right ones every time.

00:25:57.706 --> 00:25:59.391
It's actually a pretty good idea.

00:25:59.391 --> 00:26:01.726
The GAC is stored in C:\Windows\assembly,

00:26:01.726 --> 00:26:06.715
and on Windows 98 they perform some black magic to actually get it to list the libraries and versions.

00:26:06.715 --> 00:26:11.336
In reality, it's just a bunch of folders with confusing names that our installer was gonna have to recreate.

00:26:11.336 --> 00:26:12.520
But... how?

00:26:12.520 --> 00:26:17.876
MSI installers, as it turns out, have built in functionality specifically for installing stuff into the GAC,

00:26:17.876 --> 00:26:21.096
but NSIS, which I was using, does not.

00:26:21.096 --> 00:26:26.534
What I found was back in .NET 1, there was a tool called gacutil which let you install stuff from command line.

00:26:26.534 --> 00:26:32.857
I don't know why this was seemingly removed by version 2, but it still works so I should just be able to call it from my installer.

00:26:32.857 --> 00:26:36.544
On Windows 95, gacutil didn't quite work out of the box.

00:26:36.544 --> 00:26:39.047
It actually needed a few more system calls.

00:26:39.047 --> 00:26:43.368
What didn't help was at one point it started giving me very contradictory information.

00:26:43.368 --> 00:26:45.954
Yeah, a real "task failed successfully" moment.

00:26:45.954 --> 00:26:50.742
Once again, my logs helped a lot in figuring out what it was at least trying to do

00:26:50.742 --> 00:26:54.462
and eventually I finally had it installing the assemblies correctly.

00:26:54.462 --> 00:26:57.632
Windows 95 doesn't handle that fancy listing magic in Explorer,

00:26:57.632 --> 00:27:00.268
but 98 does, in fact, with all of that,

00:27:00.268 --> 00:27:03.021
.NET now works perfectly on 98.

00:27:03.021 --> 00:27:06.658
I think I've officially faithfully recreated the .NET installer,

00:27:06.658 --> 00:27:12.547
which means any problems we run into now must be exclusively due to differences between 98 and 95.

00:27:12.547 --> 00:27:18.136
And yes there were more problems, but I was way too deep in to turn back now.

00:27:18.136 --> 00:27:21.039
The roles were cast, the stage was set,

00:27:21.039 --> 00:27:23.608
now... what the hell is an unhandled exception?

00:27:35.570 --> 00:27:37.739
Every night I watch this city get worse.

00:27:38.273 --> 00:27:40.975
Dirtier, noisier, sleazier.

00:27:41.476 --> 00:27:43.645
The rich get richer and the poor get poorer.

00:27:45.363 --> 00:27:47.649
Look at these people, they have no idea.

00:27:48.116 --> 00:27:51.069
They haven't stared into the depths of this city's underbelly like I have.

00:27:51.569 --> 00:27:52.937
Blown capacitors,

00:27:52.937 --> 00:27:54.572
corrupted save files,

00:27:54.572 --> 00:27:56.858
rotting PS3s full of cockroaches

00:27:56.858 --> 00:27:57.942
I've seen it all.

00:27:58.860 --> 00:28:00.729
Nothing surprises me anymore.

00:28:00.979 --> 00:28:02.864
To feel something you need a soul,

00:28:03.064 --> 00:28:04.783
and I think mine's pretty much all gone.

00:28:05.850 --> 00:28:07.435
I really need a vacation.

00:28:07.435 --> 00:28:09.654
[phone rings]

00:28:15.643 --> 00:28:16.478
Yeah?

00:28:16.478 --> 00:28:19.030
Hey, there's a woman in the office to see you.

00:28:20.031 --> 00:28:21.983
Tell her my hours are 8:30 to 6.

00:28:21.983 --> 00:28:23.935
It's about Windows 95.

00:28:31.276 --> 00:28:32.727
I'll be right there.

00:28:35.897 --> 00:28:37.565
The murder of Windows 95.

00:28:38.366 --> 00:28:41.186
The first time I saw this city for what it really is.

00:28:41.603 --> 00:28:45.940
It was over twenty years ago Mr Crabtree entered my office to report a hit on 95

00:28:45.940 --> 00:28:47.525
but we didn't act fast enough.

00:28:48.026 --> 00:28:51.529
All that was left was a small trinket cleaned of all fingerprints.

00:28:51.946 --> 00:28:53.782
A calling card that we never saw again.

00:28:54.282 --> 00:28:57.819
I was just a rookie back then, but I've never gotten over it.

00:28:58.903 --> 00:29:00.688
Let's see what this is all about.

00:29:04.275 --> 00:29:11.516
Alright, well strap in, we're about to get really into the weeds here because this is where I was stuck for the longest.

00:29:11.516 --> 00:29:15.170
Remember back in Act 1 when I said any normal app we'd be done by now?

00:29:15.170 --> 00:29:16.054
Yeah...

00:29:16.054 --> 00:29:19.023
So .NET says an unhandled exception occurred.

00:29:19.023 --> 00:29:22.177
It provides no other information apart from a cryptic sequence of hex numbers

00:29:22.177 --> 00:29:25.330
and an offer to send the exception to a just-in-time debugger.

00:29:25.330 --> 00:29:28.967
Which would be great if, you know, this wasn't Windows 95

00:29:28.967 --> 00:29:31.386
 and there actually were any just-in-time debuggers.

00:29:31.386 --> 00:29:34.305
Yeah, remember .NET is not like regular code.

00:29:34.305 --> 00:29:37.425
It gets compiled just-in-time as you use it

00:29:37.425 --> 00:29:39.844
and actually one of the benefits to this approach is that

00:29:39.844 --> 00:29:42.564
since .NET compiled your app, it can actually

00:29:42.564 --> 00:29:44.983
pretty comprehensively debug it as well.

00:29:44.983 --> 00:29:48.086
Which makes a cryptic error like this even more frustrating.

00:29:48.086 --> 00:29:50.205
Debug yourself, you [censored] coward!

00:29:50.205 --> 00:29:53.174
I guess it's happening too early for any of that infrastructure to be available

00:29:53.174 --> 00:29:55.727
so, okay fine, I'll play it your way.

00:29:55.727 --> 00:29:58.379
And by "your way", I mean I have no idea what way.

00:29:58.379 --> 00:30:01.716
I had so few helpful tools available on Windows 95,

00:30:01.716 --> 00:30:04.169
and it's not like I could use any other OS because...

00:30:04.519 --> 00:30:06.004
then I wouldn't be having this problem.

00:30:06.004 --> 00:30:08.089
The only thing I could think to do was...

00:30:08.089 --> 00:30:10.241
...use a regular machine code debugger.

00:30:10.241 --> 00:30:12.911
While .NET code is not machine code,

00:30:12.911 --> 00:30:16.014
it does eventually become machine code and

00:30:16.014 --> 00:30:19.834
maybe looking at that would give me a hint as to what was going wrong.

00:30:19.834 --> 00:30:22.537
Let me tell you, this process was pure torture.

00:30:22.537 --> 00:30:26.357
Just imagine trying to set breakpoints on code that doesn't even exist yet

00:30:26.357 --> 00:30:29.110
and you'll get an idea of how frustrating this was.

00:30:29.110 --> 00:30:33.031
It didn't help that the only debugger I could find that still supported Windows 95

00:30:33.031 --> 00:30:38.019
was this, this piece of [censored] geriatric version of Win... Dbg.

00:30:38.019 --> 00:30:39.954
Let me tell you, I hate this thing.

00:30:39.954 --> 00:30:42.924
I'm sure someone out there will tell me I was just using it wrong but

00:30:42.924 --> 00:30:45.226
I could not get this thing to cooperate.

00:30:45.226 --> 00:30:47.846
You'll see what I mean later on, but all I'll say now is

00:30:47.846 --> 00:30:49.764
I wish I could have used something else.

00:30:49.764 --> 00:30:52.567
But the pickings were slim on Windows 95.

00:30:56.955 --> 00:31:00.275
Luckily, the first exception happened before any recompiled code

00:31:00.275 --> 00:31:02.827
so it was fairly easy to track down

00:31:02.827 --> 00:31:05.797
but that didn't make it any less confusing.

00:31:08.433 --> 00:31:11.636
Windows 95's murder didn't just shock the nation.

00:31:11.636 --> 00:31:13.855
It left behind a devastated widow.

00:31:13.855 --> 00:31:15.773
A woman I hadn't seen for twenty years.

00:31:16.307 --> 00:31:18.726
Anyone who knew her knew she adored her husband.

00:31:18.977 --> 00:31:21.613
I hear she still grieves like it was just yesterday.

00:31:25.366 --> 00:31:27.402
I'm sorry we never found anything.

00:31:29.487 --> 00:31:30.455
Well...

00:31:32.540 --> 00:31:34.292
Maybe this will help.

00:31:39.247 --> 00:31:40.748
I found it while cleaning.

00:31:40.748 --> 00:31:44.252
It's addressed to me, but I don't know what it means.

00:31:44.252 --> 00:31:46.554
I... thought maybe you would.

00:31:51.859 --> 00:31:55.797
No, you haven't suddenly contracted an acute case of dyslexia,

00:31:55.797 --> 00:31:59.884
.NET really tries to load a file called... this.

00:31:59.884 --> 00:32:03.554
It's a VxD, which is a device driver from early versions of Windows.

00:32:03.554 --> 00:32:06.240
Remember when I said Windows 98 introduced a new driver model?

00:32:06.240 --> 00:32:08.593
Well, this is what it upgraded from.

00:32:08.593 --> 00:32:12.380
So, uhh, you know, just one small question...

00:32:12.380 --> 00:32:17.702
Why in the name of [censored] is it trying to use a driver for an OS it doesn't even support?

00:32:17.702 --> 00:32:21.873
And what could it possibly need a driver for anyway, aren't they usually for hardware?

00:32:21.873 --> 00:32:25.877
I've tried looking this thing up, but there is literally nothing about it online.

00:32:25.877 --> 00:32:29.814
The only results are just people listing the files that come with .NET.

00:32:29.814 --> 00:32:33.601
No attempt to figure out or explain what it is or does. 

00:32:33.601 --> 00:32:36.387
Maybe if it wasn't called "nud-phul-purr", I might at least have a chance

00:32:36.387 --> 00:32:38.272
of guessing what it means, but no!

00:32:38.272 --> 00:32:41.876
Anyway .NET tries to load it and Windows returns a "file not found" error.

00:32:42.377 --> 00:32:43.911
I mean, it is there.

00:32:43.911 --> 00:32:45.813
I can see it in the System folder.

00:32:45.813 --> 00:32:49.667
Though you may notice .NET doesn't try to load it from the System folder.

00:32:49.667 --> 00:32:52.754
What's this slash-and-dot pattern at the start of the path?

00:32:52.754 --> 00:32:55.807
Well, apparently this is a DOS device path for...

00:32:56.624 --> 00:32:59.143
...loading DOS devices, I guess.

00:32:59.143 --> 00:33:02.397
And is apparently the correct way to load a VxD.

00:33:02.397 --> 00:33:06.617
So why doesn't it think the driver is there when it clearly is there?

00:33:06.617 --> 00:33:08.353
Well, truthfully...

00:33:08.353 --> 00:33:09.420
I don't know!

00:33:09.420 --> 00:33:11.522
Seriously, I never figured this out.

00:33:11.522 --> 00:33:14.425
I mean maybe I was supposed to install this driver somehow

00:33:14.425 --> 00:33:16.527
to let Windows know it existed, but

00:33:16.527 --> 00:33:20.715
I couldn't seem to find any information about how or if I should do that, and

00:33:20.715 --> 00:33:24.986
besides Windows 98 was fine with my installer, it didn't seem to need anything like that.

00:33:24.986 --> 00:33:28.423
I even tried reading this old book specifically about VxD drivers

00:33:28.423 --> 00:33:31.159
until it became unreasonably popular for some reason.

00:33:31.159 --> 00:33:35.830
I even loaded the driver into Ghidra on the off chance I could see what it was trying to do, but

00:33:35.830 --> 00:33:38.583
this stuff was too dense even for me.

00:33:38.583 --> 00:33:41.285
I had to get some more information, so I wrote some code

00:33:41.285 --> 00:33:45.289
that would log all of the communication between .NET and the driver on Windows 98.

00:33:45.289 --> 00:33:48.526
This way I could at least see when and where it was used, which

00:33:48.526 --> 00:33:51.329
must be a lot if it refuses to run without it, right?

00:33:51.329 --> 00:33:57.218
Well after all of that, guess how many times I saw .NET and the driver actually talk.

00:33:57.719 --> 00:33:59.003
Once.

00:33:59.003 --> 00:34:01.005
One time.

00:34:01.005 --> 00:34:03.958
On startup, .NET sends this number.

00:34:08.646 --> 00:34:11.883
And in return, the driver sends back the hex number 40.

00:34:11.883 --> 00:34:12.567
Wow.

00:34:12.567 --> 00:34:13.818
Riveting conversation.

00:34:13.818 --> 00:34:16.854
I've seen couples on Maury Povich with better communication skills than this.

00:34:16.854 --> 00:34:19.957
But you know what, if this is all it is, then...

00:34:19.957 --> 00:34:22.126
why don't we just patch this [censored] out?

00:34:22.126 --> 00:34:25.813
We don't need a driver, I'll just make the easiest hardware emulator ever written.

00:34:26.397 --> 00:34:27.749
May I use my VxD?

00:34:29.267 --> 00:34:32.520
No.
So basically, when .NET tries to load the driver

00:34:32.520 --> 00:34:34.956
I just don't and say I did.

00:34:34.956 --> 00:34:38.910
Then when it tries to send the driver that number, I send back the all-important 40.

00:34:38.910 --> 00:34:40.094
Forty!

00:34:40.094 --> 00:34:42.797
I even show an alert if .NET happens to send anything else

00:34:42.797 --> 00:34:45.416
but so far I've never seen that happen.

00:34:45.416 --> 00:34:49.270
And I'm still no clearer on what any of this is supposed to mean.

00:34:49.270 --> 00:34:50.388
But you know what?

00:34:50.388 --> 00:34:53.024
It's happy, and that's all that matters.

00:34:54.158 --> 00:34:56.961
It, uhh, just doesn't look like it yet.

00:34:56.961 --> 00:35:00.047
Yeah, believe it or not, we're now onto a different exception.

00:35:00.047 --> 00:35:01.115
Can you tell?

00:35:02.600 --> 00:35:05.920
With all this talk of code, I figured I should check out Windows 95's computer.

00:35:06.320 --> 00:35:08.873
We'd taken it in because it had blood and fingerprints on it

00:35:08.873 --> 00:35:11.342
but according to the report, no one ever checked what was on it.

00:35:12.910 --> 00:35:14.562
Windows 95 had a Mac?

00:35:14.562 --> 00:35:16.664
Pfft, yeah I know, right?

00:35:19.750 --> 00:35:21.235
"Dear Nancy"?

00:35:31.579 --> 00:35:32.747
N... D...

00:35:32.747 --> 00:35:34.048
P... H... L...

00:35:34.048 --> 00:35:35.099
P... R...

00:35:42.523 --> 00:35:43.808
"Dear Nancy,

00:35:43.808 --> 00:35:46.244
"If you're reading this, I'm already dead.

00:35:46.244 --> 00:35:49.831
"I've been involved in things I shouldn't have been and now it's too late.

00:35:49.831 --> 00:35:52.867
"I signed my death warrant as soon as I got involved.

00:35:52.867 --> 00:35:57.221
"My killer should be brought to justice but I'm being monitored too closely.

00:35:57.221 --> 00:36:00.575
"I've left an instruction at the bottom of this letter

00:36:00.575 --> 00:36:02.693
"that I hope will help you find them."

00:36:08.633 --> 00:36:10.785
What the hell kind of instruction is that?

00:36:17.959 --> 00:36:20.962
This time we're in deep dynarec territory.

00:36:20.962 --> 00:36:24.115
All code from now on would be generated on-the-fly.

00:36:24.115 --> 00:36:29.120
That means debugging will be more complicated and we have no Ghidra to fall back on anymore.

00:36:29.120 --> 00:36:32.406
That being said, whatever exception this was did seem to correspond

00:36:32.406 --> 00:36:35.543
to a machine code exception that WinDbg could catch.

00:36:35.843 --> 00:36:38.112
Too bad it couldn't do anything else with it.

00:36:38.112 --> 00:36:41.816
Yeah, this is when I started having a lot of trouble with WinDbg.

00:36:41.816 --> 00:36:44.602
and to be honest, I'm still not sure if it was a problem with it

00:36:44.602 --> 00:36:47.672
or I just couldn't figure out how to do what I wanted to do.

00:36:47.672 --> 00:36:52.159
Apparently later versions actually natively support .NET code, but not this one.

00:36:52.159 --> 00:36:55.129
It would catch the exception, which basically means the whole thing would pause

00:36:55.129 --> 00:36:56.581
so I'd have a chance to analyze it,

00:36:56.581 --> 00:36:59.166
and I'd open the call stack to see how we got here

00:36:59.166 --> 00:37:04.472
but every function listed here is just code that passes the exception to the operating system.

00:37:04.472 --> 00:37:07.441
Not the code that caused the exception to begin with.

00:37:07.441 --> 00:37:10.695
Okay, well maybe the dynamically recompiled code is throwing it off

00:37:10.695 --> 00:37:13.614
so I thought maybe if I handled the exception myself

00:37:13.614 --> 00:37:16.918
I could step back to at least somewhere around where it was thrown?

00:37:16.918 --> 00:37:19.186
But all of the stepping functions were grayed out.

00:37:19.186 --> 00:37:22.373
In fact, it explicitly said the only thing I was allowed to do was

00:37:22.373 --> 00:37:26.928
unpause the app, which would obviously cause it to blitz right past the code I was trying to find.

00:37:26.928 --> 00:37:29.080
before I could possibly pause it again.

00:37:29.080 --> 00:37:35.269
The documentation seemed to back that up - that unpausing everything was the only way I could respond to the exception.

00:37:35.269 --> 00:37:37.305
I just couldn't find any other option

00:37:37.305 --> 00:37:39.924
or any other way to get the information I needed.

00:37:39.924 --> 00:37:42.677
Nothing in the help, and definitely nothing online.

00:37:42.677 --> 00:37:48.416
The only thing I could think to do was the dumbest, braindead, bruteforce approach possible.

00:37:48.416 --> 00:37:51.902
I would load up the debugger on Windows 95, and Windows 98

00:37:51.902 --> 00:37:56.307
 side-by-side and step through each one instruction-by-instruction

00:37:56.307 --> 00:37:59.810
until I figured out what Windows 95 was getting wrong.

00:37:59.810 --> 00:38:03.164
Yes, this was as laborious as it sounds

00:38:03.164 --> 00:38:06.600
yes, I was doing this for days on end.

00:38:06.600 --> 00:38:11.555
It's easy to take for granted how quickly computers, even back then, blitzed through this stuff

00:38:11.555 --> 00:38:14.091
until you have to read through it all yourself.

00:38:14.091 --> 00:38:17.244
And if I made a mistake and let one get ahead too quickly,

00:38:17.244 --> 00:38:21.582
I'd have to painstakingly reset it and get it all the way back to where it was before.

00:38:21.582 --> 00:38:25.286
Remember the code I'm debugging gets compiled as the program runs,

00:38:25.286 --> 00:38:29.156
I can't just set a breakpoint at the beginning because it doesn't exist yet.

00:38:29.156 --> 00:38:33.844
I cannot overstate how much this sucked and I wouldn't wish it on my worst enemy.

00:38:33.944 --> 00:38:34.662
Though...

00:38:34.662 --> 00:38:36.864
I'd still rather do this than listen to Russell Crowe sing.

00:38:36.864 --> 00:38:40.334
Yet somehow, as dumb as this approach was,

00:38:40.334 --> 00:38:43.354
it actually did produce results.

00:38:43.354 --> 00:38:47.892
After several days, I eventually arrived at this.

00:38:47.892 --> 00:38:52.713
Instructions so illegal, I guess, that even WinDbg didn't know what to say.

00:38:53.364 --> 00:38:57.635
So what is this? What could it be trying to do?

00:39:20.241 --> 00:39:22.243
[phone rings]

00:39:25.062 --> 00:39:25.896
Yeah?

00:39:26.831 --> 00:39:27.898
Mrs. 95!

00:39:28.632 --> 00:39:29.650
What can I do for you?

00:39:29.650 --> 00:39:31.268
I'm so sorry to bother you

00:39:31.268 --> 00:39:33.938
I just wanted to see how the case was going.

00:39:33.938 --> 00:39:36.273
Did you get anything out of that code?

00:39:36.791 --> 00:39:39.710
Yeah, umm, we learned it was an old code

00:39:39.710 --> 00:39:42.196
umm, something called, umm

00:39:42.913 --> 00:39:43.848
x86.

00:39:43.848 --> 00:39:45.199
x86!

00:39:45.199 --> 00:39:48.786
Something we made back in the 70s and are still somehow using today.

00:39:49.136 --> 00:39:50.638
x86?

00:39:51.088 --> 00:39:54.091
I seem to remember we had a book about that somewhere.

00:39:54.258 --> 00:39:55.159
Really?

00:39:55.159 --> 00:39:55.693
Yeah.

00:39:56.694 --> 00:39:58.179
Do you want me to bring it to you?

00:39:58.179 --> 00:39:59.847
No, how about I come to you.

00:39:59.847 --> 00:40:01.599
See if he left any other clues behind.

00:40:01.682 --> 00:40:02.299
Sure.

00:40:02.566 --> 00:40:03.467
I'll be there soon.

00:40:03.734 --> 00:40:04.835
[phone hangs up]

00:40:36.600 --> 00:40:37.902
Mrs. 95?

00:42:30.197 --> 00:42:32.099
Yes, the reason why WinDbg

00:42:32.099 --> 00:42:33.867
and Windows 95 for that matter,

00:42:33.867 --> 00:42:38.722
couldnt understand this instruction is it's an SSE2 instruction.

00:42:38.722 --> 00:42:42.943
If you don't know what SSE2 is, it's some [censored] Intel added in the year 2000.

00:42:42.943 --> 00:42:45.179
Naturally, Windows 95 wasn't around for this

00:42:45.179 --> 00:42:47.448
in fact, neither was Windows 98.

00:42:47.448 --> 00:42:50.434
But 98 does support the first SSE

00:42:50.434 --> 00:42:53.237
and since SSE2 uses all of the same registers,

00:42:53.237 --> 00:42:55.406
those instructions can get away with running.

00:42:55.406 --> 00:42:57.508
Clearly, because I've been running this in a virtual machine,

00:42:57.508 --> 00:43:01.512
it's looking at my actual CPU's features, as anachronistic as they are.

00:43:01.512 --> 00:43:04.949
So what does this SSE2 code do?

00:43:04.949 --> 00:43:07.835
Well, if we disassemble the bytes with a more modern tool,

00:43:07.835 --> 00:43:09.536
we can see the instruction is...

00:43:09.536 --> 00:43:11.555
Oh! Obviously, right?

00:43:11.555 --> 00:43:12.973
cuvuttsdsdsdsd2see

00:43:12.973 --> 00:43:16.543
Okay, it's obviously an acronym for something that will surely make total sense.

00:43:16.543 --> 00:43:18.429
Ahh yes, of course.

00:43:18.429 --> 00:43:23.083
It "converts with truncation scalar double precision floating-point value to signed integer"!

00:43:23.701 --> 00:43:24.668
Did you get all of that?

00:43:24.668 --> 00:43:26.720
Which is just a long way of saying...

00:43:27.154 --> 00:43:28.322
...it does this.

00:43:28.322 --> 00:43:31.992
The good news is there are ways of doing this without SSE2.

00:43:31.992 --> 00:43:33.744
I guess they're just a little bit slower.

00:43:33.744 --> 00:43:36.814
And .NET should have a fallback to do so, I mean

00:43:36.814 --> 00:43:40.668
even in 2005, not every computer had SSE2.

00:43:40.668 --> 00:43:42.936
Especially not everything running Windows 98.

00:43:42.936 --> 00:43:47.675
Indeed, .NET does have code that checks if the CPU supports SSE2 or not.

00:43:47.675 --> 00:43:50.461
And funnily enough, even Microsoft seemed to be aware that

00:43:50.461 --> 00:43:54.832
just because a CPU supports it doesn't necessarily mean the OS does.

00:43:54.832 --> 00:43:58.535
It does a secondary check where it actually runs an SSE2 instruction

00:43:58.535 --> 00:44:02.406
and if it fails, it ignores what the CPU said and doesn't use it.

00:44:02.406 --> 00:44:04.308
So, umm...

00:44:04.308 --> 00:44:05.676
what's the problem then?

00:44:05.676 --> 00:44:07.828
Why is it still trying to use SSE2?

00:44:07.828 --> 00:44:09.513
Well, here's the problem.

00:44:09.513 --> 00:44:13.017
It turns out they do this double-check everywhere...

00:44:13.017 --> 00:44:15.969
...except for here! Where they don't.

00:44:15.969 --> 00:44:16.704
Cool.

00:44:16.704 --> 00:44:19.356
Remember when I said we wouldn't have to edit any of .NET's code?

00:44:19.356 --> 00:44:21.775
Well, it turns out that we do.

00:44:21.775 --> 00:44:25.329
To patch this one usage of SSE2 out.

00:44:25.329 --> 00:44:30.017
And once I'd figured all that out, I saw this glorious sight...

00:44:30.634 --> 00:44:32.286
Wohohohohoho-

00:44:35.456 --> 00:44:35.956
I got you...

00:44:37.808 --> 00:44:39.376
I got you, you son of a bitch!

00:44:39.376 --> 00:44:42.029
Well, if we're getting this far, we can be reasonably sure

00:44:42.029 --> 00:44:44.865
that all of the backend stuff is working properly, but

00:44:44.865 --> 00:44:48.035
what the hell is this? Another unhandled exception?

00:44:48.035 --> 00:44:50.270
Looks like .NET's debugger is finally kicking in but

00:44:50.270 --> 00:44:54.174
for some reason, I still can't get any information about what's causing these things.

00:44:54.174 --> 00:44:57.010
So close, yet so far, right?

00:44:57.010 --> 00:45:03.317
Upon closer inspection, it seems like interacting with the UI in almost any way throws this exception

00:45:03.317 --> 00:45:08.389
including pressing any of the buttons to, you know, show me the exception.

00:45:08.389 --> 00:45:09.473
Great...

00:45:09.473 --> 00:45:14.545
The WinDbg process, as annoying as it was, had been producing results

00:45:14.545 --> 00:45:17.598
so I went back to it again to figure out what was causing this.

00:45:17.598 --> 00:45:20.768
But this time, it really was impossible.

00:45:20.768 --> 00:45:24.688
It was just too many layers of dynamic recompilation in by this point.

00:45:24.688 --> 00:45:26.940
I just couldn't seem to get anywhere near it.

00:45:26.940 --> 00:45:30.511
After even more hours of wrestling with WinDbg

00:45:30.511 --> 00:45:33.263
I finally decided it was time for some lateral thinking.

00:45:33.263 --> 00:45:36.750
I figured I might not be able to interact with the UI to get the exception,

00:45:36.750 --> 00:45:40.821
but I can probably at least get it to show on the screen somehow.

00:45:40.821 --> 00:45:43.957
I found pretty quickly that I could simulate a button click in C#

00:45:43.957 --> 00:45:46.293
and that that would throw the exception too.

00:45:46.293 --> 00:45:48.712
So I just wrapped a try/catch around it and got it to

00:45:48.712 --> 00:45:50.798
print whatever exception it got to the screen.

00:45:50.798 --> 00:45:56.887
Amazingly, this actually worked, and I could finally see what was wrong.

00:45:56.887 --> 00:46:01.308
Predictably, .NET was trying to call another missing Windows API.

00:46:01.308 --> 00:46:05.329
Yeah, we covered all of the APIs that .NET uses to...

00:46:05.329 --> 00:46:06.547
...run .NET,

00:46:06.547 --> 00:46:10.117
but it's pretty trivial to write C# code that calls machine code functions

00:46:10.117 --> 00:46:12.653
so it stands to reason they did that too.

00:46:12.653 --> 00:46:15.572
But from here onwards, this stuff actually got really easy.

00:46:15.572 --> 00:46:19.243
As we learned from Sonic Runners, .NET is very easy to decompile.

00:46:19.243 --> 00:46:24.114
In fact, C# is actually designed to map very closely to the intermediate language it compiles to.

00:46:24.114 --> 00:46:29.286
That means that, unlike machine code, converting between the two is a fairly trivial process.

00:46:29.286 --> 00:46:33.624
So, with a tool called dnSpy, I could just edit those calls to Windows APIs,

00:46:33.624 --> 00:46:37.511
and either point them to my DLLs, or just remove them entirely.

00:46:37.511 --> 00:46:41.799
Soon I had the old version of Rebuilder working exactly as it was meant to.

00:46:41.799 --> 00:46:44.051
As well as other .NET apps I'd written like this one

00:46:44.051 --> 00:46:48.038
that replicates the Win+Shift+S screenshot functionality from Windows 10.

00:46:48.038 --> 00:46:52.092
It's actually kind of surreal seeing this stuff working so well after all of that.

00:46:52.092 --> 00:46:54.027
I mean, that was the goal and all, 

00:46:54.027 --> 00:46:57.481
I just got so used to there always being another problem.

00:46:57.481 --> 00:47:01.001
I can imagine there's still some C# code calling system functions

00:47:01.001 --> 00:47:02.703
that 95 doesn't have, but

00:47:02.703 --> 00:47:06.473
as I've demonstrated, they should be super simple to resolve as they crop up.

00:47:06.473 --> 00:47:08.876
In fact, we can actually take this a lot further.

00:47:08.876 --> 00:47:12.396
Turns out .NET used the same runtime - the thing we just backported

00:47:12.396 --> 00:47:16.233
all the way up to version 3.5, which saw even wider usage than

00:47:16.233 --> 00:47:18.802
the 2.0 we've been focusing on so far.

00:47:18.802 --> 00:47:21.588
3.5 only ever supported XP and up but

00:47:21.588 --> 00:47:25.192
with this backported runtime and the same C# editing technique,

00:47:25.192 --> 00:47:27.361
we can get it running on 2000,

00:47:27.361 --> 00:47:30.531
ME, 98, and yes, even 95

00:47:30.531 --> 00:47:32.349
so... yeah.

00:47:32.349 --> 00:47:37.204
I think we can officially say .NET has been backported to Windows 95.

00:47:39.506 --> 00:47:40.824
Take him away, boys.

00:47:44.177 --> 00:47:46.263
Mrs. 95's tip paid off.

00:47:46.513 --> 00:47:48.749
We unscrambled the code and it led us right to him.

00:47:49.483 --> 00:47:52.386
He left behind enough evidence, it'll be an open and shut case.

00:47:52.886 --> 00:47:54.805
He'll be going away for a long time

00:47:54.988 --> 00:47:57.441
and in a funny way, so will I.

00:47:58.642 --> 00:48:00.727
I'm finally taking that vacation.

00:48:17.277 --> 00:48:20.013
So we've been on a bit of a journey together, you and I.

00:48:20.013 --> 00:48:23.150
And on a big journey like this, it's easy to get so stuck in the weeds

00:48:23.150 --> 00:48:27.054
and the nitty gritty of every little thing that you forget about the bigger picture:

00:48:27.354 --> 00:48:28.322
Why?

00:48:28.322 --> 00:48:31.575
Why backport .NET to Windows 95?

00:48:31.575 --> 00:48:35.201
Sure, the abstract is clear, we get a little more software running on an older operating system.

00:48:35.762 --> 00:48:37.881
But... who cares?

00:48:37.881 --> 00:48:42.819
Who cares about running things on Windows 95, or 98, or ME for that matter?

00:48:43.420 --> 00:48:44.438
Well...

00:48:44.438 --> 00:48:45.455
me.

00:48:45.455 --> 00:48:47.641
Obviously I'm not regularly using any of them today,

00:48:47.641 --> 00:48:51.695
but some of my most formative memories were made in this clunky boxy world.

00:48:51.695 --> 00:48:55.349
I didn't really grow up with a lot of games or game consoles, but we had a computer

00:48:55.349 --> 00:48:57.651
and with the kind of patience you only have as a kid,

00:48:57.651 --> 00:48:59.620
I figured out things to be excited about.

00:49:00.821 --> 00:49:04.574
Just like watching movies and YouTubers would inspire me to want to make my own videos,

00:49:04.574 --> 00:49:10.130
I would use computers and be completely in awe of how people could come together to make an operating system.

00:49:10.130 --> 00:49:15.469
Little things would fascinate me like how did they use dots on a screen to make something look like it was 3D?

00:49:15.469 --> 00:49:19.156
It inspired me to try writing my own code and making my own icons.

00:49:19.156 --> 00:49:22.676
I would spend hours trying to make stuff even close to what I was seeing.

00:49:22.676 --> 00:49:24.828
We talk a lot about preservation nowadays,

00:49:24.828 --> 00:49:29.082
video games, and software in general, is in a uniquely tough situation because

00:49:29.082 --> 00:49:32.235
more than any other artform it's tied to the medium it was released on.

00:49:32.235 --> 00:49:35.505
And more often than not, it's just not financially viable to change that.

00:49:35.505 --> 00:49:41.561
Imagine if the only way to watch an old movie on a new TV was for the crew to go back and re-film half of it in 4K.

00:49:41.561 --> 00:49:44.364
I mean that didn't stop George Lucas from trying, but you get my point.

00:49:44.364 --> 00:49:47.334
Sure, an operating system is more of a tool than a work of art,

00:49:47.334 --> 00:49:50.020
more of a butter churn than a Michelangelo, but

00:49:50.020 --> 00:49:53.907
that being said, it's also something that was designed to connect with people.

00:49:53.907 --> 00:49:58.228
To make this cold metal machine feel like it was actually friendly and approachable.

00:49:58.228 --> 00:50:01.531
And it connected with me and helped inspired me to make things.

00:50:01.531 --> 00:50:04.301
It's a big reason why I do what I do today.

00:50:04.301 --> 00:50:06.787
Preservation isn't just about being able to use something.

00:50:06.787 --> 00:50:10.657
It's not just about just having a virtual machine or an old computer lying around.

00:50:10.657 --> 00:50:13.610
It's about keeping it alive in the modern world.

00:50:13.610 --> 00:50:17.798
How we can take advantage of modern technologies that we couldn't have even dreamed of  back then.

00:50:17.798 --> 00:50:20.484
There's a reason we want to play Gamecube games in HD,

00:50:20.484 --> 00:50:22.069
watch movies in 4K,

00:50:22.069 --> 00:50:24.671
listen to music digitally instead of on cassette tapes;

00:50:24.671 --> 00:50:28.308
because these things matter to us, and we want to see them at their best.

00:50:28.308 --> 00:50:33.230
Backporting .NET is a tiny, tiny drop in a very big ocean but

00:50:33.230 --> 00:50:36.283
what kept me going was thinking of what we might be able to do with it.

00:50:36.283 --> 00:50:39.586
All the ways we could, hopefully, keep this old stuff alive. 

00:50:56.153 --> 00:50:57.537
Hey, thanks for watching!

00:50:57.537 --> 00:51:00.841
And... waiting for this ridiculously long video.

00:51:00.841 --> 00:51:03.310
I wanna give a huge shoutout to my Patrons scrolling on the screen right now

00:51:03.310 --> 00:51:05.712
for really keeping me going through the making of this video and

00:51:05.712 --> 00:51:08.031
supporting me even though I wasn't uploading as much.

00:51:08.031 --> 00:51:10.016
It really means the world to me, so thank you guys.

00:51:10.016 --> 00:51:12.869
Speaking of Patreon, I have a lot of Patreon-exclusive content coming up

00:51:12.869 --> 00:51:15.872
including a more technical deep dive into the .NET backport,

00:51:15.872 --> 00:51:17.390
some behind the scenes on this video,

00:51:17.390 --> 00:51:20.827
and I have a poll up right now for what project I should do next.

00:51:20.827 --> 00:51:24.347
Whatever gets chosen, I'll be posting regular Patreon video updates detailing my progress

00:51:24.347 --> 00:51:26.633
so if any of that interests you, check it out!

00:51:26.633 --> 00:51:30.053
Anyway, thanks again, I hope you have a great day and I'll see you all in the next one.

00:51:30.654 --> 00:51:32.923
Hopefully it won't take this long again. Bye guys!

