0
A
回答
0
爲了使它起作用,您需要使用GetIdleTime()函數coredll.dll。
要訪問它,你可以使用的P/Invoke命令,它是stated here:
[DllImport("coredll.dll")]
static extern int GetIdleTime();
你也應該注意,有些設備不支持此功能,並返回一個MAXDWORD代替(見GetIdleTime()的說明在塊返回值)。
相關問題
- 1. Transperant Windows在Windows Mobile使用C#
- 2. 在windows mobile中使用桌面C#DLL
- 3. Windows Mobile - 互聯網使用C#
- 4. 在windows mobile上使用C#和C或C++的區別
- 5. c#windows mobile短信
- 6. 用C#在Windows Mobile上連接到Internet#
- 7. 使用C++在Windows mobile 6.x中使用透明PNG
- 8. C# - Windows Mobile - 藍牙配對
- 9. Menu Flyout XAML - C# - Windows 10 Mobile
- 10. Windows Mobile C++托盤圖標
- 11. 如何使用C#在windows mobile中顯示沙灘球?
- 12. 在Windows Mobile中使用C加載簡單的半透明PNG#
- 13. 在Windows Mobile上使用地圖
- 14. 在Windows Mobile 2003上使用Message Queue
- 15. 在Windows Mobile設備上使用Ruby
- 16. 在Visual Studio中使用My.Resources(Windows Mobile)
- 17. Windows Mobile - 禁用USB(Compact Framework - C#)
- 18. 爲Windows Mobile開發應用程序,C#
- 19. 在C#中的getRequestStream的InvalidOperationException(Windows Mobile 6.5)
- 20. 在Windows 10 Mobile上使用本地WCF服務Mobile
- 21. 如何使用C#開發Windows Mobile應用程序?
- 22. Windows Mobile:用C#使用手機的相機
- 23. 如何將滾動條應用到windows mobile應用程序中使用c#.net,windowsce,.net3.5框架,windows mobile 6 professional
- 24. 使用C++/C在Windows Mobile上壓縮文件的可能方法#
- 25. WCF在Windows Mobile 6
- 26. WCF,在Windows Mobile 6.5
- 27. WM_ACTIVATEAPP在Windows Mobile 6
- 28. 我可以使用Windows Mobile 6 SDK開發的Windows Mobile 5個應用程序
- 29. 使用C#winform的Windows Mobile 5.0攝像頭的圖像捕獲
- 30. 如何使用win32 C++隱藏Windows Mobile 6.5中的菜單?
我用同樣的,但是,當我在我的計時器控制事件裏面調用那個方法時,即使我沒有做任何事情,它仍然繼續遞增。 – 2010-05-17 10:01:17
也許我誤解了你的評論,但是如果你什麼都不做,GetIdleTime()會增加,因此名字就會增加。 – Oliver 2010-05-17 10:45:00