我的程式註冊_dll

來源:互聯網
上載者:User

花了兩個晚上做了一個 dll  ,用於程式註冊的

地址在 zzaiss.ik8.com/soft/Register.rar
註冊機 zzaiss.ik8.com/soft/getRegSN.rar

註冊時,對於申請到的序號,只複製裡面的日期和時間就行了,其它的不要,把複製的日期時間考到

註冊機的輸入申請到的註冊號的文字框裡,點到註冊碼就行了

 

該 dll 的匯出函數名為:

function  checkReg(handle:THandle;var Days:integer):integer;stdcall;

使用例子

// 用的是靜態匯入,也可以動態匯入 loadLibrary
function checkReg(Handle:THandle;var Days:integer):integer;stdcall;external 'Dll/Register.dll';

使用

    re := checkReg(application.Handle,Days);
    if (re = 1) or (re = 2) then
    begin
      if re = 2 then    // 下面的可以換成你的,為的是改變標題列
        appConfig^.appName := appconfig^.appName+
          ' --- 未註冊版本 還可以用 '+IntToStr(Days)+
          ' 天 ';

    end else
    begin
      application.Terminate;
      exit;
    end;

傳回值
  1 ->  成功
  2 ->  在使用期內
  3 ->  程式被破壞
  4 ->  取註冊
  5 ->  退出

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.