Hi Aurel,
It seems that is a DLL chaos here. I think that older DLL's should be deleted.
If you run your application with an older Dll, and someone has a newer Dll, what then?
There will be a chaos.
LARGE_INTEGER must be QUAD!
Declare Function QueryPerformanceCounter Lib "kernel32.dll" (ByRef lpPerformanceCount As QUAD) As Long
Declare Function QueryPerformanceFrequency Lib "kernel32.dll" (ByRef lpFrequency As QUAD) As Long