That sounds like you want to write a compositor.
Is this for an embedded system or something similar where your program is controlling the full screen content and embeds the content of any other program?

Cheers,
_