SystemTimeToFileTime

王朝百科·作者佚名  2010-03-07  
宽屏版  字体: |||超大  

SystemTimeToFileTimeTheSystemTimeToFileTimefunction converts a system time to a file time.

BOOLSystemTimeToFileTime(const SYSTEMTIME*lpSystemTime,LPFILETIMElpFileTime);

ParameterslpSystemTime[in] Pointer to aSYSTEMTIMEstructure that contains the time to be converted. ThewDayOfWeekmember of theSYSTEMTIMEstructure is ignored.

lpFileTime[out] Pointer to aFILETIMEstructure 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, callGetLastError.

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

RequirementsClient

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.

 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
© 2005- 王朝百科 版权所有