How can I get the time of the last input event (key and mouseactivity) in VISTA?

  • Thread starter Thread starter Tomas
  • Start date Start date
T

Tomas

I have done a small program in VB.NET that uses the GetLastInputInfo
function to retrieve the time of the last input event. It checks every
second and it works well in Windows XP. However, when I install the
program in VISTA it crashes.

Does anyone know how I can get the time of the last input event (key
and mouse activity) in VISTA?

Any direction and help is most appreciated!

Best regards,

Tomas :)
 
Tomas said:
I have done a small program in VB.NET that uses the GetLastInputInfo
function to retrieve the time of the last input event. It checks every
second and it works well in Windows XP. However, when I install the
program in VISTA it crashes.

Does anyone know how I can get the time of the last input event (key
and mouse activity) in VISTA?

Any direction and help is most appreciated!

MS.public.dotnet.framework.vb

You do know that you may have to escalate the programs privileges to make
it run by using the Vista UAC manifest in code. Also if the solution was
built on XP and is using DLL(s) from that platform and then to deployed to
Vista,then that doesn't mean it's going to work on Vista and may require a
rewrite to run on Vista.
 
MS.public.dotnet.framework.vb

You do know that you may have to escalate the programs privileges  to make
it run by using the Vista UAC manifest in code. Also if the solution was
built on XP and is using DLL(s) from that platform and then to deployed to
Vista,then that doesn't mean it's going to work on Vista and may require a
rewrite to run on Vista.

Thanks for your quick response; I was hopping for a quick fix to get
it to work, but that will not be the case. I appreciate you taken the
time to help me on my way.

Tomas :)
 
Back
Top