RtlLocalTimeToSystemTime - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTRTL_H

NTSYSAPI
NTSTATUS
NTAPI
RtlLocalTimeToSystemTime(
    _In_ PLARGE_INTEGER LocalTime,
    _Out_ PLARGE_INTEGER SystemTime
    );

#endif

View code on GitHub
// winternl.h

NTSTATUS RtlLocalTimeToSystemTime(
  [in]  PLARGE_INTEGER LocalTime,
  [out] PLARGE_INTEGER SystemTime
);
View the official Win32 API reference

NtDoc

This function is documented in Windows SDK.

Win32 API reference (nf-winternl-rtllocaltimetosystemtime)

RtlLocalTimeToSystemTime function

Description

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

Converts the specified local time to system time.

Parameters

LocalTime [in]

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

SystemTime [out]

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.

See also

LocalFileTimeToFileTime

Time Functions