.net equivalent of SystemIdleTimerReset?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a compact framework equivalent of the WinAPI function
SystemIdleTimerReset? If not, does anyone have some C# code which uses
SystemIdleTimerReset?

Thanks...

Dan
 
Dan said:
Is there a compact framework equivalent of the WinAPI function
SystemIdleTimerReset? If not, does anyone have some C# code which uses
SystemIdleTimerReset?

Thanks...

You do have to call the native function but it isn't hard.
[DllImport("coredll")]

extern static void SystemIdleTimerReset();

private void KeepAwake()

{

SystemIdleTimerReset();

.....

}
 
Back
Top