如何使用C#访问cmos日期和时间以开发试用版Windows应用程序 [英] how to access cmos date and time using C# for develope trial version windows application

查看:89
本文介绍了如何使用C#访问cmos日期和时间以开发试用版Windows应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用C#访问cmos日期和时间用于开发试用版windows应用程序

how to access cmos date and time using C# for develope trial version windows application

推荐答案

您可能需要使用其中一个WMI提供程序,请参阅 https://msdn.microsoft.com/en-us/library/bg126473(ⅴ = vs.85).aspx [ ^ ]。
You would probably need to use one of the WMI providers, see https://msdn.microsoft.com/en-us/library/bg126473(v=vs.85).aspx[^].


您好,



我建议您尝试使用程序集在Visual Studio中它是可行且安全的解决方案,但是你也可以使用WMI,但是有时它会给你带来一些问题,因为它不能很好地工作。



通过以下链接学习在visual studio中使用Assembly:

http:/ /www.cs.virginia.edu/~evans/cs216/guides/vsasm.html [ ^ ]



通过这种方式,您可以访问系统时钟:

https://msdn.microsoft.com/ en-us / library / vstudio / xzwf0t6d(v = vs.100).aspx [ ^ ]



尝试查看以下链接获取关于Time in等的强大信息。

https://msdn.microsoft.com/en-us/library/windows/desktop/dn553408(v = vs.85).aspx [ ^ ]



问候,

AH
Hi,

I suggestion to you try to using Assembly in Visual Studio it is possible and safe solution, However you can use WMI too but it will be make several problem for you some times it dose not work very well.

Learn using Assembly in visual studio by this link:
http://www.cs.virginia.edu/~evans/cs216/guides/vsasm.html[^]

By this way you can access the system clock:
https://msdn.microsoft.com/en-us/library/vstudio/xzwf0t6d(v=vs.100).aspx[^]

Try to look at the below link to getting strong information about Time in and etc.
https://msdn.microsoft.com/en-us/library/windows/desktop/dn553408(v=vs.85).aspx[^]

regards,
AH


这篇关于如何使用C#访问cmos日期和时间以开发试用版Windows应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆