# C1.Util.DX.Direct3D11.Device.CheckCounter

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct3D11_Device_CheckCounter_" data-uid="C1.Util.DX.Direct3D11.Device.CheckCounter*">CheckCounter Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct3D11_Device_CheckCounter_" data-uid="C1.Util.DX.Direct3D11.Device.CheckCounter*"></a>
<h4 id="C1_Util_DX_Direct3D11_Device_CheckCounter_C1_Util_DX_Direct3D11_CounterDescription_C1_Util_DX_Direct3D11_CounterType__System_Int32__System_IntPtr_System_IntPtr_System_IntPtr_System_IntPtr_System_IntPtr_System_IntPtr_" data-uid="C1.Util.DX.Direct3D11.Device.CheckCounter(C1.Util.DX.Direct3D11.CounterDescription,C1.Util.DX.Direct3D11.CounterType@,System.Int32@,System.IntPtr,System.IntPtr,System.IntPtr,System.IntPtr,System.IntPtr,System.IntPtr)">CheckCounter(CounterDescription, out CounterType, out int, nint, nint, nint, nint, nint, nint)</h4>
<div class="markdown level1 summary"><p>HRESULT ID3D11Device::CheckCounter([In] const D3D11_COUNTER_DESC* pDesc,[Out] D3D11_COUNTER_TYPE* pType,[Out] unsigned int* pActiveCounters,[Out, Buffer, Optional] char* szName,[InOut, Optional] unsigned int* pNameLength,[Out, Buffer, Optional] char* szUnits,[InOut, Optional] unsigned int* pUnitsLength,[Out, Buffer, Optional] char* szDescription,[InOut, Optional] unsigned int* pDescriptionLength)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void CheckCounter(CounterDescription descRef, out CounterType typeRef, out int activeCountersRef, nint szName, nint nameLengthRef, nint szUnits, nint unitsLengthRef, nint szDescription, nint descriptionLengthRef)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub CheckCounter(descRef As CounterDescription, ByRef typeRef As CounterType, ByRef activeCountersRef As Integer, szName As IntPtr, nameLengthRef As IntPtr, szUnits As IntPtr, unitsLengthRef As IntPtr, szDescription As IntPtr, descriptionLengthRef As IntPtr)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct3D11.CounterDescription.html">CounterDescription</a></td>
      <td><span class="parametername">descRef</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct3D11.CounterType.html">CounterType</a></td>
      <td><span class="parametername">typeRef</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">activeCountersRef</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a></td>
      <td><span class="parametername">szName</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a></td>
      <td><span class="parametername">nameLengthRef</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a></td>
      <td><span class="parametername">szUnits</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a></td>
      <td><span class="parametername">unitsLengthRef</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a></td>
      <td><span class="parametername">szDescription</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a></td>
      <td><span class="parametername">descriptionLengthRef</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
