> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# TakeOwnership (XBOX Series 主機)

> 取得輸出的擁有權。

取得輸出的擁有權。

## 語法

```cpp theme={null}
HRESULT TakeOwnership(  
         IUnknown *pDevice,  
         BOOL Exclusive  
)  
```

### 參數

\**pDevice*   \_In\_\
類型：IUnknown

此參數沒有作用。請參閱「備註」。

*Exclusive*   \
類型：BOOL

此參數沒有作用。請參閱「備註」。

### 傳回值

類型：HRESULT

傳回 S\_OK。

## 備註

[ReleaseOwnership](/zh-TW/reference/graphics/d3d12_xs/interfaces/IDXGIOutput/methods/idxgioutput_releaseownership) 和 [TakeOwnership](/zh-TW/reference/graphics/d3d12_xs/interfaces/IDXGIOutput/methods/idxgioutput_takeownership) 在 XBOX Series X|S 上沒有作用。

## 需求

**標頭：** d3d12\_xs.h

**程式庫：** d3d12\_xs.lib\
**支援的平台：** XBOX Series 主機

## 另請參閱

[IDXGIOutput](/zh-TW/reference/graphics/d3d12_xs/interfaces/IDXGIOutput/idxgioutput)


## Related topics

- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
- [Lobby ownership changes](/services/playfab/multiplayer/lobby/ownership-changes.md)
- [XBOX Series X|S 總覽](/zh-TW/paths/series-xs/overview.md)
- [XBOX 主機遊戲的認證測試 XBOX 需求](/zh-TW/publishing/certification/console-cert-tested-requirements.md)
- [Play Anywhere(主機 + PC)總覽](/zh-TW/paths/play-anywhere/overview.md)
