title: How to take a screenshot in WP8?
body: <p>How to produce a complete WP8 screenshot? By “complete” I mean “including application bar, status bar, message boxes and keyboard”.</p>
  
  <p>Things I’ve tried:</p>
  
  <p>GDI API that worked in WP7 (GetDC, CreateCompatibleDC, BitBlt), result - CreateCompatibleDC or CreateDCW  return NULL, GetLastError says “the specified procedure could not be found”. Moreover, it seems WP8 only has the single HDC, namely 0x00dc00dc, so no off-screen GDI DCs are possible.</p>
  
  <p>InvokeScreenCapture and SaveApplicationScreenShot from ShellChrome.dll – application deactivates, nothing else happens.</p>
  
  <p>D3D11Device1::GetImmediateContext, ID3D11RenderTargetView::OMGetRenderTargets – OMGetRenderTargets returns NULL.</p>
  
  <p>Any other ideas?</p>
  
  <p>I don’t need to pass marketplace certification, so unsupported/undocumented APIs are OK.</p>