---
UID: NF:d3d12video.ID3D12VideoDecodeCommandList.BeginQuery
title: ID3D12VideoDecodeCommandList::BeginQuery
description: Starts a query running.
tech.root: mf
ms.assetid: 7e58addb-6178-4ca5-ae01-040f065b5baa
ms.date: 05/28/2019
f1_keywords:
- ID3D12VideoDecodeCommandList::BeginQuery
dev_langs:
- c++
ms.keywords: ID3D12VideoDecodeCommandList::BeginQuery, BeginQuery, ID3D12VideoDecodeCommandList.BeginQuery, ID3D12VideoDecodeCommandList::BeginQuery, ID3D12VideoDecodeCommandList.BeginQuery
req.header: d3d12video.h
req.include-header: 
req.redist: 
req.target-type: 
req.target-min-winverclnt: 
req.target-min-winversvr: 
req.kmdf-ver: 
req.umdf-ver: 
req.lib: 
req.dll: d3d12.dll
req.irql: 
req.ddi-compliance: 
req.unicode-ansi: 
req.idl: 
req.max-support: 
req.namespace: 
req.assembly: 
req.type-library: 
topic_type:
- apiref
api_type:
- COM
api_location:
- d3d12.dll
api_name:
- ID3D12VideoDecodeCommandList::BeginQuery
targetos: Windows
---

# ID3D12VideoDecodeCommandList::BeginQuery


## -description

Starts a query running.

## -parameters

### -param pQueryHeap

A pointer to an [ID3D12QueryHeap](https://docs.microsoft.com/windows/desktop/api/d3d12/nn-d3d12-id3d12queryheap) specifying the storage for this query.

### -param Type

A member of the [D3D12_QUERY_TYPE](https://docs.microsoft.com/windows/desktop/api/d3d12/ne-d3d12-d3d12_query_type) enumeration specifying the type of the query.

### -param Index

The index of the query within the query heap.

## -returns

This method returns void.

## -remarks

Some queries do not use **BeginQuery** and only have an **EndQuery**.  See each query type in [D3D12_QUERY_TYPE](https://docs.microsoft.com/windows/desktop/api/d3d12/ne-d3d12-d3d12_query_type) to determine proper usage.

## -see-also
