# Share directly to a Zoom Room > The code on this page works with either the **default UI** or the **custom UI**. The SDK lets you share directly to a Zoom Room device through a few method calls. ```cpp IDirectShareServiceHelper* directShareHelper = authService->GetDirectShareServiceHelper(); if (directShareHelper && SDKERR_SUCCESS == directShareHelper->CanStartDirectShare()) { directShareHelper->StartDirectShare(); } ``` Set the `IDirectShareServiceHelperEvent` to receive the direct share status updates. ```cpp IDirectShareServiceHelperEvent* event; void OnDirectShareStatusUpdate(DirectShareStatus status, IDirectShareViaMeetingIDOrPairingCodeHandler* handler) { if (status == DirectShare_Need_MeetingID_Or_PairingCode) { // Try with meeting number/id or pairing code } } directShareHelper->SetEvent(event); ``` Before stopping a direct share session, confirm that a share is already in progress. ```cpp if (directShareHelper->IsDirectShareInProgress()) { directShareHelper->StopDirectShare(); } ``` ---