rt
解决方案 »
- MFC中两种添加新类的方法有什么区别么
- 递归调用,STACK OVERFLOW,修改VC #pragma comment(linker,"/STACK:10240,2048")无效
- 这样写为什么不对(刚学VC)unsigned char ArrStrs[i];
- 原创作品,请大家指教:如何使用动态链接库中的资源
- 鼠标右键弹出式菜单把CDC绘的标记刷掉的问题,在OnDraw和OnPaint中加重画标记过程也不起作用?
- 在使用VC中的奇怪问题,关于RichEdit的,在线中
- 我学VC的一些感觉,不知道大家的感觉是否相同
- 关于线程的问题
- 检测指定设备的移入
- 对话框问题?
- 一个关于用VC.NET提供的CSMTPConnection类,MAIL送信时,内存慢慢增加的问题!谢谢!急!
- 请问如何在对话框程序上显示jpg文件?
SetLocalTime(&ct)//结构如下
typedef struct _SYSTEMTIME {
WORD wYear;
WORD wMonth;
WORD wDayOfWeek;
WORD wDay;
WORD wHour;
WORD wMinute;
WORD wSecond;
WORD wMilliseconds;
} SYSTEMTIME, *PSYSTEMTIME;
BOOL SetLocalTime(
const SYSTEMTIME* lpSystemTime
);Parameters
lpSystemTime
[in] Pointer to a SYSTEMTIME structure that contains the current local date and time.
The wDayOfWeek member of the SYSTEMTIME structure is ignored.Return Values
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.Res
The SetLocalTime function enables the SE_SYSTEMTIME_NAME privilege before changing the local time. This privilege is disabled by default. For more information, see Running with Special Privileges.
Windows Server 2003, Windows XP/2000/NT: The system uses UTC internally. Therefore, when you call SetLocalTime, the system uses the current time zone information to perform the conversion, including the daylight saving time setting. Note that the system uses the daylight saving time setting of the current time, not the new time you are setting. Therefore, to ensure the correct result, call SetLocalTime a second time, now that the first call has updated the daylight saving time setting.
Requirements
Client: Included in Windows XP, Windows 2000 Professional, Windows NT Workstation, Windows Me, Windows 98, and Windows 95.
Server: Included in Windows Server 2003, Windows 2000 Server, and Windows NT Server.
Header: Declared in Winbase.h; include Windows.h.
Library: Use Kernel32.lib.