Live data from Hacker News

Ask HN: Can anyone recommend a Windows Systems programming book?

news.ycombinator.com

21–30 of 83 posts

Re: Ask HN: Can anyone recommend a Windows Systems programming book?

#21
post #15

Programming Windows - Petzold

This is the best answer.

Windows Internals is a great book/reference for understanding how Windows work, but it won't teach you how to actually program Windows.

The Fifth Edition of Petzold's book will actually take you through the Win32 API, which is still usable even on modern Windows platforms.

Re: Ask HN: Can anyone recommend a Windows Systems programming book?

#23
post #20
post #15

Programming Windows - Petzold

Just a warning, that the very latest edition of this book is a complete rewrite for WinRT and Windows 8. It’s still a great book, but you’ll probably want the previous edition to learn how to code traditional Win32 programs.

With a caveat, even though most of us have stop caring about WinRT stuff, that is still how some APIs in Windows 11 are now being made available, with the difference of still being WinRT, without the UWP infrastructure around it.

Example, the new MIDI subsystem, https://github.com/microsoft/midi

Re: Ask HN: Can anyone recommend a Windows Systems programming book?

#24
The old new thing[1]. It's a blog, but he did also publish a book[2] compilation of some choice blog posts. The book is from a few years ago, so some specifics might be outdated, but I think a real strength of the blog is how, despite being very targeted, focusing on specifics of one OS, it's also very general. I also just really like Raymond Chen's writing style.

1: https://devblogs.microsoft.com/oldnewthing/

2: https://devblogs.microsoft.com/oldnewthing/?p=28793

Re: Ask HN: Can anyone recommend a Windows Systems programming book?

#25
post #7

Earlier quoted context omitted.

Yes, but he or she is giving convincing sounding reasons that might be helpful for the op. Maybe it is actually better for OP to learn .net, maybe not. But the answer had quality, so I do not think the downvotes are appropriate.

While I think the intentions of the voting system are for marking low quality, as you've said, I think in practice most downvoters are using it to mark their disagreement. There's something interesting about that; it implies that grey text signifies a non-conformist view and approach to a technical issue. As is the case here. I like to skip to the grey text.

I wrote the downvoted comment and am a proponent of downvoting for disagreement. Downvoting is an alternative to arguing and often makes for better comment pages.

Re: Ask HN: Can anyone recommend a Windows Systems programming book?

#27
Programming Windows and Inside Windows are the books you want.

Programming Windows covers systems programming in C and in later editions, in C#.

Inside Windows goes over the Window OS architecture in-depth. There’s not much programming in the book but you will come away with a deep understanding of the OS.

Both books are published by Microsoft Press. You’ll of course want the latest editions but if you come across earlier editions, those are fine too.

I’m partial to the earlier Petzold editions of Programming Windows.

The technical docs at microsoft.com are also super helpful and up-to-date: https://learn.microsoft.com/en-us/docs/

Re: Ask HN: Can anyone recommend a Windows Systems programming book?

#29
post #19

The reason you're not getting a good answer is because the ultimate answer is to just use Microsoft's Documentation: https://learn.microsoft.com/en-us/windows/apps/ https://learn.microsoft.com/en-us/windows/apps/get-started/s... https://learn.microsoft.com/en-us/windows/win32/api/ It covers near everything, is extremely exhaustive, and constantly updated. That being said, if you're more interested in how the Windows…

I remember reading a funny story somewhere recently that back in the day, ms developers intentionally left gaps in the docs or straight up didn't document certain apis etc so they could put them in their books and sell those so if you were working on certain things you'd be forced to buy said books.

Haha, that's totally believable and in tune with the MicrosoftMentality of those days. I'd love to see the corroborating evidence, though! If I recall correctly, the (also paid) MSDN developer reference documentation was actually pretty OK. The problems you needed Petzold and Richter for were the higher level "why is Windows this way?" topics and "what's the Windows-way to design XYZ?" questions. The actual APIs themselves had good documentation--the problem was knowing you had to use a particular API for a particular problem, which is what we needed the books for.

Re: Ask HN: Can anyone recommend a Windows Systems programming book?

#30
post #19

The reason you're not getting a good answer is because the ultimate answer is to just use Microsoft's Documentation: https://learn.microsoft.com/en-us/windows/apps/ https://learn.microsoft.com/en-us/windows/apps/get-started/s... https://learn.microsoft.com/en-us/windows/win32/api/ It covers near everything, is extremely exhaustive, and constantly updated. That being said, if you're more interested in how the Windows…

I remember reading a funny story somewhere recently that back in the day, ms developers intentionally left gaps in the docs or straight up didn't document certain apis etc so they could put them in their books and sell those so if you were working on certain things you'd be forced to buy said books.

I'm convinced this is true for SharePoint development. There were things that I'd find in books that weren't even mentioned anywhere on any microsoft website, let alone documented properly.
Post reply on HN