An old thread, I know, but ...
I just tested this code on Win XP and ...
it failed.
A short debugging session found that
Code:
QueryPerformanceCounter_(@GetHighResTimerStartCount(*HighResTimerA))
failed with
LastError 998, which means No Access.
I tried it with
Code:
Define TimerQ.q
If QueryPerformanceFrequency_(@TimerQ) = 0
Debug GetLastError_()
EndIf
Debug TimerQ
And it worked.
But with the structure it worked not.
I checked the address of \Frequency and it was Ok.
I need to use
Code:
Structure HighResTimer Align #PB_Structure_AlignC
Than it worked.
I have no explanation for that, since the single quad variable is also not aligned, or is it ?
Bernd