I need to take screen print (actually out put of a NMS area of a screen in my computer desktop) and save it in a Folder by date. Saving by date is now ok. But I cant copy the screen print out put to the clipboard.
I have written the code. But it is not working. Pls somebody correct this.
FILE *fp = fopen("c:\\image.bmp", "a+");
keybd_event(VK_SNAPSHOT, 0, 0, 0);
keybd_event(VK_SNAPSHOT, 0, KEYEVENTF_KEYUP, 0);
Output = (HBITMAP)GetClipboardData(CF_BITMAP);
fwrite(Output, sizeof(Output), sizeof(Output), fp);