I'm trying to use Windows Desktop Duplication API to capture the screen and save the raw output to a video. …