# IsDirectShareInProgress return false while direct sharing

**URL:** <https://devforum.zoom.us/t/isdirectshareinprogress-return-false-while-direct-sharing/7735>\
**Category:** Electron\
**Created:** [January 28, 2020, 2:35pm UTC](https://devforum.zoom.us/t/isdirectshareinprogress-return-false-while-direct-sharing/7735 "2020-01-28T14:35:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [January 28, 2020, 7:56pm UTC](https://devforum.zoom.us/t/isdirectshareinprogress-return-false-while-direct-sharing/7735/2 "2020-01-28T19:56:33Z")

</div>

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 to hDirectShareAppWnd.
- 
  - To share a monitor

1. Set hDirectShareAppWnd to NULL
2. Use the system API EnumDisplayMonitors() to get the ID of the monitor that you would like to share.
3. Use the interface IMeetingConfiguration.SetDirectShareMonitorID() and pass the monitor ID to tell SDK the monitor you would like to share.  
**Step 3** : Start or join a meeting

The concept is the same on both Windows SDK and Electron SDK on Windows, hope this helps.

Thanks!

---

_[View the full topic](https://devforum.zoom.us/t/isdirectshareinprogress-return-false-while-direct-sharing/7735)._
