Allora ... con questo semplice codice
codice:
#include <windows.h>
void main()
{
HDC hDC = GetDC(NULL);
HDC hMemDC = CreateCompatibleDC(hDC);
SIZE sz;
sz.cx = GetSystemMetrics(SM_CXSCREEN);
sz.cy = GetSystemMetrics(SM_CYSCREEN);
HBITMAP hBmp = CreateCompatibleBitmap(hDC, sz.cx, sz.cy);
if (hBmp)
{
HBITMAP hOld = (HBITMAP) SelectObject(hMemDC, hBmp);
BitBlt(hMemDC, 0, 0, sz.cx, sz.cy, hDC, 0, 0, SRCCOPY);
SelectObject(hMemDC, hOld);
// Bitmap!
DeleteObject(hBmp);
}
DeleteDC(hMemDC);
ReleaseDC(NULL, hDC);
}
nella linea segnata con il commento Bitmap! hai la disponibilita' dell'oggetto hBmp che contiene il desktop e ci puoi fare quello che vuoi ...