News for hackers. Stuff that matters.
Re:Windows Code Samples by throwawayish on Sunday January 15, 2017 @09:40AM (#13404156)
Some institutes at some universities have access to the NT source code for academic purposes. (Google "Windows Research Kernel" -- supposedly some academic entities have more access).
Re:Windows Code Samples by nxc18 on Sunday January 15, 2017 @10:25AM (#13404380)
This is true. The program allowing this was active a few years ago, so the Windows research kernel is stuck at NT 5.2 (just before Vista). That makes it a decade old, but it is still a great tool for understanding the unique things about the NT architecture. The downside is that Windows has improved dramatically in ten years, so the old source can be misleading if not taken with proper perspective.

People like to shit on Windows with claims that Linux does it better. Actually seeing the source and reading about the internals (anyone can do that last bit) let's you see in just how many places Linux was and still is playing catch up. Linux may have a better implementation for some use cases, but to claim architectural superiority is just crazy in my eyes.

Anyway, the license for the WRK is actually quite open. Seeing it doesn't prevent you from contributing to open source projects, you can share it with anyone in a university setting, can keep it on your personal devices, and can share snippets of source code in blog posts, papers and the like. If you are eligible, willing to comply with the license, and can find someone who still has it (the hardest of the requirements) it's fair game. In my efforts I asked Microsoft for permission as well, but I didn't get the sense that was necessary (but shouldn't hurt).

You can still build the WRK on modern Windows, or on the included Virtual PC Windows Server 2003 images. The output dll can be installed in place into compatible versions of Windows. The distribution includes a full OS course, the original internal design workbook (straight from Dave Cutler's hand, in the original .DOC!) and labs detailing how to modify/extend the most interesting part of the kernel.

Source: I'm working on a tool/resource to make OS dev more accessible to students at my university (as well as to myself) and made vigorous efforts to procure the Windows Kernel for comparative purposes.

Re:Windows Code Samples by xorblurb on Sunday January 15, 2017 @03:54PM (#13406346)
On what points you think the NT kernel is architecturally superior to Linux today?
Re:Windows Code Samples by userbinator on Sunday January 15, 2017 @11:07AM (#13404584)
I wouldn't say Windows has "improved dramatically in ten years" --- perhaps "changed" would be the right word for me; given how popular XP was, I'd say WRK is still quite relevant.
Re:Windows Code Samples by dogma1138 on Sunday January 15, 2017 @10:28AM (#13404394)
Governments also have access to the source code for many msft products including windows.

Trusted partners that develop for windows and oems can also gain access.