如何禁用系统更改日期&时间属性 [英] how to disabled the system change date & time properties

查看:58
本文介绍了如何禁用系统更改日期&时间属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了vb应用程序.在此,我想禁用系统日期和时间更改属性.当我的应用程序屏幕正在运行时,用户无法在我的应用程序之间更改系统日期和时间.
如何通过编码禁用系统更改日期和时间属性,以及在我的应用程序关闭时将其启用?

在此先感谢...

I have developed the vb application .In this ,i want to disabled the system date & time change properties . when my application screen is running then user can not change the system date & time between my application.
how to disabled the system change date & time properties through coding and when my application close it will be enabled ?

thanks in advance...

推荐答案

您可能需要通过操作注册表或在本地计算机策略中更改当前用户的用户权限分配.使用组策略API.

更改系统时间 [ ^ ]
组策略API [
You''ll need to alter the User Rights Assignment for the current user in the Local Computer Policy, probably by manipulating the registry or using the Group Policy API.

Change the system time[^]
Group Policy API[^]


这篇关于如何禁用系统更改日期&时间属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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