# 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:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![vidattdataanalytics](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vidattdataanalytics/32/34425_2.png) [@vidattdataanalytics](https://devforum.zoom.us/u/vidattdataanalytics)\
**Post date:** [August 2, 2022, 11:08am UTC](https://devforum.zoom.us/t/share-screen-dialogue-pops-up-after-sharing-a-window-directly-using-hdirectshareappwnd/73405/1 "2022-08-02T11:08:03Z")

</div>

I’m trying to share a window directly along with the start of the application.  
I tried to use “hDirectShareAppWnd” ([Windows SDK API Reference: tagStartParam4WithoutLogin Struct Reference](https://marketplacefront.zoom.us/sdk/meeting/windows/structtag_start_param4_without_login.html#aabbb09e987d3b614f1ab48402824ff20)). The required window is being shared when the meeting starts. However, along with it the Share screen dialogue also pops up and it asks me to select a window to share.

I want to hide the select window pop up.

 ![zoom.PNG](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/8/3/8359badbe4cc80fe93e110a1bae42a97574114f8.jpeg)

Any guidance would be helpful. 🙂

---

<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, 3:11am UTC](https://devforum.zoom.us/t/share-screen-dialogue-pops-up-after-sharing-a-window-directly-using-hdirectshareappwnd/73405/2 "2022-08-04T03:11:51Z")

</div>

Welcome!

Thank you for posting @vidattdataanalytics! First, can you share which Windows Meeting SDK version you are using, knowing the version can help us to identify your issue faster.

1. **Which Windows Meeting SDK version?**

---

<div class="post-metadata">

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

</div>

Thank you for the response.  
We’re using **zoom-sdk-windows-5.11.1.6653**

---

<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…

---

<div class="post-metadata">

**Author:** ![vidattdataanalytics](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vidattdataanalytics/32/34425_2.png) [@vidattdataanalytics](https://devforum.zoom.us/u/vidattdataanalytics)\
**Post date:** [August 5, 2022, 8:31am UTC](https://devforum.zoom.us/t/share-screen-dialogue-pops-up-after-sharing-a-window-directly-using-hdirectshareappwnd/73405/5 "2022-08-05T08:31:15Z")

</div>

Thank you for the quick reply, @donte.zoom .

We are following the same steps as mentioned in the above post.  
The required window is shared directly as expected when the meeting starts. However, there is another window which says “Select a window or an application that you want to share” which pops up.

I want to hide that window because the window I want to share is already being shared.

 ![zoom.PNG](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/8/3/8359badbe4cc80fe93e110a1bae42a97574114f8.jpeg)

In the above image, the “scripts” window is being shared directly as expected when the meeting starts. But, we still get the “Select a window or an application that you want to share” dialogue box.

---

<div class="post-metadata">

**Author:** ![vidattdataanalytics](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vidattdataanalytics/32/34425_2.png) [@vidattdataanalytics](https://devforum.zoom.us/u/vidattdataanalytics)\
**Post date:** [August 17, 2022, 1:52pm UTC](https://devforum.zoom.us/t/share-screen-dialogue-pops-up-after-sharing-a-window-directly-using-hdirectshareappwnd/73405/6 "2022-08-17T13:52:02Z")

</div>

Hi @donte.zoom ,

The latest version is 5.11.4.7235. Could you please let us know if it is fixed in the new version?

Thanks.

---

<div class="post-metadata">

**Author:** ![saibal.thakur](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@saibal.thakur](https://devforum.zoom.us/u/saibal.thakur)\
**Post date:** [August 25, 2022, 9:17am UTC](https://devforum.zoom.us/t/share-screen-dialogue-pops-up-after-sharing-a-window-directly-using-hdirectshareappwnd/73405/7 "2022-08-25T09:17:26Z")

</div>

Hello,  
I have the same issue. The share window popup always shows up. In fact this bug has been present for the last several versions of the SDK including the latest 5.11.4.7235  
Would you please help resolve?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [September 25, 2022, 4:24am UTC](https://devforum.zoom.us/t/share-screen-dialogue-pops-up-after-sharing-a-window-directly-using-hdirectshareappwnd/73405/9 "2022-09-25T04:24:54Z")

</div>

Closed on September 25, 2022, 4:24am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
