Furthermore, even if the prototype is visible, the resulting binary will still have an import dependency on the function. As discussed, this will cause it to fail on Windows 7 at load time. The correct approach is a two-pronged strategy:
Convert QueryPerformanceCounter to a FILETIME by recording a reference time at startup. This requires careful handling of counter frequency and system time adjustments. getsystemtimepreciseasfiletime windows 7 upd