[英]c# How can I give my app data folder Kaspersky like security?
I want to give my application data folder kaspersky antivirus like security. 我想给我的应用程序数据文件夹像安全性一样的卡巴斯基反病毒软件。 Where I can add a folder but cant change any content or create any file.
我可以在其中添加文件夹但不能更改任何内容或创建任何文件的位置。 I even gave the current user full control security privilege but it just does not working only for this kaspersky data folder.
我什至为当前用户提供了完全控制的安全特权,但是它仅不适用于该卡巴斯基数据文件夹。 I can only modify data when I turning off "Self protection option".
我只能在关闭“自我保护选项”时修改数据。 I just want to give same type of security into my application data folder.
我只想在我的应用程序数据文件夹中提供相同类型的安全性。 I know how to give security to my folder or file but dont know the option by which option kaspersky doing it.
我知道如何为我的文件夹或文件提供安全性,但不知道该选项由卡巴斯基来执行。 If any one have any idea please share with me.
如果有任何想法,请与我分享。 Thanks.
谢谢。
Much of what you're looking for can be accomplished with NTFS directory permissions. 您要查找的大部分内容都可以通过NTFS目录权限来完成。 Just deny Everyone (and SYSTEM, if you're feeling lucky) the permission to create files in the folder or write/append files in the folder.
只是拒绝所有人(如果您很幸运,也可以拒绝SYSTEM)在文件夹中创建文件或在文件夹中写入/附加文件的权限。 Make sure the permissions apply to "This folder only" and "Files only" respectively, though, or your folder will probably become rather useless til you remove said restriction.
不过,请确保将权限分别应用于“仅此文件夹”和“仅文件”,否则,除非您删除上述限制,否则文件夹可能会变得毫无用处。
The permissions you need probably won't be obvious. 您所需的权限可能不会很明显。 You'll need to be in the advanced permissions dialog in order to set them.
您需要在高级权限对话框中进行设置。
Anyway, you don't really need C# to do it. 无论如何,您实际上并不需要C#来完成。 You could use code if you really wanted to, but you'd do it the same way you'd set any other permissions on files and folders.
如果您确实愿意,可以使用代码,但是可以使用对文件和文件夹设置任何其他权限的相同方法。
Finaly I got it ... kaspersky protecting its folder by starting a Service. 最终我得到了它……卡巴斯基通过启动服务来保护其文件夹。 For that reason the Unlock software unable to track the process handle.
因此,Unlock软件无法跟踪进程句柄。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.