@rene Probably because OP knows both and wants a solution in whatever language?
I can add WinAPI tag but I’m not 100% sure they fit, the tag wiki says “the core set of application programming interfaces”, I think dxgi, desktop duplication, and especially magnification API are rather exotic interfaces, not core ones.