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

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.

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.