I am now working on the application which needs to get screenshots of WPF applications, the approach I use is injecting into target WPF application code and
hooking Direct3D functions to intercept EndScene events and grab backbuffer.
The issue I have is that since the moment I inject into the application code, there is no change in visual representation of its windows then EndScene is not
called, but I need to get a first screenshot as soon as possible. For that purpose I would like to force redraw of entire main window of the application. For this pupose in the injected code I call