Skip to content

Program fails to run on Windows 7 32-bit: missing GetSystemTimePreciseAsFile in kernel32.dll #318

@Im-P3dro

Description

@Im-P3dro

Operating System:
Windows 7 32-bit (Service Pack 1)

Problem Description:
When trying to run the program, I get the following error:

"The procedure entry point GetSystemTimePreciseAsFileTime could not be located in the dynamic link library kernel32.dll"

Root Cause:
The function GetSystemTimePreciseAsFileTime is only available from Windows 8 / Server 2012 onwards. Windows 7 does not export this function in kernel32.dll.

Suggested Fix:
Please consider adding a fallback for Windows 7 by replacing GetSystemTimePreciseAsFileTime with GetSystemTimeAsFileTime (available since Windows 2000). A common compatibility pattern is:

#ifdef _WIN32_WINNT_WIN8
    GetSystemTimePreciseAsFileTime(&ft);
#else
    GetSystemTimeAsFileTime(&ft);
#endif

Or dynamically load the function and fallback at runtime.

Impact:
This prevents Windows 7 users (still a significant user base for some software) from using the application.

Request:
Could you please add Windows 7 32-bit compatibility support by removing the dependency on this API? Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions