PerfCloseQueryHandle function

Closes a query handle that you opened by calling PerfOpenQueryHandle.

Syntax

ULONG PerfCloseQueryHandle(
  HANDLE hQuery
);

Parameters

hQuery

A handle to the query that you want to close

Return value

If the function succeeds, it returns ERROR_SUCCESS.

If the function fails, the return value is a system error code.

Requirements

   
Minimum supported client Windows 10, version 1607 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Target Platform Windows
Header perflib.h
Library AdvAPI32.lib
DLL AdvAPI32.dll

See also

PerfOpenQueryHandle