# Automatic screen sharing at start of meeting with isDirectShareDesktop problem

**URL:** <https://devforum.zoom.us/t/automatic-screen-sharing-at-start-of-meeting-with-isdirectsharedesktop-problem/77192>\
**Category:** Windows\
**Created:** [October 10, 2022, 3:59pm UTC](https://devforum.zoom.us/t/automatic-screen-sharing-at-start-of-meeting-with-isdirectsharedesktop-problem/77192 "2022-10-10T15:59:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![smlznnl](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@smlznnl](https://devforum.zoom.us/u/smlznnl)\
**Post date:** [October 10, 2022, 3:59pm UTC](https://devforum.zoom.us/t/automatic-screen-sharing-at-start-of-meeting-with-isdirectsharedesktop-problem/77192/1 "2022-10-10T15:59:27Z")

</div>

Hello,  
this is yet another bug report where setting StartParam4WithoutLogin::isDirectShareDesktop to true when starting a meetind using the Windows SDK does not activate the screen sharing immediately but shows the window where the user is required to manually enable it.  
This is the window

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/5/0/507d20ba54cf36c6c9a297ce2498962626b0b0c3.png)

Happens in the following Windows 32bit sdk versions  
v5.12.0.9016  
v5.11.4.7235  
v5.9.3.3191  
under Windows 10

Code snippet to show what i am doing:

```auto
ZOOM_SDK_NAMESPACE::IMeetingConfiguration *pConfig;
ZOOM_SDK_NAMESPACE::StartParam4WithoutLogin startMeetingWithoutLoginParam;
ZOOM_SDK_NAMESPACE::StartParam startMeetingParam;

// data->meeting_service is a pointer to IMeetingService

ZOOM_SDK_NAMESPACE::CreateMeetingService(&data->meeting_service);
pConfig = data->meeting_service->GetMeetingConfiguration();
pConfig->EnableAutoEndOtherMeetingWhenStartMeeting(true);
/* set 
  startMeetingWithoutLoginParam.userZAK
  startMeetingWithoutLoginParam.userID
  startMeetingWithoutLoginParam.userName
  startMeetingWithoutLoginParam.meetingNumber
to the correct values */
startMeetingWithoutLoginParam.vanityID = NULL;
startMeetingWithoutLoginParam.hDirectShareAppWnd = NULL;
startMeetingWithoutLoginParam.customer_key = NULL;
startMeetingWithoutLoginParam.isVideoOff = true;
startMeetingWithoutLoginParam.isDirectShareDesktop = true;
startMeetingWithoutLoginParam.isAudioOff = false;
startMeetingWithoutLoginParam.zoomuserType = ZOOM_SDK_NAMESPACE::ZoomUserType_APIUSER;
startMeetingParam.userType = ZOOM_SDK_NAMESPACE::SDK_UT_WITHOUT_LOGIN;
startMeetingParam.param.withoutloginStart = startMeetingWithoutLoginParam;
data->meeting_service->Start(startMeetingParam);

```

---

<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:** [November 10, 2022, 1:59am UTC](https://devforum.zoom.us/t/automatic-screen-sharing-at-start-of-meeting-with-isdirectsharedesktop-problem/77192/2 "2022-11-10T01:59:28Z")

</div>

Closed on November 10, 2022, 1:59am UTC

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