加密狗软件破解复制T-GOU工作室
RSS
当前位置 : > 破解方法 >

ET99加密狗读取数据模拟

来源:未知 作者:admin 时间:2011-04-23 13:59 浏览:

经过分析官方提供的et99 API ,写出下面读取数据的程序,delphi  代码,成品不贴

library FT_ET99_API;
{ Important note about DLL memory management: ShareMem must be the
  first unit in your library's USES clause AND your project's (select
  Project-View Source) USES clause if your DLL exports any procedures or
  functions that pass strings as parameters or function results. This
  applies to all strings passed to and from your DLL--even those that
  are nested in records and classes. ShareMem is the interface unit to
  the BORLNDMM.DLL shared memory manager, which must be deployed along
  with your DLL. To avoid using BORLNDMM.DLL, pass string information
  using PChar or ShortString parameters. }
uses
  Windows,
  Messages,
  SysUtils,
  Classes,
  Graphics,
  Controls,
  Forms,
  Dialogs,
  StdCtrls;
{$R *.res}
function et_FindToken(pid:pchar;var count:cardinal):integer;stdcall;
begin
   count:=1;
   showmessage('FindToken=>Pid:['+strpas(pid)+']'+#13+#10+'count:['+inttostr(count)+']');
   result:=$0;
end;
function et_OpenToken(var handle:THandle;pid :pchar; index :cardinal):integer;stdcall;
begin
   showmessage('OpenToken=>Pid:['+strpas(pid)+']'+#13+#10+'index:['+inttostr(index)+']');
   result:=$0;
end;
function et_CloseToken(handle:THandle):integer;stdcall;
begin
   showmessage('et_CloseToken');
   result:=$0;
end;
function et_Verify(handle:THandle; flags : cardinal; pin: pchar):integer;stdcall;
begin
   showmessage('et_Verify =>flags:['+inttostr(flags)+']'+#13+#10+'pin:['+strpas(pin)+']');
   result:=$0;
end;
function et_Read(handle:THandle; offset : cardinal; Len : cardinal; buffer512:pchar):integer;stdcall;
begin
   showmessage('et_Read =>buffer:['+strpas(buffer512)+']'+#13+#10+'offset:['+inttostr(offset)+']'+#13+#10+'len:['+inttostr(len)+']');
   result:=$0;
end;
function et_Write(handle:THandle; offset : cardinal; Len : cardinal; buffer512:pchar):integer;stdcall;
begin
   showmessage('et_Write =>buffer:['+strpas(buffer512)+']'+#13+#10+'offset:['+inttostr(offset)+']'+#13+#10+'len:['+inttostr(len)+']');
   result:=$0;
end;
function et_GetSN(handle:THandle; buffer512:pchar):integer;stdcall;
begin
   showmessage('et_GetSN =>buffer:['+strpas(buffer512)+']');
   result:=$0;
end;
exports
   et_FindToken,et_OpenToken,et_CloseToken,et_Verify,et_Read,et_Write,et_GetSN;
  
begin
end.


Tags:加密狗
最新评论共有 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名评论
立即注册账号