---
UID: NF:d3d9.IDirect3D9.GetAdapterCount
title: IDirect3D9::GetAdapterCount (d3d9.h)
description: Returns the number of adapters on the system.
old-location: direct3d9\idirect3d9__getadaptercount.htm
tech.root: direct3d9
ms.assetid: VS|directx_sdk|~\idirect3d9__getadaptercount.htm
ms.date: 12/05/2018
ms.keywords: 7f2637d0-4165-4508-af2d-ac07385cee3e, GetAdapterCount, GetAdapterCount method [Direct3D 9], GetAdapterCount method [Direct3D 9],IDirect3D9 interface, IDirect3D9 interface [Direct3D 9],GetAdapterCount method, IDirect3D9.GetAdapterCount, IDirect3D9::GetAdapterCount, d3d9helper/IDirect3D9::GetAdapterCount, direct3d9.idirect3d9__getadaptercount
f1_keywords:
- d3d9/IDirect3D9.GetAdapterCount
dev_langs:
- c++
req.header: d3d9.h
req.include-header: D3D9.h
req.target-type: Windows
req.target-min-winverclnt: 
req.target-min-winversvr: 
req.kmdf-ver: 
req.umdf-ver: 
req.ddi-compliance: 
req.unicode-ansi: 
req.idl: 
req.max-support: 
req.namespace: 
req.assembly: 
req.type-library: 
req.lib: D3D9.lib
req.dll: 
req.irql: 
topic_type:
- APIRef
- kbSyntax
api_type:
- COM
api_location:
- D3D9.lib
- D3D9.dll
api_name:
- IDirect3D9.GetAdapterCount
targetos: Windows
req.typenames: 
req.redist: 
ms.custom: 19H1
---

# IDirect3D9::GetAdapterCount


## -description


Returns the number of adapters on the system.


## -parameters






## -returns



Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">UINT</a></b>

A UINT value that denotes the number of adapters on the system at the time this <a href="https://docs.microsoft.com/windows/desktop/api/d3d9helper/nn-d3d9helper-idirect3d9">IDirect3D9</a> interface was instantiated.




## -see-also




<a href="https://docs.microsoft.com/windows/desktop/api/d3d9/nf-d3d9-idirect3d9-getadapteridentifier">GetAdapterIdentifier</a>



<a href="https://docs.microsoft.com/windows/desktop/api/d3d9helper/nn-d3d9helper-idirect3d9">IDirect3D9</a>
 

 

