# \[Desktop SDK (Windows 10, C++)\] AUTHRET\_NONE Error Code, need help with interpretation

**URL:** <https://devforum.zoom.us/t/desktop-sdk-windows-10-c-authret-none-error-code-need-help-with-interpretation/54176>\
**Category:** Windows\
**Created:** [July 15, 2021, 7:53am UTC](https://devforum.zoom.us/t/desktop-sdk-windows-10-c-authret-none-error-code-need-help-with-interpretation/54176 "2021-07-15T07:53:13Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![mtaha](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mtaha/32/17373_2.png) [@mtaha](https://devforum.zoom.us/u/mtaha)\
**Post date:** [July 15, 2021, 9:32am UTC](https://devforum.zoom.us/t/desktop-sdk-windows-10-c-authret-none-error-code-need-help-with-interpretation/54176/3 "2021-07-15T09:32:20Z")

</div>

Put this code at the end of your main function before return.  
unsigned int bRet = -1;  
MSG msg;  
while ((bRet = GetMessage(&msg, nullptr, 0, 0)) != 0)  
{  
if (bRet == -1)  
{  
// handle the error and possibly exit  
}  
else  
{  
TranslateMessage(&msg);  
DispatchMessage(&msg);  
}  
}

Explanation of this logic has already provided here: [joinSession Event callbacks are not fired - #11 by mtaha](https://devforum.zoom.us/t/joinsession-event-callbacks-are-not-fired/43426/11)

Hope this will work for you.

---

_[View the full topic](https://devforum.zoom.us/t/desktop-sdk-windows-10-c-authret-none-error-code-need-help-with-interpretation/54176)._
