网站首页  词典首页

请输入您要查询的函数:

 

术语 getsystemtime
释义 GetSystemTime
语法:
C++
void WINAPI GetSystemTime(
__out LPSYSTEMTIME lpSystemTime
);
GetSystemTime函数
获取当前系统日期和时间。该系统的时间,表现在协调通用时间(UTC)。
要检索当前系统日期和时间,本地时间,使用GetLocalTime功能。
参数
lpSystemTime [out]
一个SYSTEMTIME结构的指针得到当前系统日期和时间。该lpSystemTime参数必须是NULL。使用空将导致访问冲突。
返回值
这个函数没有返回值,或提供扩展的错误信息。
备注
要设置当前系统日期和时间,使用SetSystemTime功能。
实例
有关示例,请参见系统时间。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
GetLocalTime
GetSystemTimeAdjustment
GetSystemTimeAsFileTime
SetSystemTime
系统时间
系统时间
时间函数
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==GetSystemTime Function
Retrieves the current system date and time. The system time is expressed in Coordinated Universal Time (UTC).
To retrieve the current system date and time in local time, use the GetLocalTime function.
Syntax
C++
void WINAPI GetSystemTime(
__out LPSYSTEMTIME lpSystemTime
);
Parameters
lpSystemTime [out]
A pointer to a SYSTEMTIME structure to receive the current system date and time. The lpSystemTime parameter must not be NULL. Using NULL will result in an access violation.
Return Value
This function does not return a value or provide extended error information.
Remarks
To set the current system date and time, use the SetSystemTime function.
Examples
For an example, see SYSTEMTIME .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
GetLocalTime
GetSystemTimeAdjustment
GetSystemTimeAsFileTime
SetSystemTime
System Time
SYSTEMTIME
Time Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms724390(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:25