网站首页  词典首页

请输入您要查询的函数:

 

术语 setdynamictimezoneinformation
释义 SetDynamicTimeZoneInformation
语法:
C++
BOOL WINAPI SetDynamicTimeZoneInformation(
__in const DYNAMIC_TIME_ZONE_INFORMATION *lpTimeZoneInformation
);
SetDynamicTimeZoneInformation功能
设置当前的时区和夏令时的动态设置。这些设置控制协调通用时间(UTC)翻译为本地时间。
参数
lpTimeZoneInformation [in]
一个 DYNAMIC_TIME_ZONE_INFORMATION结构的指针。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
应用程序必须有此功能SE_TIME_ZONE_NAME特权成功。这种特权是默认禁用。使用AdjustTokenPrivileges函数调用SetDynamicTimeZoneInformation之前启用的特权,然后禁用后SetDynamicTimeZoneInformation调用特权。有关更多信息,请运行特权。
要求:
client最低支持Vista
server最低支持 Windows Server 2008
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
DYNAMIC_TIME_ZONE_INFORMATION
GetDynamicTimeZoneInformation
时间函数
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==SetDynamicTimeZoneInformation Function
Sets the current time zone and dynamic daylight saving time settings. These settings control translations from Coordinated Universal Time (UTC) to local time.
Syntax
C++
BOOL WINAPI SetDynamicTimeZoneInformation(
__in const DYNAMIC_TIME_ZONE_INFORMATION *lpTimeZoneInformation
);
Parameters
lpTimeZoneInformation [in]
A pointer to a DYNAMIC_TIME_ZONE_INFORMATION structure.
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
An application must have the SE_TIME_ZONE_NAME privilege for this function to succeed. This privilege is disabled by default. Use the AdjustTokenPrivileges function to enable the privilege before calling SetDynamicTimeZoneInformation, and then to disable the privilege after the SetDynamicTimeZoneInformation call. For more information, see Running with Special Privileges .
Requirements
Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
DYNAMIC_TIME_ZONE_INFORMATION
GetDynamicTimeZoneInformation
Time Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms724932(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:22:20