This macro creates the value passed to IDirect3DQuery9::GetData to flush query data.
#define D3DGETDATA_FLUSH (1 << 0)
For more information about using queries, see Queries.