CoFileTimeNow

Returns the current time as a FILETIME structure.

HRESULT CoFileTimeNow(
  FILETIME * lpFileTime  //Pointer to return the structure
);
 

Parameter

lpFileTime
[out] Pointer to return the FILETIME structure.

Return Values

S_OK
The current time was converted to a FILETIME structure.

QuickInfo

  Windows NT: Use version 3.1 or later.
  Windows: Use Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in objbase.h.
  Import Library: Included as a resource in ole32.dll.

See Also

CoDosDateTimeToFileTime, CoFileTimeToDosDateTime