RtlLocalTimeToSystemTime function

[RtlLocalTimeToSystemTime is available for use in Windows 2000 and Windows XP. It may be unavailable or modifed in subsequent releases. Applications should use the LocalFileTimeToFileTime function.]

Converts the specified local time to system time.

Syntax

NTSTATUS RtlLocalTimeToSystemTime(
  IN PLARGE_INTEGER  LocalTime,
  OUT PLARGE_INTEGER SystemTime
);

Parameters

LocalTime

A pointer to a LARGE_INTEGER structure that specifies the local time.

SystemTime

A pointer to a LARGE_INTEGER structure that receives the returned system time.

Return Value

If the function succeeds, it returns STATUS_SUCCESS. If it fails, it will return the appropriate status code.

Remarks

This function has no associated import library. You must use the LoadLibrary and GetProcAddress functions to dynamically link to Ntdll.dll.

Requirements

   
Target Platform Windows
Header winternl.h
DLL Ntdll.dll

See Also

LocalFileTimeToFileTime

Time Functions