Inside "MinWin": the Windows 7 kernel slims down
arstechnica.com
arstechnica.com
And Midouri: http://en.wikipedia.org/wiki/Midori_(operating_system)
Two cool projects that are part of Microsoft's research in managed code operating systems.
As the article states the reason for this is:
Because Windows Explorer and many of the components of the Shell aren't included in a Server Core install, applications like Notepad' which would normally show an Open dialog box like this: (show the original File Open dialog)
> Why the hell does it still have that DLL built in?
To display the file open dialog in Windows all you do is call the GetOpenFileName Win32 function.
Back in the days of Windows 95 Microsoft got into the habit of changing the look of the File Open dialog for every new release of Windows and they stored these new dialogs in the common control dll.
So I suspect deep inside of Window itself there is pseudo code that works something like this:
GetOpenFileName()
if Common Control DLL installed
Call New Explorer GetOpenFileName dialog
else
Call the very first every GetOpenFileName dialog built into Windows itselfHell... If one of my developers even attempted such a stunt we would have a long code review session discussing it.
" Microsoft says there are still about 600 interconnected DLLs and other binaries, totaling hundreds of megabytes. None of these could be safely removed without causing other parts of the system to break. Even Mark Russinovich, widely regarded as one of the world’s top experts on Windows internals, admits that they still can’t predict what exactly would break."
As much as I like Windows 7, that kind of thing makes me want Microsoft to create an emulated environment similar to OS X Classic and surround it with a from scratch, managed, modern cruft free OS.
Af for the interconnected DLLs, have you ever worked on a largish project that tried to release independent parts? It's hard. The practical problem is that you get two seemingly independent modules that want to work well together, not duplicate code between each other, and be independently distributable. These can conflict, and if you're not dedicated to all of the goals, and clever, you fail in one or more.
Simple, elegant and, since I am writing this, it works.
Why the hell does it still have that DLL built in?
The code under the hood must be horrific.
I really hope Microsoft gradually improves this situation with the MinWin project.