网站首页  词典首页

请输入您要查询的函数:

 

术语 queryperformancefrequency
释义 QueryPerformanceFrequency
语法:
BOOL QueryPerformanceFrequency( LARGE_INTEGER *lpFrequency
);
QueryPerformanceFrequency的功能
该QueryPerformanceFrequency的函数检索高分辨率性能计数器的频率,如果存在。的频率不能改变,而在系统运行。
参数
lpFrequency
[out]指向一个变量接收每分每秒,目前的性能计数器频率。如果安装的硬件不支持高分辨率的性能计数器,这个参数可以是零。
返回值
如果安装的硬件支持高分辨率性能计数器,返回值为非零值。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。例如,如果安装的硬件不支持高分辨率的性能计数器,功能失败。
功能信息
最低DLL版本 kernel32.dll
在Winbase.h HeaderDeclared,头文件:winuser.h
import libraryKernel32.lib
最低操作系统Windows 95,Windows NT 3.1
UnicodeImplemented为Unicode版本。
参见
定时器概述,QueryPerformanceCounter的
==英文原文==QueryPerformanceFrequency Function
The QueryPerformanceFrequency function retrieves the frequency of the high-resolution performance counter, if one exists. The frequency cannot change while the system is running.
Syntax
BOOL QueryPerformanceFrequency( LARGE_INTEGER *lpFrequency
);
Parameters
lpFrequency
[out] Pointer to a variable that receives the current performance-counter frequency, in counts per second. If the installed hardware does not support a high-resolution performance counter, this parameter can be zero.
Return Value
If the installed hardware supports a high-resolution performance counter, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError . For example, if the installed hardware does not support a high-resolution performance counter, the function fails.
Function Information
Minimum DLL Versionkernel32.dll
HeaderDeclared in Winbase.h, include Windows.h
Import libraryKernel32.lib
Minimum operating systemsWindows 95, Windows NT 3.1
UnicodeImplemented as Unicode version.
See Also
Timers Overview , QueryPerformanceCounter
==原始网址==http://msdn.microsoft.com/en-us/library/ms644905(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 11:23:08