# How to use the Windows API for Desktop Duplication API?

**URL:** <https://discourse.julialang.org/t/how-to-use-the-windows-api-for-desktop-duplication-api/70962>\
**Category:** General Usage\
**Tags:** windows, api\
**Created:** [November 4, 2021, 3:50pm UTC](https://discourse.julialang.org/t/how-to-use-the-windows-api-for-desktop-duplication-api/70962 "2021-11-04T15:50:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pytrator](https://avatars.discourse-cdn.com/v4/letter/p/7c8e57/32.png) [@Pytrator](https://discourse.julialang.org/u/Pytrator)\
**Post date:** [November 4, 2021, 3:50pm UTC](https://discourse.julialang.org/t/how-to-use-the-windows-api-for-desktop-duplication-api/70962/1 "2021-11-04T15:50:32Z")

</div>

Hey there! I try to get as many frames of my desktop as possible.  
The Windows desktop API appears to be a good solution to get that.

However, I don’t know how to do it. I now get things done when it’s documented for C but not with C++.

I also did not find any information how to do it in those C++ cases.

Anyone a idea how to get the frames with this?

> **[Desktop Duplication API - Win32 apps](https://learn.microsoft.com/en-us/windows/win32/direct3ddxgi/desktop-dup-api)**
>
> Windows 8 disables standard Windows 2000 Display Driver Model (XDDM) mirror drivers and offers the desktop duplication API instead.

Thanks for you help!
