# How can I get IUserAudioStatus from IUserInfo in C++?

**URL:** <https://devforum.zoom.us/t/how-can-i-get-iuseraudiostatus-from-iuserinfo-in-c/26853>\
**Category:** Windows\
**Created:** [August 11, 2020, 4:57pm UTC](https://devforum.zoom.us/t/how-can-i-get-iuseraudiostatus-from-iuserinfo-in-c/26853 "2020-08-11T16:57:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![desko27](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/desko27/32/8296_2.png) [@desko27](https://devforum.zoom.us/u/desko27)\
**Post date:** [August 11, 2020, 4:57pm UTC](https://devforum.zoom.us/t/how-can-i-get-iuseraudiostatus-from-iuserinfo-in-c/26853/1 "2020-08-11T16:57:56Z")

</div>

**Description**  
How can I get `IUserAudioStatus` from `IUserInfo` in C++?

**Which version?**  
Windows SDK v5.0.24433.0616

**Additional context**  
Is this possible? I’m a bit newbie in C++ but I made some successful edits to an App, and I understand `virtual` stuff is an exposed set of features from the software. I would expect to rather find audio status in [`IUserInfo `](https://github.com/zoom/zoom-sdk-windows/blob/master/h/meeting_service_components/meeting_participants_ctrl_interface.h#L40) already ([like Mac SDK does in ZoomSDKUserInfo](https://github.com/zoom/zoom-sdk-macos/blob/97f88065d376dc4c4774a655b9bb060b0c6a3214/ZoomSDK/ZoomSDK.framework/Versions/A/Headers/ZoomSDKMeetingActionController.h#L147)), but since it’s not there (in Win SDK), I’m trying to figure out how to get audio status from a valid `IUserInfo` instance, which I already have.

Let me share some non-working code to get to the point (I know it’s wrong and lacks detail)

```cpp
IUserInfo* user_info = ... // I already have this

// But I have no idea about how to get audioStatus from it...
// I'd like being able to do something like this:
IUserAudioStatus* userAudioStatus = new IUserAudioStatus(user_info);
AudioStatus audioStatus = userAudioStatus->GetStatus();

```

I know about onUserAudioStatusChange (and I use it) but I want to retrieve audio status at the start of the meeting, so that’s why I need this.

Thanks in advance for any useful hint!

---

<div class="post-metadata">

**Author:** ![bogdan.lytvynovskyi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bogdan.lytvynovskyi/32/6781_2.png) [@bogdan.lytvynovskyi](https://devforum.zoom.us/u/bogdan.lytvynovskyi)\
**Post date:** [August 11, 2020, 8:40pm UTC](https://devforum.zoom.us/t/how-can-i-get-iuseraudiostatus-from-iuserinfo-in-c/26853/2 "2020-08-11T20:40:30Z")

</div>

IUserInfo has IsAudioMuted and GetAudioJoinType. Would that be enough?

---

<div class="post-metadata">

**Author:** ![desko27](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/desko27/32/8296_2.png) [@desko27](https://devforum.zoom.us/u/desko27)\
**Post date:** [August 12, 2020, 8:00am UTC](https://devforum.zoom.us/t/how-can-i-get-iuseraudiostatus-from-iuserinfo-in-c/26853/3 "2020-08-12T08:00:40Z")

</div>

@bogdan.lytvynovskyi thanks for your fast response, that’s actually enough for my needs. I didn’t notice I can use `GetAudioJoinType` in combination with `IsAudioMuted` to figure out the most important values for `AudioStatus`. Thanks!

---

<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:** [August 15, 2020, 12:59am UTC](https://devforum.zoom.us/t/how-can-i-get-iuseraudiostatus-from-iuserinfo-in-c/26853/4 "2020-08-15T00:59:34Z")

</div>

Thanks @bogdan.lytvynovskyi for helping!

hen I will go ahead and close this thread. Please feel free to create another post if any other questions. 🙂

---

<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:** [August 15, 2020, 12:59am UTC](https://devforum.zoom.us/t/how-can-i-get-iuseraudiostatus-from-iuserinfo-in-c/26853/5 "2020-08-15T00:59:38Z")

</div>

Closed on August 15, 2020, 12:59am UTC


