Skip to content

Latest commit

 

History

History
118 lines (94 loc) · 2.56 KB

nf-pdh-pdhcloselog.md

File metadata and controls

118 lines (94 loc) · 2.56 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type 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 req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:pdh.PdhCloseLog
PdhCloseLog function (pdh.h)
Closes the specified log file.
PDH_FLAGS_CLOSE_QUERY
PdhCloseLog
PdhCloseLog function [Perf]
_win32_pdhcloselog
base.pdhcloselog
pdh/PdhCloseLog
perf.pdhcloselog
perf\pdhcloselog.htm
perf
74039bdf-d1b5-41ba-aa4e-4779ce0dd02a
12/05/2018
PDH_FLAGS_CLOSE_QUERY, PdhCloseLog, PdhCloseLog function [Perf], _win32_pdhcloselog, base.pdhcloselog, pdh/PdhCloseLog, perf.pdhcloselog
pdh.h
Windows
Windows XP [desktop apps only]
Windows Server 2003 [desktop apps only]
Pdh.lib
Pdh.dll
Windows
19H1
PdhCloseLog
pdh/PdhCloseLog
c++
APIRef
kbSyntax
DllExport
Pdh.dll
PdhCloseLog

PdhCloseLog function

-description

Closes the specified log file.

-parameters

-param hLog [in]

Handle to the log file to be closed. This handle is returned by the PdhOpenLog function.

-param dwFlags [in]

You can specify the following flag.

Value Meaning
PDH_FLAGS_CLOSE_QUERY
Closes the query associated with the specified log file handle. See the hQuery parameter of PdhOpenLog.

-returns

If the function succeeds, it returns ERROR_SUCCESS and closes and deletes the query.

If the function fails, the return value is a system error code or a PDH error code. The following is a possible value.

Return code Description
PDH_INVALID_HANDLE
The log file handle is not valid.

-see-also

PdhBindInputDataSource

PdhOpenLog