---
UID: NF:d3d11_3.ID3D11DeviceContext3.GetHardwareProtectionState
title: ID3D11DeviceContext3::GetHardwareProtectionState (d3d11_3.h)
description: Gets whether hardware protection is enabled.
old-location: direct3d11\id3d11devicecontext3_gethardwareprotectionstate.htm
tech.root: direct3d11
ms.assetid: 52D1F2B2-DBC9-4714-A9C5-A0283EA6C5B7
ms.date: 12/05/2018
ms.keywords: GetHardwareProtectionState, GetHardwareProtectionState method [Direct3D 11], GetHardwareProtectionState method [Direct3D 11],ID3D11DeviceContext3 interface, ID3D11DeviceContext3 interface [Direct3D 11],GetHardwareProtectionState method, ID3D11DeviceContext3.GetHardwareProtectionState, ID3D11DeviceContext3::GetHardwareProtectionState, d3d11_3/ID3D11DeviceContext3::GetHardwareProtectionState, direct3d11.id3d11devicecontext3_gethardwareprotectionstate
f1_keywords:
- d3d11_3/ID3D11DeviceContext3.GetHardwareProtectionState
dev_langs:
- c++
req.header: d3d11_3.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: D3D11.lib
req.dll: 
req.irql: 
topic_type:
- APIRef
- kbSyntax
api_type:
- COM
api_location:
- D3D11.lib
- D3D11.dll
api_name:
- ID3D11DeviceContext3.GetHardwareProtectionState
targetos: Windows
req.typenames: 
req.redist: 
ms.custom: 19H1
---

# ID3D11DeviceContext3::GetHardwareProtectionState


## -description


Gets whether hardware protection is enabled.
        


## -parameters




### -param pHwProtectionEnable [out]

Type: <b>BOOL*</b>

After this method returns, points to a BOOL that indicates whether hardware protection is enabled.
          


## -returns



This method does not return a value.
          




## -see-also




<a href="https://docs.microsoft.com/windows/desktop/api/d3d11_3/nn-d3d11_3-id3d11devicecontext3">ID3D11DeviceContext3</a>
 

 

