My application is running on virtual machine and take a screen of window at every one minute. It gives the blank screenshot. Using below code for the same.
HWND hWndCapture = ::GetDesktopWindow();
HDC hdcScreen = ::GetDC(hWndCapture);
HDC hdcMem = ::CreateCompatibleDC(hdcScreen);
Width, //width of region of interest
Height, //height of region of interest
X, //left staring point for capture
Y, //top staring point for capture
Does DirectX can give the correct screenshot while headless mode?
Does Microsoft provide any kernel level API for headless screen capture?
Is there any other way to take screen of window?
Edited byGMahenWednesday, March 29, 2017 12:18 PMUpdate the query