Skip to content

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

Notifications You must be signed in to change notification settings

valloon427428/GetActiveProcessInfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages