The Windows Source Code Revealed: Task Manager (E01)

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ธ.ค. 2024

ความคิดเห็น •

  • @gothikia
    @gothikia ปีที่แล้ว +1010

    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 ปีที่แล้ว +42

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

    • @skywizard3319
      @skywizard3319 ปีที่แล้ว +3

      I was being born when they shipped

    • @竜肝油
      @竜肝油 ปีที่แล้ว

      subclassing lol

    • @victorgarcia3526
      @victorgarcia3526 ปีที่แล้ว

      Omg thirty years, that hurted...

    • @ducpaii
      @ducpaii ปีที่แล้ว +4

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

  • @deldrinov
    @deldrinov ปีที่แล้ว +54

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

    • @Akrucious
      @Akrucious 7 หลายเดือนก่อน

      lol troo

    • @markusTegelane
      @markusTegelane 4 หลายเดือนก่อน +3

      even though it's leaked, it's still illegal to distribute it without permission, because copyright (which this video is technically doing)

    • @Akrucious
      @Akrucious 4 หลายเดือนก่อน +1

      @@markusTegelane It's in the name, copyright, he didn't share a copy of the actual data that Microsoft owns, they shared a video, it's not the same binary data nor is streamed content copied to machines storage device.

  • @zfloflo
    @zfloflo ปีที่แล้ว +157

    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 ปีที่แล้ว

      no, noone will ever pass anything from you.

    • @delian66
      @delian66 ปีที่แล้ว +7

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

    • @AliceErishech
      @AliceErishech ปีที่แล้ว +5

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

    • @Bittboy
      @Bittboy ปีที่แล้ว

      ​@@mykyta1235Peter Noone sucks anyways.

  • @RobertM125
    @RobertM125 ปีที่แล้ว +160

    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 ปีที่แล้ว +10

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

    • @Noricavus
      @Noricavus ปีที่แล้ว

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

    • @arthurmoore9488
      @arthurmoore9488 ปีที่แล้ว

      @@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 ปีที่แล้ว

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

    • @rand0mtv660
      @rand0mtv660 ปีที่แล้ว +29

      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.

  • @jaygosch8705
    @jaygosch8705 ปีที่แล้ว +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 ปีที่แล้ว +5

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

  • @shannahsantucci3017
    @shannahsantucci3017 7 หลายเดือนก่อน +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!

  • @TanjoGalbi
    @TanjoGalbi ปีที่แล้ว +292

    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 ปีที่แล้ว +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 ปีที่แล้ว +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 ปีที่แล้ว +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 ปีที่แล้ว

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

  • @Rinue2
    @Rinue2 ปีที่แล้ว +966

    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 ปีที่แล้ว +54

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

    • @at3o
      @at3o ปีที่แล้ว +56

      He turns it off at 9:32 😎

    • @robbybobbyhobbies
      @robbybobbyhobbies ปีที่แล้ว +11

      I was getting Wayne’s World vibes

    • @SirkyNL
      @SirkyNL ปีที่แล้ว +3

      @@at3o 🙏🏼

    • @jonnyphenomenon
      @jonnyphenomenon ปีที่แล้ว +13

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

  • @warmarin
    @warmarin ปีที่แล้ว +42

    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

  • @bluescreenenjoyer
    @bluescreenenjoyer ปีที่แล้ว +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 10 หลายเดือนก่อน

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

  • @ignaciosanmartin2143
    @ignaciosanmartin2143 ปีที่แล้ว

    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.

  • @martinclerked
    @martinclerked ปีที่แล้ว

    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

  • @JonC341
    @JonC341 ปีที่แล้ว +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 ปีที่แล้ว +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.

  • @tedvanmatje
    @tedvanmatje ปีที่แล้ว +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 🖖

  • @grahamstretch6863
    @grahamstretch6863 ปีที่แล้ว +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!

  • @LaurenceHartje
    @LaurenceHartje ปีที่แล้ว +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 ปีที่แล้ว +3

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

  • @erc0re526
    @erc0re526 ปีที่แล้ว +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 9 หลายเดือนก่อน

      Penguins need HUGS

  • @8antipode9
    @8antipode9 ปีที่แล้ว +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.

  • @JamieKitchens6
    @JamieKitchens6 ปีที่แล้ว +14

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

  • @ThatOneRei
    @ThatOneRei ปีที่แล้ว +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.

  • @SemihFatihAdem
    @SemihFatihAdem ปีที่แล้ว +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.

  • @boydpukalo8980
    @boydpukalo8980 ปีที่แล้ว +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 ปีที่แล้ว +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 ปีที่แล้ว +2

      straight win32 is the best

  • @Intermernet
    @Intermernet ปีที่แล้ว +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.

  • @pixelpoppyproductions
    @pixelpoppyproductions ปีที่แล้ว +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!

  • @TheMasonX23
    @TheMasonX23 ปีที่แล้ว +21

    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 ปีที่แล้ว +1

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

  • @MehYam2112
    @MehYam2112 7 หลายเดือนก่อน

    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.

  • @imrealrage
    @imrealrage ปีที่แล้ว +1

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

  • @NytronX
    @NytronX ปีที่แล้ว +4

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

  • @timeimp
    @timeimp ปีที่แล้ว

    "commit seppoku" I think Dave is incredibly... internet experienced. Thank you _so much_ for walking through this code with us Dave!

  • @TimMetcalf101
    @TimMetcalf101 ปีที่แล้ว +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"

  • @eplazai
    @eplazai ปีที่แล้ว +1

    Hey. I see no comments telling how cool was Microsoft authorizing to show us the source. Thanks Dave!

    • @DavesGarage
      @DavesGarage  ปีที่แล้ว +2

      I was blown away too, and am very appreciative... it was one of those long shots!

  • @bas8036
    @bas8036 ปีที่แล้ว +478

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

    • @Niekpas1
      @Niekpas1 ปีที่แล้ว +7

      Agree

    • @IBeAWizard24
      @IBeAWizard24 ปีที่แล้ว +46

      9:19

    • @kingmidasthagoat
      @kingmidasthagoat ปีที่แล้ว +12

      Oh lighten up ya wuss @bas8036

    • @mattwilder132
      @mattwilder132 ปีที่แล้ว +51

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

    • @matthewbrightman3398
      @matthewbrightman3398 ปีที่แล้ว +1

      Came here to say the same thing. Unwatchable

  • @KlasNyman
    @KlasNyman ปีที่แล้ว +3

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

  • @JacGoudsmit
    @JacGoudsmit ปีที่แล้ว

    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.

  • @Alchemetica
    @Alchemetica ปีที่แล้ว +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 : )

  • @cargo501
    @cargo501 ปีที่แล้ว +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

  • @my-king
    @my-king ปีที่แล้ว +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.

  • @saymehname
    @saymehname 7 หลายเดือนก่อน

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

  • @FloydMaxwell
    @FloydMaxwell ปีที่แล้ว +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 ปีที่แล้ว

      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 ปีที่แล้ว

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

    • @eDoc2020
      @eDoc2020 ปีที่แล้ว

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

    • @andrewr7820
      @andrewr7820 ปีที่แล้ว

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

  • @gevikb
    @gevikb ปีที่แล้ว +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.

  • @OzzFan1000
    @OzzFan1000 ปีที่แล้ว

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

  • @timjohansson4304
    @timjohansson4304 ปีที่แล้ว

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

  • @bashtinator
    @bashtinator ปีที่แล้ว

    The priority setting reminded me of the meme when task manager hangs. "You were supposed to defeat them, not join them!" Fantastic review, thank you for the walk through.

  • @Electronics-Rocks
    @Electronics-Rocks ปีที่แล้ว +2

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

  • @TehPwnerer
    @TehPwnerer ปีที่แล้ว +2

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

  • @GlennHamblin
    @GlennHamblin ปีที่แล้ว +2

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

  • @killerpixel2k3
    @killerpixel2k3 ปีที่แล้ว +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!

    • @DavesGarage
      @DavesGarage  ปีที่แล้ว +1

      Wow, glad you found it useful!

  • @Diemermakes
    @Diemermakes ปีที่แล้ว

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

  • @BertRedd
    @BertRedd ปีที่แล้ว

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

  • @greennin
    @greennin ปีที่แล้ว +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. TH-cam owes you people everything.

    • @LuLeBe
      @LuLeBe ปีที่แล้ว

      I think TH-cam 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 TH-cam from an incognito tab and see what crap is on the frontpage.

    • @greennin
      @greennin ปีที่แล้ว

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

    • @anarkidude9360
      @anarkidude9360 ปีที่แล้ว

      @@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.

  • @marcellomello3307
    @marcellomello3307 ปีที่แล้ว

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

  • @damionlee7658
    @damionlee7658 ปีที่แล้ว +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?

  • @ruadeil_zabelin
    @ruadeil_zabelin ปีที่แล้ว +1

    I love how you're looking at this code on a Mac.

  • @justingoss3147
    @justingoss3147 ปีที่แล้ว

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

  • @george1717
    @george1717 ปีที่แล้ว +9

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

  • @BaZe-dk9kh
    @BaZe-dk9kh ปีที่แล้ว

    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!

  • @DanielMtez
    @DanielMtez ปีที่แล้ว

    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

  • @lonniebiz
    @lonniebiz ปีที่แล้ว +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.

  • @nyekku
    @nyekku ปีที่แล้ว +1

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

  • @MySonBand
    @MySonBand ปีที่แล้ว

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

  • @Endelin
    @Endelin ปีที่แล้ว +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 👍.

  • @MrMcyeet
    @MrMcyeet ปีที่แล้ว +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 ปีที่แล้ว

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

    • @rcjp
      @rcjp ปีที่แล้ว

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

  • @Zeazy
    @Zeazy ปีที่แล้ว

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

  • @schifoso
    @schifoso ปีที่แล้ว

    I enjoyed seeing how small, well written, clean, and well laid out code used to be written.

  • @GiorgiBekurashvili
    @GiorgiBekurashvili ปีที่แล้ว

    It is such a big honor. Thank you for reveal LEGEND!

  • @jemakrol
    @jemakrol ปีที่แล้ว

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

  • @jwc4520
    @jwc4520 ปีที่แล้ว +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.

  • @JonKPowers
    @JonKPowers ปีที่แล้ว

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

  • @paulscarlett4346
    @paulscarlett4346 ปีที่แล้ว +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 ปีที่แล้ว

      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 ปีที่แล้ว

      @@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

  • @manizaeim
    @manizaeim ปีที่แล้ว

    Thanks for sharing. I really enjoyed how you code it. I am GNU/Linux user for about 2 decades now but to me Task Manager was/is the best application in MS Windows, i just really liked it. Microsoft culture changed alot during all these years.

  • @TheEmbeddedHobbyist
    @TheEmbeddedHobbyist ปีที่แล้ว

    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 😊

  • @jtwhite2084
    @jtwhite2084 ปีที่แล้ว

    Thanks Dave. I love your "What was Dave thinking when he wrote that" videos and insights they provide.

  • @danieldawson4937
    @danieldawson4937 ปีที่แล้ว

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

  • @afmikasenpai
    @afmikasenpai ปีที่แล้ว

    This channel is truly a hidden gem.

  • @skylo706
    @skylo706 ปีที่แล้ว

    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 😊

  • @ThunderChasers
    @ThunderChasers ปีที่แล้ว

    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.

  • @dwightmoody9005
    @dwightmoody9005 4 หลายเดือนก่อน

    Wow! I've been catching up on your channel for a couple of weeks now. I was the author of "System Monitor" for the Commodore Amiga. A predecessor to Task Manager. I would love to chat some day!

  • @moffix
    @moffix ปีที่แล้ว

    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.

  • @EdilbertoAriasRolon
    @EdilbertoAriasRolon ปีที่แล้ว +3

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

  • @tudorcroitoru8762
    @tudorcroitoru8762 ปีที่แล้ว +2

    This is extremely interesting! I always thought the Win32 UI api was very verbose and was very curios how people were building useful apps from scratch without Qt, XAML and the rest. It's very cool to see this code with the explanations of what it does and why. Can't wait for the next part!

    • @nickwallette6201
      @nickwallette6201 ปีที่แล้ว

      I was using VB back then. It always frustrated me that you were walled out of so many things that Windows applications apparently _could_ do, like dragging the window from anywhere, or locking the minimum size, etc. There were WM controls you could drop in to subscribe to events, but then you were basically dropped into the deep end of the WinAPI, and had to be able to translate documentation written for C programmers to the types you had access to in VB.
      So now, it's enlightening to see how those tricks were done. It all totally makes sense, and the verbosity highlights one of the reasons why VB didn't give you the rope to hang yourself.

  • @throx
    @throx ปีที่แล้ว

    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.

  • @hotwings9382
    @hotwings9382 ปีที่แล้ว +1

    Incredible Dave, you were performing at a high level during your time at Microsoft 🎉

  • @debemdeboas
    @debemdeboas ปีที่แล้ว

    amazing video, super nice to see how windows code has evolved

  • @nickmaleki
    @nickmaleki ปีที่แล้ว

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

  • @hedlund
    @hedlund ปีที่แล้ว

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

  • @adrianmillard6598
    @adrianmillard6598 ปีที่แล้ว

    Generally speaking I had no idea what you were talking about. I still enjoyed the video though, and appreciated your company. So thank you.

  • @jspiker77
    @jspiker77 ปีที่แล้ว

    Thank you for taking me down memory lane. I was many years ago I was honored to work on MS Word 95 in support of this.

  • @Dremth
    @Dremth ปีที่แล้ว

    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.

  • @Juan_Romero_
    @Juan_Romero_ ปีที่แล้ว +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 TH-cam 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 11 หลายเดือนก่อน

      Mr Davo no habla el españolo

  • @dracenmarx
    @dracenmarx ปีที่แล้ว +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

  • @meerkatpowergaming9412
    @meerkatpowergaming9412 ปีที่แล้ว

    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.

  • @kylekinnear8878
    @kylekinnear8878 ปีที่แล้ว

    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.

  • @hl2mukkel
    @hl2mukkel ปีที่แล้ว +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!

  • @Gunbudder
    @Gunbudder ปีที่แล้ว

    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

  • @InsideOfMyOwnMind
    @InsideOfMyOwnMind ปีที่แล้ว

    I know very little of what you're talking about but the way you talk about it is riveting.

  • @franciscovarela7127
    @franciscovarela7127 ปีที่แล้ว +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.

  • @NeoAF10
    @NeoAF10 ปีที่แล้ว

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

  • @AnIdiotAboard_
    @AnIdiotAboard_ ปีที่แล้ว +1

    Can we just take a min to thank Microsoft aswell here! Its incredible to me they've allowed him to do this and given him the actual code, yeah its 20 years old but still.

  • @azufendusgarendum6583
    @azufendusgarendum6583 ปีที่แล้ว

    This was a lot of fun! Looking forward to more!

  • @DanHPerry
    @DanHPerry ปีที่แล้ว

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