How do you get all the running programs and processes currently running in C++ for Windows 11 using the built in libraries like WIndows.h?
Because I want to make a C++ program that displays all your currently running processes and applications but I don’t know where to start with this.
Enumerating Windows processes without using CreateToolhelp32Snapshot
I know how to use CreateToolhelp32Snapshot or EnumProcesses to enumerate processes but I was trying to experiment with different ways of doing it (I’m still learning and am trying to experiment with different ways of doing things and different ways of approaching problems).
Can’t focus and bring process window to foreground with PID
I’m writing a program that would focus on the process window and bring it to the foreground given the process PID. I’ve came up with the following program in C, but it doesn’t always work despite the checks to ensure that the window is focused.