delphi使用winlicense授权
来源:互联网 发布:国玺云计算最新消息 编辑:程序博客网 时间:2024/04/29 12:48
unit Unit2;interfaceuses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, WinlicenseSDK, SecureEngineSDK;type TForm2 = class(TForm) Memo1: TMemo; Check: TButton; NameEdit: TEdit; CompanyEdit: TEdit; ExtradataEdit: TEdit; HardwareIdEdit: TEdit; procedure CheckClick(Sender: TObject); procedure FormCreate(Sender: TObject); private { Private declarations } public { Public declarations } end;var Form2: TForm2;implementation{$R *.dfm}procedure TForm2.CheckClick(Sender: TObject);begin if WLRegNormalKeyCheck(PAnsiChar(AnsiString(memo1.Text))) = false then MessageBox(0, 'The key that you entered is invalid. Please, try it again', 'Error', MB_OK or MB_ICONERROR) else begin // if activation is valid, insert the registration info in a file // So, winlicense will be able to finish the registration process WLRegNormalKeyInstallToFile(PAnsiChar(AnsiString(memo1.Text))); MessageBox(0, 'Registration key is correct. Please, restart this application to finish the registration process', 'Success', MB_OK); end;end;procedure TForm2.FormCreate(Sender: TObject);var Name : ARRAY[0..200] of AnsiChar; Company : ARRAY[0..200] of AnsiChar; ExtraData : ARRAY[0..200] of AnsiChar; MachineId: ARRAY [0..100] of AnsiChar; ExtStatus: Integer;begin EncodeStart(); WLHardwareGetID(MachineId); HardwareIdEdit.Text := MachineId; if WLRegGetStatus(ExtStatus) = 1 then begin WLRegGetLicenseInfo(Name, Company, ExtraData); NameEdit.Text := Name; CompanyEdit.Text := Company; ExtradataEdit.Text := ExtraData; end; EncodeEnd();end;end.程序编译之后依赖winlicense的dll需要使用winlicense加壳在能运行。
0 0
- delphi使用winlicense授权
- WinLicense---小白使用笔记
- delphi 菜单授权
- Themida WinLicense免费下载脱壳使用教程功能介绍大全
- WinLicense 1.9.7.0 released
- 史上最全的 Winlicense 版本
- WinLicense下载购买地址
- shiro授权的使用
- quosego [Themida/Winlicense unpacking questions]
- 授权才能使用的WebService
- 使用授权引擎的危害
- 使用Cookie控制访问授权
- mysql授权表使用举例
- 使用授权引擎的危害 .
- 使用mysql命令授权用户
- 使用idea搭建授权服务器
- IntelliJ Idea 授权服务器使用
- Kubernetes中使用Node授权
- Android学习 21->进度条之SeekBar和RatingBar
- leetcode | Implement strStr() | 实现字符串查找函数
- 树莓派 usb摄像头 视频图像监控服务的玩法
- java获得随机数的方法
- CSS基本布局
- delphi使用winlicense授权
- 关键路径
- C++中引用(&)的用法和应用实例
- e学编程之《设计模式》篇-状态模式
- Karatsuba 乘法
- c++11特性
- Android分享软件功能的实现
- Activity生命周期
- RMQ问题(士兵杀敌(三))