# Share screen dialogue pops up after sharing a window directly using "hDirectShareAppWnd"

**URL:** <https://devforum.zoom.us/t/share-screen-dialogue-pops-up-after-sharing-a-window-directly-using-hdirectshareappwnd/73405>\
**Category:** Windows\
**Created:** [August 2, 2022, 11:08am UTC](https://devforum.zoom.us/t/share-screen-dialogue-pops-up-after-sharing-a-window-directly-using-hdirectshareappwnd/73405 "2022-08-02T11:08:03Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [August 4, 2022, 11:50pm UTC](https://devforum.zoom.us/t/share-screen-dialogue-pops-up-after-sharing-a-window-directly-using-hdirectshareappwnd/73405/4 "2022-08-04T23:50:32Z")

</div>

Thanks for sharing that information @vidattdataanalytics. Please see this post which offers a suggested workflow for programmatically sharing a window:

> [@IsDirectShareInProgress return false while direct sharing](https://devforum.zoom.us/t/isdirectshareinprogress-return-false-while-direct-sharing/7735/2):
>
> Hi duochang, Thanks for the post. Direct share is a little bit different from the sharing screen, direct share means start sharing right after the meeting has started. Below is a brief guide to start direct sharing on with Windows SDK: Step 1: Set isDirectShareDesktop to be true in the start or join meeting parameter Step 2: Based on your scenario, configure the hDirectShareAppWnd To Share an app: 1. Use the system API to retrieve the window handle of the corresponding app, and assign it t…

---

_[View the full topic](https://devforum.zoom.us/t/share-screen-dialogue-pops-up-after-sharing-a-window-directly-using-hdirectshareappwnd/73405)._
