- 产品名/展示串、SDK 与运行时导出 API、.NET 命名空间全部换为 DogProtect
- 文件与目录改名: dogprotect.sln / DogProtect/ / DogProtectCon/ / sdk/DogProtect.SDK /
sdk/DogProtectSDK.{h,pas,bas,inc} / runtime/DogProtect.Runtime/ / core/dogprotect.rc /
app/dogprotect_gui.app
- 项目文件扩展名 .vmp → .dog(含 GUI 过滤器、默认输出名、示例工程、单测)
- VM 代码节名默认 .dog(上游为随机 ".xyz"),产物节为 .dog0/.dog1/...
- 授权数据与配置: DogProtect.dat / DogProtectLicense.ini / Global\\DogProtect.dat
- 域名占位 dogprotect.example,bundle id com.dogprotect.dogprotect
- 保留 VMP_* 内部宏与 third-party/
- BUILD-LINUX.md 增补改名说明与 SDK 兼容性提示
56 lines
2.0 KiB
HTML
56 lines
2.0 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<link rel="Stylesheet" type="text/css" href=
|
|
"../../default.css" />
|
|
<meta http-equiv="Content-Type" content=
|
|
"text/html; charset=utf-8" />
|
|
|
|
<title>Step 1.8: Serial numbers in the black list</title>
|
|
</head>
|
|
|
|
<body>
|
|
<h1>Step 1.8: Serial numbers in the black list</h1>
|
|
|
|
<p>A serial number marked in DogProtect as "blocked" should not be accepted by the licensing system. When you will rebuild your application next time, DogProtect will add the hash of blacklisted serial numbers to the protected application. As a result, the licensing system of the application will decline these serial numbers in the future.</p>
|
|
|
|
<p>Firstly, lets minimize the contents of the <strong>main()</strong> function:</p>
|
|
<pre class="code">int main(int argc, char **argv)
|
|
{
|
|
char *serial = "Xserialnumber"; // we set the serial number directly in the code, for simplicity
|
|
|
|
int res = DogProtectSetSerialNumber(serial);
|
|
print_state(res);
|
|
|
|
return 0;
|
|
}
|
|
</pre>
|
|
|
|
<p>Now, run the program and make sure the licensing system do accept our serial number:</p>
|
|
<pre class="code">state = 0
|
|
</pre>
|
|
|
|
<p>Now, add this serial number to the black list of the licensing system. Add the following line to the ini-file:</p>
|
|
<pre class="code">BlackListedSerialNumber=Xserialnumber
|
|
</pre>
|
|
|
|
<p>And run the program again:</p>
|
|
<pre class="code">state = SERIAL_STATE_FLAG_BLACKLISTED
|
|
</pre>
|
|
|
|
<p>Should we inform a user that the serial number he or she enters is blacklisted? It is up to you. You can simply tell the serial number is incorrect or inform the user that the key is compromised. The licensing system simply informs the program about the fact of using the blacklisted serial number.</p><br />
|
|
<a href="step19_hwid.htm">Next step</a>
|
|
<br />
|
|
<br />
|
|
<br />
|
|
<br />
|
|
<hr noshade="noshade" size="1" />
|
|
|
|
<div align="center">
|
|
|
|
</div>
|
|
</body>
|
|
</html>
|