---
UID: NF:d3d9.IDirect3DDevice9Ex.TestCooperativeLevel
title: IDirect3DDevice9Ex::TestCooperativeLevel (d3d9.h)
description: Reports the current cooperative-level status of the Direct3D device for a windowed or full-screen application.
old-location: direct3d9\idirect3ddevice9ex_testcooperativelevel.htm
tech.root: direct3d9
ms.assetid: VS|directx_sdk|~\idirect3ddevice9ex_testcooperativelevel.htm
ms.date: 12/05/2018
ms.keywords: 6f94d11f-1a89-26b6-63ad-498e9b13565c, IDirect3DDevice9Ex interface [Direct3D 9],TestCooperativeLevel method, IDirect3DDevice9Ex.TestCooperativeLevel, IDirect3DDevice9Ex::TestCooperativeLevel, TestCooperativeLevel, TestCooperativeLevel method [Direct3D 9], TestCooperativeLevel method [Direct3D 9],IDirect3DDevice9Ex interface, d3d9/IDirect3DDevice9Ex::TestCooperativeLevel, direct3d9.idirect3ddevice9ex_testcooperativelevel
f1_keywords:
- d3d9/IDirect3DDevice9Ex.TestCooperativeLevel
dev_langs:
- c++
req.header: d3d9.h
req.include-header: 
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:
- IDirect3DDevice9Ex.TestCooperativeLevel
targetos: Windows
req.typenames: 
req.redist: 
ms.custom: 19H1
---

# IDirect3DDevice9Ex::TestCooperativeLevel


## -description


<p class="CCE_Message">[<b>TestCooperativeLevel</b> is no longer available for use. Instead, use <a href="https://docs.microsoft.com/windows/desktop/api/d3d9/nf-d3d9-idirect3ddevice9ex-checkdevicestate">CheckDeviceState</a>.]

Reports the current cooperative-level status of the Direct3D device for a windowed or full-screen application.


## -parameters






## -returns



Type: <b><a href="/windows/win32/com/structure-of-com-error-codes">HRESULT</a></b>

Always returns D3D_OK.




## -see-also




<a href="https://docs.microsoft.com/windows/desktop/api/d3d9/nn-d3d9-idirect3ddevice9ex">IDirect3DDevice9Ex</a>
 

 

