I use widely this function
Public Declare Function GetTickCount Lib "kernel32" () As Long
It works fine. But it limit me to appx 25 days in which I should ask customers using my app to restart his Windows. The question is – how I can make this time longer – much longer – twice or even 10 times bigger than 25 days.
As I read in fact this id DWord
DWORD WINAPI GetTickCount(void);
So look that I loose about half of possible time with get it like Long. SO may be the question is:
How to get DWord via the function? I can use Currency type in VB6. Actually I make this attempt:
Public Declare Function GetTickCount Lib "kernel32" () As Currency
Msgbox GetTickCount * 10000
And this works in Win 7 32 bits, but under Xp 32 bits I get wrong value (unreal big value in start of software)
I see that there is function
GetTickCount64 - i get its value via Currency in VB6 but under XP it get – Can’t find entry point.
So I see the solution in 2 direction:
1. Te get the value like DWord (twice more than Long) or better – in Currency
2. Or do I have options program to set to 0 this timer?