Relative Content

Tag Archive for cwindowsprocess

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.