当前位置:首页 科普知识 SystemTimeToFileTime

SystemTimeToFileTime

发布时间:2023-09-06 22:00:11

SystemTimeToFileTime是一个进程,即系统时间本地时间。

SystemTimeToFileTime详细介绍

SystemTimeToFileTime是一个进程,即系统时间本地时间。

SystemTimeToFileTime简介

SystemTimeToFileTimeThe SystemTimeToFileTime function converts a system time to a file time.

SystemTimeToFileTime详解

BOOL SystemTimeToFileTime( const SYSTEMTIME* lpSystemTime, LPFILETIME lpFileTime);

ParameterslpSystemTime Pointer to a SYSTEMTIME structure that contains the time to be converted. The wDayOfWeek member of the SYSTEMTIME structure is ignored.

lpFileTime Pointer to a FILETIME structure to receive the converted system time. Return ValuesIf the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Example Code For an example, see Changing a File Time to the Current Time.

Requirements

Client

Requires Windows XP, Windows 2000 Professional, Windows NT Workstation, Windows Me, Windows 98, or Windows 95.

Server

Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server.

Header

Declared in Winbase.h; include Windows.h.

Library

link to Kernel32.lib.

DLL

Requires Kernel32.dll.

温馨提示:
本文【SystemTimeToFileTime】由作者 爱百科 转载提供。 该文观点仅代表作者本人, 自学教育网 信息发布平台,仅提供信息存储空间服务, 若存在侵权问题,请及时联系管理员或作者进行删除。
(c)2008-2025 自学教育网 All Rights Reserved 汕头市灵创科技有限公司
粤ICP备2024240640号-6