如何在c#中设置windwos日历类型 [英] How to set windwos Calender type in c#

查看:129
本文介绍了如何在c#中设置windwos日历类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是如何使用c#设置系统日历类型? .i发现这个功能来自



my question its how to set the system calendar type using c# ? .i found this function from

Kernel32.dll




BOOL SetCalendarInfo(
      _In_  LCID Locale,
      _In_  CALID Calendar,
      _In_  CALTYPE CalType,
      _In_  LPCTSTR lpCalData
    );



但是我如何在c#中使用它?!


but how i used it in c# ?!

推荐答案

那么,你找到的函数, SetCalendarInfo [ ^ ],在文档中说明这一点:

Well, the function you found, SetCalendarInfo[^], says this in the documentation:
Quote:

此功能仅影响日历设置的用户覆盖部分。 它没有设置系统默认值。

This function only affects the user override portion of the calendar settings. It does not set the system defaults.





真正的问题是你为什么要修改系统日历类型?这通常是不赞成的,因为更改任何系统设置只会让用户感到烦恼并且非常快速地卸载您的应用程序。



The real question is WHY are you trying to modify the system calendar type? This is normally frowned upon as changing any system settings will only piss off the user and get your app uninstalled very VERY quickly.


这篇关于如何在c#中设置windwos日历类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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