
# 停止投屏
**接口描述**
该接口用于停止投屏。
**注意事项**
调用开始投屏后，才能调用停止投屏接口。
**接口定义**
```
/* 停止投屏 */   
int StopSharing();
```
**参数描述**
NA
**返回值**
0 接口调用成功 非0 接口调用失败
**异步回调事件结果**
参见[4.6.4.1.5](https://support.huaweicloud.com/ideahub-IdeaShare-SDK/win-sdk-0042.html)OnShareStopResult。
**示例代码**
```
// 停止投屏   
 if (mShareServiceController != NULL) {   
     mShareServiceController->StopSharing();   
 }
```
