Can i get a ScreenShot of my Desktop using PostMessage ?
PostMessage(0,WM_KEYDOWN,VK_Snapshot,0);
PostMessage(0,WM_KEYUP,VK_Snapshot,0);
Secondly , this code gives me a black ScreenShot image ... ?
bmp := TBitmap.Create;
bmp.Height := Screen.Height;
bmp.Width := Screen.Width;
DCDesk := GetWindowDC(GetDesktopWindow);
BitBlt(bmp.Canvas.Handle, 0, 0, Screen.Width, Screen.Height,DCDesk, 0, 0, SRCCOPY);
bmp.SaveToFile('ScreenShot.bmp');
ReleaseDC(GetDesktopWindow, DCDesk);
bmp.Free;