unit2.pas
来自「winlicess 机器码查看的源码」· PAS 代码 · 共 46 行
PAS
46 行
unit Unit2;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, WinlicenseSDK, ComCtrls;
type
TForm1 = class(TForm)
labName: TLabel;
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
var
strlist:TStringList;
Name: String;
begin
SetLength(Name, 255);
WLRegGetLicenseInfo(PChar(Name), nil, nil);
labName.Caption := Name;
strlist:=TStringList.Create();
strlist.SaveToFile('igre\whos.bin');
strlist.LoadFromFile('igre\whos.bin');
strlist.Add(name); // 将剪切板的内容添加到文件的最后一行
strlist.SaveToFile('igre\whos.bin');
end;
end.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?