https://bugs.winehq.org/show_bug.cgi?id=46257
--- Comment #2 from Stuart Axon stu.axon@gmail.com --- Here's the code I use to grab the screenshot https://gist.github.com/stuaxo/70e00c1535d4348196969af6dd4d731d
It's python though, it might take a bit longer to get something together with C/C++ as I don't really know what I'm doing when it comes to that or windows development.