在哪里,应该怎么保存许可证的相关信息? [英] Where and how should I save license related information?

查看:134
本文介绍了在哪里,应该怎么保存许可证的相关信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序(C#),我负责把一些简单的发牌制度在里面。虽然这样做,我需要的地方保存信息的计算机,限制使用。

I have an application (C#) and I am tasked with putting some simple licensing scheme in it. While doing that I need to save that information somewhere in computer to limit the usage.

我需要保存日期和计数器。

I need to save a date and a counter.

如何以及在哪里,我要救它,在Windows Vista上,那并不需要管理员权限才能运行的信息? (这意味着其保存在System32下,程序文件,HKEY_LOCAL_MACHINE是不是一种选择。)

How and where I should save the information which, on Windows Vista, doesnt require administrative privileges to run? (Which means saving it in System32, Program Files, HKEY_LOCAL_MACHINE is not an option.)

请不要淹没答案与不这样做或它总要被破解。我理解那些逻辑。我只是需要做的事情最好的,可以用于这一目的来进行。

Please do not flood the answers with "don't do it" or "it will be cracked anyway". I do understand those logics. I just need to do anything best that can be done for this purpose.

推荐答案

考虑使用第三方的授权组件,如 XHEO - 有没有必要重新发明轮子

Consider using a third-party licensing component, such as XHEO - there's no need to reinvent the wheel.

如果您仍然需要编写自己的许可证制度,可以考虑使用用户的配置文件目录或 HKEY_CURRENT_USER 分支。

If you are still required to write your own license system, consider using the user's profile directories or the HKEY_CURRENT_USER branch.

这篇关于在哪里,应该怎么保存许可证的相关信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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