Hi, everybody,
From C++ program is it possible
- to make a screenshot ( the same thing that "printscreen" button does )
- to access the computer clipboard somehow,
- to set computer's date and time
- to start a system program ( "Paint", for instance )
- to end a system program ( like "Paint" ) ?
If any of those is possible, where can I learn how to do that?
My system is Windows XP.
Thank you.
screen snapshot c++
c++ windows clipboard
c++ set system date time windows
c++ execute another program
msdn createprocess
The last one is a bit trickier to find information on. You'll need information you get from the CreateProcess() function. Post a WM_CLOSE message to the child window to ask it to terminate. You can use WaitForSingleObject() to wait a moment, then force it to terminate with a WM_QUIT message.
Please don't give beginners a hard time for wanting to learn something. Before too long he'll know just where and how to look for things he wants as well as you or I can.