int GetBitmapFromScreen() { char *lpBuf; HBITMAP hBitmap,hOld ; HDC hDC,hcDC; BITMAP bb;BITMAPINFO b; HANDLE hp,fh=NULL; DWORD dwX,dwY; //*************** //dwX=GetSystemMetrics(SM_CXSCREEN); //dwY=GetSystemMetrics(SM_CYSCREEN); dwX=100; dwY=100; hDC=…