亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? exdmodu1.pas

?? 詳細(xì)的ERP設(shè)計資料
?? PAS
字號:
(*
This example shows how to generate a machine modifier at run time
while using the TOgSerialNumber component. This means the program
will run only on the machine being used to run the application.

If the program is being run the first time (as determined by the
existance of an INI file, a dialog box is displayed showing the
modifier value along with two entry fields: one for the serial
number, the other for the release code. The user enters the
values that you give him for these two items. The values are
stored in the INI file and the program is allowed to run.

The release code you give the user can be generated by the CODEGEN
example program. Be sure to select the same type component, the
key used to compile the application (the one returned in the
OnGetKey event), and enter the machine modifier the user gives
you - not the one automatically generated when you click the
MachineModifier radio button. Also, if used, make sure the
Expires date is the same.
*)


unit Exdmodu1;

interface

uses
  SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
  Forms, Dialogs, OnGuard, StdCtrls, Buttons,

  OgUtil,
  IniFiles;

const
  CKey : TKey = ($E5,$8F,$84,$D6,$92,$C9,$A4,$D8,
                 $1A,$FA,$6F,$8D,$AB,$FC,$DF,$B4);

type
  TForm1 = class(TForm)
    Memo1: TMemo;
    CloseBtn: TBitBtn;
    Label1: TLabel;
    OgSerialNumberCode1: TOgSerialNumberCode;
    procedure OgSerialNumberCode1GetKey(Sender: TObject; var Key: TKey);
    procedure OgSerialNumberCode1GetCode(Sender: TObject; var Code: TCode);
    procedure OgSerialNumberCode1Checked(Sender: TObject;
      Status: TCodeStatus);
    procedure OgSerialNumberCode1GetModifier(Sender: TObject;
      var Value: Longint);
  private
    { Private declarations }
  public
    { Public declarations }
    TheDir     : string;
    IniSNVal   : longint;
    IniFile    : TIniFile;

    function GetSNData(var S : string) : integer;
  end;

var
  Form1: TForm1;

implementation

{$R *.DFM}

uses
  Exdmodu2;

{=======================================================================}


procedure TForm1.OgSerialNumberCode1GetKey(Sender: TObject; var Key: TKey);
begin
  Key := CKey;
end;


{=======================================================================}


procedure TForm1.OgSerialNumberCode1GetModifier(Sender: TObject;
  var Value: Longint);
begin
  {Generate the value unique to this machine}
  Value := GenerateMachineModifierPrim;
end;


{=======================================================================}

procedure TForm1.OgSerialNumberCode1GetCode(Sender: TObject; var Code: TCode);
var
  S1  : string;
  L   : integer;
begin
  {force the INI file to be in the same directory as the application}
  TheDir := ExtractFilePath(ParamStr(0));
  L := Length(TheDir);
  if (L > 3) and (TheDir[L] <> '\') then
    TheDir := TheDir + '\';

  (*
  this check helps prevent an empty INI file. For the combination of
  this component and using the MachineModifier, an empty or
  incomplete INI file can cause problems, i.e., if something goes wrong
  during the initial input of the SN and ReleaseCode, the program could
  not be run again without deleting the INI file. In a "real world"
  application, you would probably be hiding these values some how and
  would either have to tell the user where to delete things or have a
  utility program to do so.
  *)
  if not (FileExists(TheDir + 'SNWMOD.INI')) then
    Exit;

  {open Ini File}
  IniFile := TIniFile.Create(TheDir + 'SNWMOD.INI');
  try
    {try to read release code}
    S1 := IniFile.ReadString('Codes', 'SNCode', '');

    (*
    set a global variable to the value of the serial number.
    Since, by design, the TOgSerialNumber component does not
    confirm that the SN and ReleaseCode retrieved from the INI
    file are compatible, this value will be used later to
    see if the user has attempted to change the contents of
    the INI file
    *)
    IniSNVal := IniFile.ReadInteger('Codes', 'SN', 0);

    {convert retrieved string to a code}
    HexToBuffer(S1, Code, SizeOf(Code));
  finally
    IniFile.Free;
  end;
end;

{=======================================================================}

function TForm1.GetSNData(var S : string) : integer;
{method used to ask for user input of serial number and release code}
var
  TC  : TCode;
  SNC : string;
  L   : longint;
  Key : TKey;
begin
  Application.CreateForm(TSNEntryDlg, SNEntryDlg);
  try
    {Display new SN and ask for release code}
    SNEntryDlg.SNText.Text := '';
    SNEntryDlg.CodeText.Text := '';

    Result := SNEntryDlg.ShowModal;
    if (SNEntryDlg.CodeText.Text = '') or
       (SNEntryDlg.SNText.Text = '') then
      Result := mrCancel;
    if (Result = mrCancel) then begin
      S := 'Invalid Code or Cancelled';
      Exit;
    end;

    {Check that Release Code was entered correctly}
    Key := CKey;
    OgSerialNumberCode1.Modifier := SNEntryDlg.ModString.Text;

    HexToBuffer(SNEntryDlg.ModString.Text, L, SizeOf(L));

    HexToBuffer(SNEntryDlg.CodeText.Text, TC, SizeOf(TCode));
    ApplyModifierToKeyPrim(L, Key, SizeOf(TKey));

    if not (IsSerialNumberCodeValid(Key, TC)) then begin
      S := 'Release code not entered correctly';
      Result := mrCancel;
    end else begin
      IniFile := TIniFile.Create(TheDir + 'SNWMOD.INI');
      try
        {write SN to IniFile}
        IniSNVal := StrToInt(SNEntryDlg.SNText.Text);
        SNC := SNEntryDlg.CodeText.Text;
        IniFile.WriteInteger('Codes', 'SN', IniSNVal);
        IniFile.WriteString('Codes', 'SNCode', SNC);
      finally
        IniFile.Free;
      end;
    end;
  finally
    SNEntryDlg.Free;
  end;
end;

{=======================================================================}

procedure TForm1.OgSerialNumberCode1Checked(Sender: TObject;
                                            Status: TCodeStatus);
var
  LI  : longint;
  S   : string;
begin
  case Status of
    ogValidCode   : begin
                      {check if retrieved Serial Number matches Code}
                      LI := OgSerialNumberCode1.GetValue;

                      if (LI <> IniSNVal) then begin
                        S := 'The serial number has been changed';
                      end else begin
                        Label1.Caption := 'Serial #: ' + IntToStr(IniSNVal);
                        Exit;
                      end;
                    end;

    ogInvalidCode : begin
                      {if INI file doesn't exist, presume this is first run}
                      if not (FileExists(TheDir + 'SNWMOD.INI')) then begin
                        if not (GetSNData(S) = mrCancel) then begin
                          {Check the SN/ReleaseCode}
                          OgSerialNumberCode1.CheckCode(True);
                          {must Exit since line above began a recursive call}
                          Exit;
                        end;
                      end else
                        S := 'Invalid Code';
                    end;

    ogCodeExpired : S := 'Evaluation period expired';
  end;

  ShowMessage(S);
  Application.Terminate;
end;


end.

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美亚洲国产bt| 综合欧美一区二区三区| 国产在线精品视频| 久久精品欧美一区二区三区不卡| 国产福利视频一区二区三区| 综合久久给合久久狠狠狠97色| 91麻豆免费观看| 亚洲成a天堂v人片| 日韩欧美成人激情| 成人午夜又粗又硬又大| 亚洲精品乱码久久久久久黑人| 在线不卡免费欧美| 国产一区二区三区国产| 亚洲欧洲av色图| 欧美色欧美亚洲另类二区| 毛片av一区二区| 亚洲国产精品ⅴa在线观看| 色婷婷一区二区三区四区| 婷婷综合久久一区二区三区| 精品国产百合女同互慰| a在线播放不卡| 日韩和的一区二区| 久久久www成人免费无遮挡大片| 97精品国产露脸对白| 日韩黄色片在线观看| 中文字幕的久久| 欧美日韩一级黄| 国产成人免费网站| 亚洲成精国产精品女| 国产无人区一区二区三区| 欧美视频第二页| 国产精品亚洲一区二区三区在线| 伊人婷婷欧美激情| 精品少妇一区二区| 色噜噜狠狠色综合欧洲selulu| 久久99国产精品久久99果冻传媒| 成人免费在线视频观看| 日韩一区二区三区免费看| 成人av高清在线| 日韩av一区二区三区四区| 中文字幕亚洲视频| 欧美电影免费观看完整版| 日本高清不卡aⅴ免费网站| 精品亚洲成a人| 一区二区三区日韩精品| 国产亚洲精品资源在线26u| 欧美日韩不卡在线| 成人激情综合网站| 久久精品国产精品青草| 一区二区三区在线视频免费| 精品毛片乱码1区2区3区| 欧美影视一区在线| 大尺度一区二区| 蜜臀av性久久久久蜜臀aⅴ四虎| 亚洲人成网站精品片在线观看| 欧美成人r级一区二区三区| 在线观看一区日韩| 成人综合婷婷国产精品久久 | 在线一区二区三区| 国内精品在线播放| 亚洲国产视频直播| 中文字幕免费在线观看视频一区| 69久久夜色精品国产69蝌蚪网| 色综合久久久久久久久久久| 国产呦精品一区二区三区网站| 石原莉奈一区二区三区在线观看| 国产精品的网站| 久久亚洲一区二区三区四区| 在线视频欧美区| 成人久久久精品乱码一区二区三区| 日本成人在线不卡视频| 一级精品视频在线观看宜春院| 中文字幕乱码亚洲精品一区| 精品日产卡一卡二卡麻豆| 欧美人与禽zozo性伦| 色综合天天综合色综合av | 国产午夜精品久久久久久免费视 | 国产性天天综合网| 国产精品原创巨作av| 国产一区二区三区视频在线播放| 亚洲成人免费av| 国产精品美女一区二区在线观看| 97se亚洲国产综合自在线观| 中文字幕在线不卡一区| 国产成人综合亚洲91猫咪| 中文字幕精品三区| 99久久精品免费看| 蜜桃视频一区二区三区| 欧美激情一区在线观看| 91丝袜美腿高跟国产极品老师| 91精品国产综合久久小美女| 国产精品久久久久久久久免费相片 | 色欧美日韩亚洲| 欧美精品在线视频| 同产精品九九九| 国产日韩v精品一区二区| 国产精品一区在线观看乱码| 国产精品乱子久久久久| 成人听书哪个软件好| 中文字幕av一区二区三区| 波多野洁衣一区| 最近中文字幕一区二区三区| 波多野结衣91| 一区二区国产盗摄色噜噜| 日本福利一区二区| 亚洲免费观看高清完整版在线| 国产传媒日韩欧美成人| 欧美激情一区二区三区全黄| 91视视频在线直接观看在线看网页在线看| 综合久久综合久久| 91丝袜美女网| 国产精品免费丝袜| 国内不卡的二区三区中文字幕| 精品久久久久香蕉网| 国产精品538一区二区在线| 久久久国产午夜精品| 91一区二区在线| 首页综合国产亚洲丝袜| 欧美性高清videossexo| 亚洲私人影院在线观看| 精品福利视频一区二区三区| 成人国产精品视频| 亚洲日本va午夜在线影院| 欧美一区二区三区在线| 国产不卡视频一区二区三区| 亚洲女同女同女同女同女同69| 在线视频中文字幕一区二区| 韩国av一区二区三区在线观看| 亚洲男人电影天堂| 日韩小视频在线观看专区| 国产性做久久久久久| 欧美大片一区二区三区| 久久久亚洲欧洲日产国码αv| 日本一区二区免费在线| 亚洲欧美韩国综合色| 亚洲成人动漫一区| 另类欧美日韩国产在线| 国产激情91久久精品导航| 99天天综合性| 欧美日韩一卡二卡三卡 | 欧美日韩国产高清一区二区| 欧美肥大bbwbbw高潮| 精品国产髙清在线看国产毛片| 中文av一区二区| 亚洲一区二区五区| 麻豆精品国产传媒mv男同| 波多野洁衣一区| 欧美人妖巨大在线| 久久午夜电影网| 亚洲视频一区二区在线| 爽好多水快深点欧美视频| 国产激情视频一区二区在线观看| 在线中文字幕一区二区| 精品国产在天天线2019| 亚洲啪啪综合av一区二区三区| 调教+趴+乳夹+国产+精品| 国产成人免费视频精品含羞草妖精| 91国产免费观看| 久久久久久夜精品精品免费| 亚洲男同性视频| 美国一区二区三区在线播放| youjizz久久| 91精品综合久久久久久| 国产精品欧美久久久久无广告 | 亚洲图片欧美一区| 极品少妇xxxx偷拍精品少妇| 色先锋资源久久综合| 欧美精品一区视频| 一区二区三区波多野结衣在线观看| 精品一区二区三区久久| 91免费视频大全| 久久综合九色综合97婷婷女人| 亚洲精品一二三| 国产一区91精品张津瑜| 欧美日韩国产小视频在线观看| 国产精品嫩草99a| 六月婷婷色综合| 在线视频你懂得一区| 国产亚洲午夜高清国产拍精品| 五月天亚洲婷婷| 99热精品一区二区| 精品乱人伦一区二区三区| 一区二区三区不卡视频在线观看| 国产成人精品影视| 欧美一区二区三区公司| 亚洲激情在线激情| 国产精品亚洲综合一区在线观看| 8x8x8国产精品| 亚洲精品成a人| 成人黄色片在线观看| 精品精品欲导航| 亚洲高清免费一级二级三级| 91在线一区二区三区| 久久久国产午夜精品 | 日韩精品一二区| 色女孩综合影院| 国产精品久久久久久久浪潮网站 | 亚洲综合激情网| av色综合久久天堂av综合| 欧美成人a视频|