sdlTimeFromWindows function
Converts a Windows FILETIME (100-nanosecond intervals since January 1, 1601) to an SDL time.
This function takes the two 32-bit values of the FILETIME structure as parameters.
\param dwLowDateTime the low portion of the Windows FILETIME value. \param dwHighDateTime the high portion of the Windows FILETIME value. \returns the converted SDL time.
\since This function is available since SDL 3.1.3.
extern SDL_DECLSPEC SDL_Time SDLCALL SDL_TimeFromWindows(Uint32 dwLowDateTime, Uint32 dwHighDateTime)
Implementation
int sdlTimeFromWindows(int dwLowDateTime, int dwHighDateTime) {
final sdlTimeFromWindowsLookupFunction = libSdl3.lookupFunction<
Int64 Function(Uint32 dwLowDateTime, Uint32 dwHighDateTime),
int Function(
int dwLowDateTime, int dwHighDateTime)>('SDL_TimeFromWindows');
return sdlTimeFromWindowsLookupFunction(dwLowDateTime, dwHighDateTime);
}