开发者

GetIdleTime() in Windows CE/WM does not work?

开发者 https://www.devze.com 2023-04-02 11:52 出处:网络
I am trying to get the device IdleTime by calling GetIdleTime() [DllImport(\"coredll.dll\")] static extern int GetIdleTime();

I am trying to get the device IdleTime by calling GetIdleTime()

[DllImport("coredll.dll")]
static extern int GetIdleTime();

but idle time keeps incrementing even when the device is not idle.

I call the function with a button click and everytime I click the button the time has incremented even when I do it repeatedly. Why does the time increase when it it not idle? Is there a be开发者_运维问答tter better approach to get the device idle time?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号