The Windows Source Code Revealed: Task Manager (E01)

Sdílet
Vložit
  • čas přidán 29. 09. 2023
  • The original author of Windows Task Manager takes you on an authorized tour of the Windows source code behind the XP Task Manager. For information on my book, Secrets of the Autistic Millionaire: amzn.to/45ZzcFW
    Windows code provided courtesy of Microsoft Corporation; this code is NOT open source and it remains Microsoft copyrighted material, used with permission.
  • Věda a technologie

Komentáře • 889

  • @gothikia
    @gothikia Před 8 měsíci +978

    This is what I love about the internet. I was 9 years old when I got to use Task Manager for the first time in 1995 and here we are, almost 30 years later, watching the esteemed author of an application who came to my aid so many times, walking me through the code of the aforementioned application. Its also reassuring that I also name stuff after me in the code when subclassing.

    • @GasssFreak
      @GasssFreak Před 8 měsíci +41

      In a modern company you'd just get a code review comment every time you did that.

    • @skywizard3319
      @skywizard3319 Před 7 měsíci +3

      I was being born when they shipped

    • @user-rk4wp3mh5f
      @user-rk4wp3mh5f Před 7 měsíci

      subclassing lol

    • @victorgarcia3526
      @victorgarcia3526 Před 7 měsíci

      Omg thirty years, that hurted...

    • @ducpaii
      @ducpaii Před 6 měsíci +4

      tragic windows now is just a massive data farm and not a good os ):

  • @deldrinov
    @deldrinov Před 8 měsíci +28

    "With Microsoft's permission"
    "Windows XP version"
    Yeah, we've seen it

  • @shannahsantucci3017
    @shannahsantucci3017 Před 7 dny +1

    Small pro-tip: If you click a function (or method) call while pressing “Control” (or “Command” on Mac), you will go to their definition. This will avoid you right-clicking everything.
    Amazing video!

  • @Rinue2
    @Rinue2 Před 8 měsíci +964

    Fantastic review and it's interesting to see behind code :) On another note the cam auto zoom was a bit too aggressive for me and caused some motion sickness.

    • @SirkyNL
      @SirkyNL Před 8 měsíci +53

      Sad to see the camera zoom indeed! im a bit dizzy after a minute of watching closely

    • @at3o
      @at3o Před 8 měsíci +55

      He turns it off at 9:32 😎

    • @robbybobbyhobbies
      @robbybobbyhobbies Před 8 měsíci +11

      I was getting Wayne’s World vibes

    • @SirkyNL
      @SirkyNL Před 8 měsíci +3

      @@at3o 🙏🏼

    • @jonnyphenomenon
      @jonnyphenomenon Před 8 měsíci +13

      I came here at 4:43 to comment on this. Haha I am SO distracted by the zooming!

  • @RobertM125
    @RobertM125 Před 8 měsíci +155

    In high school many years ago my computer science teacher told us that if anyone used a global variable in our code, he would put a red F on our printout with such force that the next three printouts below ours would lose credit. I still tremble when I really need a global variable today.
    Great video as always. Thank you so much for this walk through for a program I have needed so many times.

    • @nwrocketman6438
      @nwrocketman6438 Před 8 měsíci +9

      I had a similar thing in college. It was a rule in my first C++ class to not have any global variables.

    • @Noricavus
      @Noricavus Před 8 měsíci

      Don't remember globals being a big issue as much as using goto. If you used it...fail.

    • @arthurmoore9488
      @arthurmoore9488 Před 8 měsíci

      @@acacac557 Too true. The problem is that CS (and Computer Engineering) degrees never bother to teach what time is appropriate. My other main complaint is the data structures courses never bother to even tell students to just use a library. I've had to maintain "professional" applications made for the government with custom linked list implementations. With the application being written using C++ in 2015!

    • @alang.2054
      @alang.2054 Před 7 měsíci

      ​@@acacac557yes there is place to use them - right after "//"

    • @rand0mtv660
      @rand0mtv660 Před 7 měsíci +28

      And then you step out into the real world and realize code is not perfect and you will do things that you were advised against in college or any book/tutorial etc. Sometimes you just need to get stuff done and will twist "best practices" in order to achieve what you need.

  • @TanjoGalbi
    @TanjoGalbi Před 8 měsíci +286

    Some people may be a bit confused as to why minimized is referred to as being iconic. This goes back to Windows 3.1 and earlier. In those older versions of Windows there was no task bar. When you minimized a window an icon for the app was placed on the desktop which was not like today's desktop where you can place files, what went on the desktop back then was up to Windows.
    They did change flag names to be minimized instead of iconic (for a while before phasing out the old you could use either names for the flag) but some SDK functions retained the old name for backwards compatibility where the old function just called the new function name until the old name was phased out.

    • @eDoc2020
      @eDoc2020 Před 8 měsíci +7

      To add to this, there was a WM_PAINTICON message which the system sends to the window to ask it to draw this icon. The default handler draws the class icon but it was also possible to override this and generate an icon on the fly.
      I _think_ Windows 95 might send this message and if it detects custom processing then scale down the drawn image to fit the taskbar and title bar icons.

    • @szymonwelgus7930
      @szymonwelgus7930 Před 7 měsíci +3

      wxWidgets also calls it Iconized in several places. I never understood why, but just went with it. Thanks for history tidbit! Love learning about stuff like this

    • @TanjoGalbi
      @TanjoGalbi Před 7 měsíci +2

      @@szymonwelgus7930 You are welcome 🙂
      I think Dave really should have briefly, a minute or two, explained this instead of leaving it hanging like he did as it is an interesting side note to show how Windows evolved and how remnants of the old still stuck around for a while.

    • @yovtobe
      @yovtobe Před 5 měsíci

      It's one of those things I'd not realized I'd forgotten. The task bar was a huge deal when it popped up.

  • @warmarin
    @warmarin Před 8 měsíci +41

    I wish I was tech-savvy enough to understand what is going on here, but I must salute your ability to explain technical stuff and bring it down to a layman's level. Thanks Dave

  • @zfloflo
    @zfloflo Před 8 měsíci +155

    Wonderful!
    Yes, please, keep it coming...
    I can't wait to watch the next part.
    Thank you for taking the time to show this code.
    It's literally like opening a time capsule!
    And please pass my thanks to MSFT for allowing you to do it. Greatly appreciated!

    • @mykyta1235
      @mykyta1235 Před 8 měsíci

      no, noone will ever pass anything from you.

    • @delian66
      @delian66 Před 8 měsíci +6

      @@mykyta1235 why do you have to write this? Are you ok?

    • @AliceErishech
      @AliceErishech Před 8 měsíci +4

      @@delian66Some people just can't refrain from being insufferable.

    • @Bittboy
      @Bittboy Před 8 měsíci

      ​@@mykyta1235Peter Noone sucks anyways.

  • @bluescreenenjoyer
    @bluescreenenjoyer Před 8 měsíci +97

    This is really great, I love to see how core windows stuff works, especially because it seems like talented programmers were able to bake in so many features that needed so little resources. Please keep this series up.

    • @axelriet
      @axelriet Před 3 měsíci

      This is great code but by no means « core Windows stuff » 😊

  • @ThatOneRei
    @ThatOneRei Před 7 měsíci +2

    This is the type of content I love seeing as a computer science student and that I wish I saw in my classes. Your way of talking and explaining is so easy to digest, thank you.

  • @jaygosch8705
    @jaygosch8705 Před 8 měsíci +51

    This is the first walk through of real Windows code I've seen. Excellent tutorial on all the details you need to handle when writing a stable application. I even learned about a few features of Task Manager that I hadn't heard about before. I would definitely watch the next part if you make one. 😊

    • @monad_tcp
      @monad_tcp Před 8 měsíci +5

      Now I will reverse engineer Windows11's task manager to see the similarities from the Win32 calls.

  • @gevikb
    @gevikb Před 7 měsíci +1

    Hi Dave, thank you for walking us through the code. I remember I was 19-20 browsing through my Petzold book and trying to understand how the WM_ messages all worked. Programming Windows was considerably more complex than MS-DOS stuff. It was a wonderful journey of discovery and fun. Thank you for bringing back those memories.

  • @Electronics-Rocks
    @Electronics-Rocks Před 8 měsíci +2

    Thanks for locking the camera as it was doing my head in

  • @boydpukalo8980
    @boydpukalo8980 Před 8 měsíci +20

    Really fascinating seeing actual source code of a program I have used for decades and which has brought system back from near death experiences. Looks like straight Win32, no MFC, or newer frameworks so far. I look forward to the next installment.

    • @1971merlin
      @1971merlin Před 8 měsíci +3

      It's straight win32. Dave says so numerous times. Any dependencies outside itself simply lower reliability (eg if the problem is the framework itself).

    • @harleyspeedthrust4013
      @harleyspeedthrust4013 Před 7 měsíci +2

      straight win32 is the best

  • @SemihFatihAdem
    @SemihFatihAdem Před 8 měsíci +4

    I'm glad seeing all of these from a professional including a bug in the code. Seeing how the pages and settings communicate with each is really cool. Lot of messaging going on. Looking forward to part 2.

  • @KlasNyman
    @KlasNyman Před 8 měsíci +3

    Charles Petzold, what a legend! My first of his books was 'Programming the OS/2 Presentation Manager', taught me a lot!

  • @timmetcalf5222
    @timmetcalf5222 Před 8 měsíci +1

    This is one of my favorite code reviews & I've watching over half of all your videos - would love to see the rest when you have time - PS - loved the Highlander reference - "We are the only One" - "The one true task manager"

  • @JamieKitchens6
    @JamieKitchens6 Před 8 měsíci +14

    This is just simply amazing information to take in. Thank you Dave for always bringing the good stuff.

  • @grahamstretch6863
    @grahamstretch6863 Před 8 měsíci +2

    Whilst most (if not all) of this went clean over my head I still found it interesting, much of that interest came from the comments written within the code! My favourite comment being something about poking your eye with a sharp stick and we would still not be able to see wherever it was! Thank you for the chuckle!
    As an aside, during my Btec in engineering my tutor told my best friend and me that we were “computer illiterate!” 🤣
    I told him I didn’t need to program it, just use it and I then continued down the mechanical engineering path barely scraping a pass in “computing” ending up in toolmaking which I love.
    I really enjoy your videos and find something of interest in most if not all of them.
    Ps I hate the shorts, every short, not just yours!

  • @erc0re526
    @erc0re526 Před 8 měsíci +10

    Videos like these are priceless, we get too see how critical programs we all used (and still use) were written and designed and *why* things were done a certain way! Please keep those going!!

    • @Margen67
      @Margen67 Před 2 měsíci

      Penguins need HUGS

  • @JonC341
    @JonC341 Před 8 měsíci +6

    The more I try to keep up with the code, the more I realize that for many today, including myself, it would be hard to make so many functions and get so many resources without breaking something or a size requirement. Dave you are and will always be a computer hero!!!!

    • @nickwallette6201
      @nickwallette6201 Před 7 měsíci +1

      Eh, even Task Man wasn't written and compiled in one go. :-) Sometimes you have to rough in the guts, and then go back and include the error checking, i18n, and security checks you didn't remember the first time.

  • @martinclerked-6262
    @martinclerked-6262 Před 7 měsíci

    I just want to say i know little about coding and whatever the heck else its called, but being able to bring up task manager when your computer is totally frozen and not working was a god sent blessing and i miss it very much. Came in clutch for me alot of times in the past. Thank u for your work bro

  • @george1717
    @george1717 Před 8 měsíci +9

    A sequel with the graphs and performance page would be great!

  • @MrMcyeet
    @MrMcyeet Před 8 měsíci +18

    Very interesting video as usual Dave!
    Some feedback though, I found the camera constantly zooming in and out somewhat distracting.
    In my opinion, it would have been better to have the camera just be static.
    Edit: Just got to the part of the video where you disable that lol.

    • @Those2menoverthere
      @Those2menoverthere Před 8 měsíci

      @@glennchugg6015don’t let the door hit you on the way out.

    • @rcjp
      @rcjp Před 8 měsíci

      Made me feel ill just trying to watch it. Shame, its interesting stuff.

  • @Intermernet
    @Intermernet Před 8 měsíci +4

    Definitely continue this series! It's rare to see actual performance hacks in internal code. The code may be old, but the tips and hints are transferable to modern code.

  • @cargo501
    @cargo501 Před 8 měsíci +3

    Love it. Keen to see the next task manager episodes! Great to see ms systems engineers approach to solving the problems and structuring the code

  • @jemakrol
    @jemakrol Před 7 měsíci

    Just LOVE these sessions! Nostalgia, learning, peeking inside stuff and get entertained all in one.

  • @FloydMaxwell
    @FloydMaxwell Před 8 měsíci +6

    With XP limited to 4GB (not counting the 64-bit version), and with the surprising number of times that "mature" and "up to date" programs "go 100%", Task Manager is my ever present co-pilot. Please keep the TM videos coming.

    • @eDoc2020
      @eDoc2020 Před 8 měsíci

      32-bit Windows XP actually works with more than 4GB of RAM by using PAE. I believe this was usable in the original release but then the use of extra memory was disabled in SP1 due to compatibility issues with drivers assuming 32-bit addresses. Server versions don't have this compatibility fix and will still work with more than 4GB of RAM.

    • @FloydMaxwell
      @FloydMaxwell Před 8 měsíci

      @@eDoc2020 Try reading the threads on this. "Nightmare" and "can of worms" come to mind.

    • @eDoc2020
      @eDoc2020 Před 8 měsíci

      @@FloydMaxwell Like I said, compatibility issues. I wouldn't expect it to work with a random old system.

    • @andrewr7820
      @andrewr7820 Před 8 měsíci

      @@eDoc2020I remember using DOS Extenders to allow 80286/386 programs to access memory above 1MB. Those were the days...

  • @TheMasonX23
    @TheMasonX23 Před 8 měsíci +20

    Please make a part two! I'm working on improving our system performance logging and display, so it would extra cool to see how you accomplished that back in the day. Keep up the great work man!

    • @khuntasaurus88
      @khuntasaurus88 Před 8 měsíci +1

      What exactly is slowing you down? I'm sure we could do community code support seeing as most people watching this are devs 😂

  • @Alchemetica
    @Alchemetica Před 8 měsíci +20

    The code is great to see. It is causing long unused synapses to fire signals between "sleeping" neurons and low and behold I can actually recall partial understanding of the code. Seeing you named some functions with your name made me remember I used to get a kick out of using as part of a function name past girlfriend names or composers etc. Knowing in all likelihood I would be the only one to ever know these names were in the code. Early in my coding global variables were my best friends : )

  • @LaurenceHartje
    @LaurenceHartje Před 8 měsíci +80

    Dave, as a long time viewer/lurker of your channel, a Windows 3.1 MCP and currently working as a software engineer - this is one of my favorite videos that you have done. I've only written a few projects in Windows C (being lucky that I could leverage the benefits of C# for most of my professional career), but this was an amazing walk through the task manager code and I look forward to the follow up videos.

    • @meerkatpowergaming9412
      @meerkatpowergaming9412 Před 7 měsíci +3

      I appreciate how far C# has come from the early days of C#. I am happy to say its my favorite language.

  • @skylo706
    @skylo706 Před 6 měsíci

    Amazing, you got a new subscriber. I love watching you guys who made that kind of stuff back in the day, it's so interesting to me to listen to you people and get an insight in what your thought processes and situations were back then 😊

  • @pixelpoppyproductions
    @pixelpoppyproductions Před 8 měsíci +3

    I really appreciate the task kill shell commands you added back in the day. That is the kind of feature that can be built onto years later.
    I work in civil engineering (not software), and being able to kill any Windows process via shell commands really helped me improve the reliability of a software service I developed that my department depends on for their daily work.
    It probably seems dumb to software engineers, but for someone who just needs to get stuff done - it’s a big deal.
    That feature means I can go on a vacation without having to physically log into a machine - personally - to reset a misbehaving program. I can automate it and the users have no idea what happened. It just works!

  • @hl2mukkel
    @hl2mukkel Před 8 měsíci +1

    This is very interesting! Love how you went into everything relevant as well, if I were to review it I'd have looked at all of those functions as well. Really fascinating to see this historic piece, please continue!

  • @ignaciosanmartin2143
    @ignaciosanmartin2143 Před 5 měsíci

    Programmers like you are an inspiration. The fact that you come from a time when programmers had to study and understand complex concepts from books is awesome.

  • @GlennHamblin
    @GlennHamblin Před 8 měsíci +2

    I'm truly enjoying this code walk through. Please continue this series. 🙂

  • @8antipode9
    @8antipode9 Před 8 měsíci +1

    Had fun with this! In '95, I was a senior in college studying music composition as my major, but programming had always been a hobby for me. Read "Learn Windows Programming in 30 days", but it took me about 6 months. I have fond memories of writing windows programs talking directly to win32.

  • @killerpixel2k3
    @killerpixel2k3 Před 8 měsíci +1

    I love the random windows keyboard shortcuts I learn aside from all the other things I learn!
    Also thank you for your book! I have to say it felt quite disturbing reading a diary I never wrote! Got a diagnosis and your book has helped me greatly in coming to terms with things not just being my quirky personality!

  • @nyekku
    @nyekku Před 8 měsíci +1

    It was an enjoyable experience, you are very talented at explaining the code while keeping it interesting. Looking forward to part 2!

  • @Dremth
    @Dremth Před 8 měsíci

    I really liked this look into the code. I don't see C++ windows code very often, so it's cool to see that lower level stuff (as opposed to the C# stuff everybody does these days), and you did a great job of explaining how everything works. Hope you do more of these.

  • @damionlee7658
    @damionlee7658 Před 8 měsíci +32

    This has been an extremely enjoyable "Peek behind the curtain". Waiting with anticipation for future episodes on the Task Manager source.
    Question: quite often during development I will think of something that wasn't in my original scope; but it makes a lot of sense to add. Sometimes it is just something to handle, or a way of handling something behind the scenes, sometimes it is user functionality or feedback to the user. Often I will be left wondering why this something wasn't obvious to me at the outset of the project. Is there a part of Task Manager's code or functionality which you added at some stage and which made you wonder why you hadn't thought to include it in the first revision?

  • @fshtank
    @fshtank Před 8 měsíci

    This was a fun walk-thru. Interesting to hear your thought process in writing the code as you walked us through it.

  • @JonKPowers
    @JonKPowers Před 8 měsíci

    Yes, please keep going! This is fascinating to hear you talk through the process!

  • @NeoAF10
    @NeoAF10 Před 7 měsíci

    This is gold Dave! Fascinating seeing the internals of a Window's component! Thank you!

  • @OzzFan1000
    @OzzFan1000 Před 8 měsíci

    Just adding my comment to encourage future videos on the rest of the code. Thanks, Dave, and please keep them coming!

  • @danieldawson4937
    @danieldawson4937 Před 8 měsíci

    Great stuff Dave! Had my Windows XP VM up with Task Manager running to follow along 🙂. Keen to see more!

  • @kd5ydu
    @kd5ydu Před 8 měsíci

    I would love subsequent parts to this! I'm learning to program and being able to see the code and the thinking behind it is fascinating!

  • @lonniebiz
    @lonniebiz Před 7 měsíci +1

    Dave, I don't use Microsoft myself anymore, but I did at the time you were working there. I've enjoyed your channel. You're a bright guy and do a good job on your videos.

  • @judecapachietti
    @judecapachietti Před 8 měsíci

    Awesome video! So cool! Exited to see the next one!
    I am also interested to learn more about some of those concepts you talk about, like opening the startup mutex stuff

  • @BertRedd
    @BertRedd Před 7 měsíci

    This is so amazingly well written code. It took me years to write code like this. Bravo.

  • @MehYam2112
    @MehYam2112 Před dnem

    This was more fun than it had any right to be, really brought me right back to my days coding Windows apps. Your code was very clean and easy to follow.

  • @thisoldproperty
    @thisoldproperty Před 8 měsíci

    I was interested in how commenting is added, plus the top down approach you seemed to use.
    Thanks for sharing. Wish I had someone like you around when I was first learning good coding habits.

  • @kylekinnear8878
    @kylekinnear8878 Před 7 měsíci

    Awesome! I love seeing source code for important applications I've used a lot. Makes me feel like I understand a little bit more about how my world works.

  • @dracenmarx
    @dracenmarx Před 7 měsíci +1

    This was very entertaining! I'd love to see more of the Taskmanager code. Especially the part where processes are terminated, and things like the protection to avoid that lsass.exe is terminated

  • @saymehname
    @saymehname Před 19 dny

    I love these code reviews, and especially since this is your own work almost 30 years ago!

  • @ThunderChasers
    @ThunderChasers Před 8 měsíci

    I used Task Manager so many times. Watching you go through this code is nostalgic. Takes me back to my days in the USAF and fixing computers. Usually killing processes or finding them. And usually they were malware or viruses that anti-virus missed. Those were the days.

  • @tedvanmatje
    @tedvanmatje Před 8 měsíci +2

    Poking yourself in the eye with a sharp stick....had to that a few times😂
    You are a legend, Dave. Thanks for posting this behind the scenes, mate 🖖

  • @BaZe-dk9kh
    @BaZe-dk9kh Před 7 měsíci

    Thank you very much for this walkthrough. The coding style/ readability is brilliant! I will start referring everyone I know to this, before they create pull requests I can review!

  • @my-king
    @my-king Před 8 měsíci +2

    This is great. Its insane how much i used this. Back in 95/98/2000/XP it became something I became very comfortable with and the amount of control itd give me was really nice.

  • @imrealrage
    @imrealrage Před 7 měsíci +1

    It's so great to see a legend reviewing a legendary piece of code that we always saw and will see. Thanks....

  • @thisguy00
    @thisguy00 Před 8 měsíci

    TIL Ctrl+Shift+Esc brings up the task manager... today was a good day
    Very interesting deep dive into how this all works, thanks mate!

  • @marcellomello3307
    @marcellomello3307 Před 5 měsíci

    Fantastic, thanks for making this video for us! And congratulations on the initiative.

  • @Zeazy
    @Zeazy Před 8 měsíci

    great video
    its like a time capsule, seeing your old code after so long

  • @jwc4520
    @jwc4520 Před 8 měsíci +1

    I liked XP , had a comfortable feel and just enough buttons and bells. Software of the time likewise had limited buttons which was much easier to remember. Did a lot of restoring old brown type photos. The deep emulsion use captured many details scanned at high resolution then broken into colors, each sharpened, reunited and bingo all the lost details background items . It was fun . Thanks Dave.

  • @EdilbertoAriasRolon
    @EdilbertoAriasRolon Před 8 měsíci +3

    Simple and Impressive as always Dave. Greetings from Asunción Paraguay.

  • @JacGoudsmit
    @JacGoudsmit Před 8 měsíci

    Thanks for turning that tracking off on that gimbal camera. I would not have watched it to the end if you had left that on.
    This is great stuff. I hope you'll look into the bugbug to see if it's actually a bug and to show us what it will look like, once fixed (if needed).
    Also glad to see I'm not the only one who prefers cascaded "if (everything is okay) do the next init step" and at the end "if (this is initialized) tear it down" style of coding. I learned it while I was working at ASML where the main function of the program had so much initialization that it ran into a compiler bug, where the optimizer was changing all the branches to go to the bottom of the function, and the branch distance for the earliest "if (everything is okay)" ended up being too big to fit in the instruction. Good times! Apparently the writers of the compiler (or optimizer) didn't count on long lists of "if (everything is okay)" coding.

  • @NytronX
    @NytronX Před 7 měsíci +4

    I love that he's using MacOS to show Windows source code.

  • @meerkatpowergaming9412
    @meerkatpowergaming9412 Před 7 měsíci

    Hey Dave! Thanks for going through this source code. As someone who hates User32/GDI32 libraries and anything included via windows.h (valid reasons such as legacy, naming, drawbacks of message handling, SetWindowLongPtr etc) with a passion and also someone who is making a windowing API akin to SDL2/GLFW, I really appreciate your code going over the messages; it reaffirms my frustration I've been having with the... weird messages that do weird things... that have been inherited up to windows 10.

  • @traida111
    @traida111 Před 7 měsíci

    its like an old song, that still holds up in current times. what a beast of a developer you are man

  • @DanielMtez
    @DanielMtez Před 7 měsíci

    Omg. Thank you for setting the priority high. I do remember that on some windows update it was removed, probably when the whole thing with xbox ui came in. I hated when that was taken away.
    Thank you so much

  • @mar4kl
    @mar4kl Před 8 měsíci

    Thanks, Dave, for this guided tour of the original Task Manager code! In my programming days, I was mostly a database programmer and then, later, a web programmer, so I had very limited exposure to how Windows creates screen displays, and that bit of exposure I had was via APIs that allowed for calling Windows functions from Paradox for Windows objectPAL and Microsoft Office VBA. A lot of what I had to do back in the day would have made a lot more sense to me if I'd had access to a video like this one. Even though I'm no longer doing much programming, I'd love to see more.

    • @andrewr7820
      @andrewr7820 Před 8 měsíci

      OMG, Paradox? That's going back aways.

  • @paulscarlett4346
    @paulscarlett4346 Před 8 měsíci +3

    Truly enjoying this code review - any chance of spinning up XP and seeing it in action -- as a way to show the code and what it is actually handling -- As a long time VB dev - started with VB 1 and VB dos - rarely got down to this level in the Win 32 API and related code. Many thanks for the effort of getting source and MS permission to review -- speaks of changes at MS toward open source (sorta)

    • @nickwallette6201
      @nickwallette6201 Před 7 měsíci

      I wonder if, some day, we could get the activation lock turned off on XP? I know there's a potential threat that some people would then _use_ it, because it might still be useful enough to get away with doing that. But I just want to play with old computers.

    • @PopeCromwell
      @PopeCromwell Před 7 měsíci

      @@nickwallette6201 The activation master key and algorithm have been decrypted, it is now possible to 'roll your own' telephone activation. Just a matter of looking in the right places

  • @vk3fbab
    @vk3fbab Před 8 měsíci +1

    Great work. In a previous video you said talk manager was a fun personal project and it went into Windows. Does that mean you effectively were the product owner for it and decided what it did or did not do? Or did someone else at Microsoft assume that responsibility? It's amazing that something that was built out of necessity made it in. Great work and love seeing the code. So glad Microsoft allows you to do this and they don't feel threatened by this.

  • @franciscovarela7127
    @franciscovarela7127 Před 8 měsíci +5

    Ah, Windows SDK programming. The big switch, a dog-eared copy of Petzold, MSDN on CD's and lots of coffee...those were the days. Then MFC, an abstraction that was easier to use but not as much fun. Thanks for this code walk-through. Please do continue, always interesting to see a competent developer's code.

  • @michaelmiller3012
    @michaelmiller3012 Před 8 měsíci

    I'm not a programmer (My programming days began and ended with Microsoft BASIC on the TRS-80 Color Computer), so I don't understand the particulars of the code. It is nonetheless fascinating to listen to your step-by-step reasoning and breakdown which still makes sense from a purely logic-oriented standpoint. The thought process BEHIND the code is at least as important as the code itself and THAT is what you are presenting here.

  • @TheEmbeddedHobbyist
    @TheEmbeddedHobbyist Před 8 měsíci

    I can remember after running Windows for workgroups for about 5hrs we would start getting a low memory pop-up, telling us to close application's to continue. Even with no application's running 😂 task manager would still manage to run! It became department policy to shut down your pc at lunchtime so clear the memory leaks. We only ever needed to do this with Windows for workgroups!
    I still like to play about in DOS for a bit of nostalgic fun. Keep the video's coming Dave as they remind me of the good old days 😊

  • @moffix
    @moffix Před 8 měsíci

    This a master class in how you can build a lean and mean Windows project. Takes me back to the early 90s before all the bloated libraries when you had to handle the message loop yourself. Actually coded many things in OS/2 using similar techniques. Difference was, we did everything in C which was error prone when not careful about memory, device drivers etc.

  • @justingoss3147
    @justingoss3147 Před 8 měsíci

    Enjoyed the more laid-back/unscripted tone and attitude this video had. Hope to see more like this!

  • @TehPwnerer
    @TehPwnerer Před 8 měsíci +2

    The way you brush over the sharp stick and eyes comment is beautiful

  • @throx
    @throx Před 8 měsíci

    Brilliant blast from the past of Petzold-era programming techniques for Windows. So many patterns I remember using from the late 80's and early 90's.

  • @bas8036
    @bas8036 Před 8 měsíci +456

    Uff that auto cam zooming is extremely annoying and really distracting from the otherwise awesome video

    • @Niekpas1
      @Niekpas1 Před 7 měsíci +7

      Agree

    • @IBeAWizard24
      @IBeAWizard24 Před 7 měsíci +44

      9:19

    • @midas6659
      @midas6659 Před 7 měsíci +12

      Oh lighten up ya wuss @bas8036

    • @mattwilder132
      @mattwilder132 Před 6 měsíci +45

      ​@@midas6659it's valid feedback 🤔 not sure why that makes them a wuss. Maybe you should stop projecting your insecurities

    • @matthewbrightman3398
      @matthewbrightman3398 Před 6 měsíci +1

      Came here to say the same thing. Unwatchable

  • @Diemermakes
    @Diemermakes Před 8 měsíci

    Explaining how the program uses SetPriorityClass answers a question I've had in my mind for like 20+ years. Thanks Dave!

  • @nickmaleki
    @nickmaleki Před 8 měsíci

    I've always wanted to watch a video like this one. Thanks Dave!

  • @MySonBand
    @MySonBand Před 8 měsíci

    Absolutely interesting dive into the code there :)
    And I did love the "Task manager killing Windows" gag, keep it up :)

  • @Gunbudder
    @Gunbudder Před 8 měsíci

    this is so awesome! thank you for showing the source code! i've always been fascinated by source code for OS stuff, and the comments always seem to have a lot of funny or interesting things

  • @bitegoatie
    @bitegoatie Před 8 měsíci

    Thanks, Dave. Please do continue.

  • @Californ1a
    @Californ1a Před 7 měsíci +1

    It would be really neat to see a series recreating the task manager, showing all the changes you'd do differently these days vs what was written back then, and the actual development process, testing, debugging, and such.

  • @connecticutaggie
    @connecticutaggie Před 8 měsíci

    Thanks much for sharing this inside look. YES I WANT TO SEE MORE!!

  • @DanHPerry
    @DanHPerry Před 8 měsíci

    Great episode. I'll show it to my Engineering Programming class in the spring.

  • @zf4hp24
    @zf4hp24 Před 28 dny

    Great throwback, Dave. I'm still using nested parm checks, Hungarian notation and HRESULTs. And I have a strange attraction to Winddows Runtime Library. Guess that makes me a dinosaur.

  • @greennin
    @greennin Před 7 měsíci +5

    Dave, I just wanted to say, there are some great lawyers on youtube, there are some great doctors, and there are some great scientists in many subjects.
    Among computer scientists you are right up there with the best of your field. The platform is strong because of people like you. Videos from true experts in their fields are invaluable. CZcams owes you people everything.

    • @LuLeBe
      @LuLeBe Před 6 měsíci

      I think CZcams owes 90% of their revenue to product reviewers (not the in depth ones, but the sponsored ones) and mainly lifestyle vlogging content. It’s a shame, but that’s how it is. Just log in to CZcams from an incognito tab and see what crap is on the frontpage.

    • @greennin
      @greennin Před 6 měsíci

      @@LuLeBe yeah i've checked in incognito before. it's scary what the mainstream watches lol

    • @anarkidude9360
      @anarkidude9360 Před 6 měsíci

      @@LuLeBeContent promoted on the main page , from not logged account: 90% fake people, showing their fake asses , boosting of their fake online existence? It hurts my eyes.

  • @Codeaholic1
    @Codeaholic1 Před 8 měsíci

    I always enjoy your code walkthroughs

  • @P-G-77
    @P-G-77 Před 5 měsíci

    I love to view this "insight"... about Windows in general, and above all, Dave you have a great mind.

  • @hedlund
    @hedlund Před 8 měsíci

    Oh wow, I've been hoping for _exactly_ this video for quite a while. Neat!

  • @keithlambell1970
    @keithlambell1970 Před 8 měsíci

    Thanks Dave, very interesting review. Brings back happy memories of when I worked on Windows code directly.

  • @Endelin
    @Endelin Před 8 měsíci +1

    "Windows does some fancy focus management" while your camera is doing the wildest zoom management I've ever seen 🤣. Thanks for sharing some content that only you could Dave 👍.

  • @Juan_Romero_
    @Juan_Romero_ Před 8 měsíci +4

    Hola, Dave. Te sigo desde España. Tu canal es el mejor sin duda en programación. Mi listening es muy malo y apenas comprendo lo que dices. Tengo mucha ilusión en los avances de la IA y espero ansioso el día en que CZcams incluya la opción de doblaje de voz a otros idiomas. Algo que la IA ya ha conseguido y que me consta las plataformas podrán ofrecer en un futuro cercano. Cuando eso pase, voy a recorrer todos los vídeos de tu canal desde el más antiguo en adelante.
    Gracias!

    • @wirito
      @wirito Před 4 měsíci

      Mr Davo no habla el españolo

  • @Tehbom
    @Tehbom Před 8 měsíci

    Im a student and thoroughly enjoyed your last overview, and now this deep dive. Awaiting the follow up and maybe you could spin up an XP vm and show sixe by side? Great work, then and now. Thanks!

  • @timjohansson4304
    @timjohansson4304 Před 8 měsíci

    The only channel on yt that reeally explains my childhood, and love the code true work of art.

  • @v1Broadcaster
    @v1Broadcaster Před 8 měsíci

    thats actually some really nice clean code… honestly truly a work of art! thanks for sharing!!!