Render Material from Desktop Duplication API

I am fairly new to UE4 and C++ but have been a web developer for about 10 years. /lifestory

I am attempting to render a material (I think; not sure of the terminology) that can be applied to a plane/cube/flat surface that will act as a duplication of my desktop. I have worked through the Desktop Duplication Sample from Microsoft but am just not sure how to port that code to work in UE4 as a material.

Any direction is appreciated!