PdhCloseLog function (pdh.h)
Closes the specified log file.
Syntax
PDH_FUNCTION PdhCloseLog(
[in] PDH_HLOG hLog,
[in] DWORD dwFlags
);
Parameters
[in] hLog
Handle to the log file to be closed. This handle is returned by the PdhOpenLog function.
[in] dwFlags
You can specify the following flag.
Value | Meaning |
---|---|
|
Closes the query associated with the specified log file handle. See the hQuery parameter of PdhOpenLog. |
Return value
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 |
---|---|
|
The log file handle is not valid. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | pdh.h |
Library | Pdh.lib |
DLL | Pdh.dll |