The application takes advantage of three powerful Windows APIs at a time: Desktop Duplication API Media Foundation Hardware H.264 Video Encoders MediaFoundationDesktopRecorder initializes a desktop duplication session and sends obtained desktop images to H.264 video encoder producing a standard MP4 recording. Optionally, it can add an audio track capturing data from one of the standard…