用来测试任何pcsc兼容读卡器

源代码在线查看: sample1.dpr

软件大小: 216 K
上传用户: billhu
关键词: pcsc 测试 兼容 读卡器
下载地址: 免注册下载 普通下载 VIP

相关代码

				{$APPTYPE CONSOLE}
				program Sample1;
				uses PCSCClasses,forms;
				var
				  t:TResourceManager;
				  i,j:integer;
				begin
				  // Create an instance of Resource Manager
				  t:=TResourceManager.Create(nil);
				  t.Connect(dsSystem);
				  try
				    if not t.IsPCSCOK then
				      writeln('PCSC is not running!')
				    else
				    begin
				     writeln('Determining Installed IFDs'#10#10'Reader groups (',t.Groups.Count,') and readers within groups:');
				     with t,Groups do
				       for i:= 0 to Count-1 do   // Enumerate reader groups
				         with Items[i] do
				         begin
				           writeln (#10+GroupName+#10);
				           for j:= 0 to ReaderCount-1 do // Enumerate readers in the group
				             with Readers[ReaderNames[j]] do
				             begin
				               write('  '+ReaderName);
				               if connected then
				               writeln(' '+Atr.Hex) else writeln;
				             end;
				         end;
				    end;
				    writeln;
				    writeln('Press ENTER to close...');
				    readln;
				  finally
				    t.Free;
				  end;
				end.
							

相关资源