Skip to content

darealshinji/cmdline-screenshot-tool-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Save a screenshot of the Windows desktop in .bmp format unsing only the Windows API.
The image will be saved as "screenshot.bmp" in the current working directory.

All linker dependencies are specified explicitly, so you can compile
screenshot-simple.exe by simply running:
   cl screenshot-simple.c

To compile with GCC run:
   gcc -Wall -Wextra -pedantic -O3 screenshot-simple.c -s -static -o screenshot-simple.exe -lgdi32

License: UnLicense (public domain) - <http://unlicense.org/>

For an advanced version that requires C++ see https://github.com/darealshinji/cmdline-screenshot-tool

About

Save a screenshot of the Windows desktop from command line (C API)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages