网站首页  词典首页

请输入您要查询的函数:

 

术语 getsystemtimeadjustment
释义 GetSystemTimeAdjustment
语法:
C++
BOOL WINAPI GetSystemTimeAdjustment(
__out PDWORD lpTimeAdjustment,
__out PDWORD lpTimeIncrement,
__out PBOOL lpTimeAdjustmentDisabled
);
GetSystemTimeAdjustment功能
确定系统是否采用定期的时间调整自己的时间,一天24小时在每个时钟中断,随着价值和任何有关调整时期。请注意,这种调整期,相当于时钟中断之间的时间。
参数
lpTimeAdjustment [out]
对变量的指针,函数设置到100数纳秒单位加入时间天在每个时钟周期的时间调整。
lpTimeIncrement [out]
对变量的指针,函数设置的时间间隔定期调整,在100纳秒单位。这之间的间隔是一个系统的时钟中断一段时间。
lpTimeAdjustmentDisabled [out]
一个变量的函数设置表明是否定期调整的时间实际上是指针。
值为TRUE时表示,定期调整被禁用。在每一个时钟中断,系统仅对时钟中断之间的时间间隔的天24小时。该系统是免费的,但是,调整时间的一天24小时使用其他技术。这样的其他技术可能会导致的时间每天24小时以明显跳时作出调整。
值为FALSE时表示,定期调整被用来调整的时间天24小时。在每一个时钟中断,系统增加了调整的时间由SetSystemTimeAdjustment dwTimeAdjustment参数指定的时间,一天24小时。该系统将不会干扰时间调整计划,将不尝试同步自己通过其他方法一天的时间。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
在GetSystemTimeAdjustment和SetSystemTimeAdjustment功能的支持算法,要同步的一天24小时在GetSystemTime和GetLocalTime报道,另有一次使用时间的调整,定期在每个时钟应用中断源,时间。
当周期时间的调整实际上是,该系统增加了一个调整的时间价值的,在1天24小时周期间隔,在每一个时钟中断。该GetSystemTimeAdjustment功能使时间的调整周期是否启用来电者决定,如果它是,获得每个调整金额和时间之间的调整。该SetSystemTimeAdjustment函数允许呼叫者启用或禁用定期的调整,并设置了调整增量值。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
GetLocalTime
GetSystemTime
SetSystemTimeAdjustment
系统时间
时间函数
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==GetSystemTimeAdjustment Function
Determines whether the system is applying periodic time adjustments to its time-of-day clock at each clock interrupt, along with the value and period of any such adjustments. Note that the period of such adjustments is equivalent to the time period between clock interrupts.
Syntax
C++
BOOL WINAPI GetSystemTimeAdjustment(
__out PDWORD lpTimeAdjustment,
__out PDWORD lpTimeIncrement,
__out PBOOL lpTimeAdjustmentDisabled
);
Parameters
lpTimeAdjustment [out]
A pointer to a variable that the function sets to the number of 100-nanosecond units added to the time-of-day clock at each periodic time adjustment.
lpTimeIncrement [out]
A pointer to a variable that the function sets to the interval between periodic time adjustments, in 100-nanosecond units. This interval is the time period between a system's clock interrupts.
lpTimeAdjustmentDisabled [out]
A pointer to a variable that the function sets to indicate whether periodic time adjustment is in effect.
A value of TRUE indicates that periodic time adjustment is disabled. At each clock interrupt, the system merely adds the interval between clock interrupts to the time-of-day clock. The system is free, however, to adjust its time-of-day clock using other techniques. Such other techniques may cause the time-of-day clock to noticeably jump when adjustments are made.
A value of FALSE indicates that periodic time adjustment is being used to adjust the time-of-day clock. At each clock interrupt, the system adds the time adjustment specified by the dwTimeAdjustment parameter of SetSystemTimeAdjustment to the time-of-day clock. The system will not interfere with the time adjustment scheme, and will not attempt to synchronize time of day on its own via other techniques.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
The GetSystemTimeAdjustment and SetSystemTimeAdjustment functions support algorithms that want to synchronize the time-of-day clock, reported by GetSystemTime and GetLocalTime , with another time source using a periodic time adjustment applied at each clock interrupt.
When periodic time adjustment is in effect, the system adds an adjusting value to the time-of-day clock at a periodic interval, at each clock interrupt. The GetSystemTimeAdjustment function lets a caller determine whether periodic time adjustment is enabled, and if it is, obtain the amount of each adjustment and the time between adjustments. The SetSystemTimeAdjustment function lets a caller enable or disable periodic time adjustment, and set the value of the adjusting increment.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
GetLocalTime
GetSystemTime
SetSystemTimeAdjustment
System Time
Time Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms724394(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:26:27