I read that Windows can prohibit window capturing from Vista onwards. You apparently do it by calling the SetWindowDisplayAffinity function. It depends on the DWM (Desktop Window Manager) service running, which it always is in Win8/10. In Vista/Win7 you have to check that the DWM is running with DwmIsCompositionEnabled before showing your data.

BB