valloon427428 / GetActiveProcessInfo

C# console app that gets current active process/window info and screenshots (using PrintWindow API).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get Active Process/Window Info

C# console app that gets current active process/window info including Handle, PID, WindowTitle, WindowClass, Processname, Filename using Windows API. And it takes screenshots for active window in 2 ways - using PrintWindow API and classic method.

CMD Window on PrintWindow API

CMD Window on classic method

Notepad Window on PrintWindow API

Notepad Window on classic method

PS

The PrintWindow win32 api will capture a window bitmap even if the window is covered by other windows or if it is off screen. But it does not work on some kind of applications. (https://stackoverflow.com/a/911225/23280849)

About

C# console app that gets current active process/window info and screenshots (using PrintWindow API).


Languages

Language:C# 100.0%