网站首页  词典首页

请输入您要查询的函数:

 

术语 pdhsetquerytimerange
释义 PdhSetQueryTimeRange
语法:
C++
PDH_STATUS PdhSetQueryTimeRange(
__in PDH_HQUERY hQuery,
__in PPDH_TIME_INFO pInfo
);
PdhSetQueryTimeRange功能
限制的样品,您可以从日志读取文件在规定时间内的范围内,包容。
参数
hQuery [in]
句柄查询。该PdhOpenQuery函数返回此句柄。
pInfo [in]
阿PDH_TIME_INFO结构,指定的时间范围。指定本地文件的时间的时间。结束时间必须大于开始时间。您可以指定开始时间0,最高64位值的结束时间,如果您想阅读的所有记录。
返回值
如果函数成功,它返回ERROR_SUCCESS。
如果函数失败,返回值是一个系统错误代码或一种PDH错误代码。以下是可能的值。
返回codeDescription
PDH_INVALID_HANDLEThe查询处理是无效的。
PDH_INVALID_ARGUMENTThe结束时间范围值必须大于起始时间范围值。
备注
当指定时间结束范围或日志文件的最终达成,该PdhCollectQueryData函数将返回PDH_NO_MORE_DATA。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderPdh.h
LibraryPdh.lib
DLLPdh.dll
参见
PdhCollectQueryData
PdhGetDataSourceTimeRange
PdhOpenQuery
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月23日
==英文原文==PdhSetQueryTimeRange Function
Limits the samples that you can read from a log file to those within the specified time range, inclusively.
Syntax
C++
PDH_STATUS PdhSetQueryTimeRange(
__in PDH_HQUERY hQuery,
__in PPDH_TIME_INFO pInfo
);
Parameters
hQuery [in]
Handle to the query. The PdhOpenQuery function returns this handle.
pInfo [in]
A PDH_TIME_INFO structure that specifies the time range. Specify the time as local file time. The end time must be greater than the start time. You can specify 0 for the start time and the maximum 64-bit value for the end time if you want to read all records.
Return Value
If the function succeeds, it returns ERROR_SUCCESS.
If the function fails, the return value is a system error code or a PDH error code . The following are possible values.
Return codeDescription
PDH_INVALID_HANDLEThe query handle is not valid.
PDH_INVALID_ARGUMENTThe ending time range value must be greater than the starting time range value.

Remarks
When the end of the specified time range or the end of the log file is reached, the PdhCollectQueryData function will return PDH_NO_MORE_DATA.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderPdh.h
LibraryPdh.lib
DLLPdh.dll
See Also
PdhCollectQueryData
PdhGetDataSourceTimeRange
PdhOpenQuery
Send comments about this topic to Microsoft
Build date: 7/23/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa372677(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:15:43