91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

PC/SC 微軟智能卡C#開發框架庫 ,應用該框架庫可讓您開發PC/SC更加容易使用,避免了 WinSmart.DLL 的復雜調用過程。

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.Text;

using?GemCard;

namespace?DemoSCFmwk
{
????class?Program
????{
????????static?APDUCommand?
????????????apduVerifyCHV?=?new?APDUCommand(0xA0?0x20?0?1?null?0)
????????????apduSelectFile?=?new?APDUCommand(0xA0?0xA4?0?0?null?0)
????????????apduReadRecord?=?new?APDUCommand(0xA0?0xB2?1?4?null?0)
????????????apduGetResponse?=?new?APDUCommand(0xA0?0xC0?0?0?null?0);

????????const?ushort?SC_OK?=?0x9000;
????????const?byte?SC_PENDING?=?0x9F;

????????///?
????????///?This?program?tests?the?API?with?a?SIM?card.?
????????///?If?your?PIN?is?activated?be?carefull?when?presenting?the?PIN?to?your?card!?
????????///?

????????///?
????????static?void?Main(string[]?args)
????????{
????????????try
????????????{
????????????????APDUResponse?apduResp;

????????????????CardNative?iCard?=?new?CardNative();

????????????????string[]?readers?=?iCard.ListReaders();

????????????????iCard.Connect(readers[0]?SHARE.Shared?PROTOCOL.T0orT1);
????????????????Console.WriteLine(“Connects?card?on?reader:?“?+?readers[0]);

????????????????//?Verify?the?PIN?(if?necessary)
????????????????byte[]?pin?=?new?byte[]?{?0x31?0x32?0x33?0x34?0xFF?0xFF?0xFF?0xFF};
????????????????APDUParam?apduParam?=?new?APDUParam();
????????????????apduParam.Data?=?pin;
????????????????apduVerifyCHV.Update(apduParam);
????????????????//apduResp?=?iCard.Transmit(apduVerifyCHV);

????????????????//?Select?the?MF?(3F00)
????????????????apduParam.Data?=?new?byte[]?{?0x3F?0x00?};
????????????????apduSelectFile.Update(apduParam);
????????????????apduResp?=?iCard.Transmit(apduSelectFile);
????????????????if?(apduResp.Status?!=?SC_OK?&&?apduResp.SW1?!=?SC_PENDING)
????????????????????throw?new?Exception(“Select?command?failed:?“?+?apduResp.ToString());
????????????????Console.WriteLine(“MF?selected“);

????????????????//?Select?the?EFtelecom?(7F10)
????????????????apduParam.Data?=?new?byte[]?{?0x7F?0x10?};
????????????????apduSelectFile.Update(apduParam);
????????????????apduResp?=?iCard.Transmit(apduSelectFile);
????????????????if?(apduResp.Status?!=?SC_OK?&&?apduResp.SW1?!=?SC_PENDING)
????????????????????throw?new?Exception(“Select?command?failed:?“?+?apduResp.ToString());
????????????????Console.WriteLine(“DFtelecom?selected“);

????????????????//?Select?the?EFadn?(6F3A)
????????????????apduParam.Data?=?new?byte[]?{?0x6F?0x3A?};
????????????????apduSelectFile.Update(apduParam);
????????????????apduResp?=?iCard.Transmit(apduSelectFile);
????????????????if?(apduResp.Status?!=?SC_OK?&&?apduResp.SW1?!=?SC_PENDING)
????????????????????throw?new?Exception(“Select?command?failed:?“?+?apduResp.ToString());
????????????????Console.WriteLine(“EFadn?(Phone?numbers)?selected“);

????????????????//?Read?the?response
????????????????if?(apduResp.SW1?==?SC_PENDING)
????????????????{
????????????????????apduPara

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????1383??2006-12-28?20:00??Smartcard_framework_2010\ApduList.xml
?????文件????????2256??2005-08-28?18:29??Smartcard_framework_2010\CmdList.xml
?????文件?????????628??2005-08-29?16:49??Smartcard_framework_2010\SequenceList.xml
?????文件????????6777??2011-08-16?18:23??Smartcard_framework_2010\Smartcard?framework?2010.sln
?????文件???????67584??2011-08-16?18:27??Smartcard_framework_2010\Smartcard?framework?2010.suo
?????目錄???????????0??2011-08-16?18:26??Smartcard_framework_2010\Smartcard_API\
?????目錄???????????0??2011-08-16?18:28??Smartcard_framework_2010\Smartcard_API\DemoSCFmwk\
?????文件????????4911??2011-08-16?18:21??Smartcard_framework_2010\Smartcard_API\DemoSCFmwk\DemoSCFmwk.csproj
?????文件?????????452??2011-08-16?18:21??Smartcard_framework_2010\Smartcard_API\DemoSCFmwk\DemoSCFmwk.csproj.user
?????文件????????4498??2006-12-03?21:36??Smartcard_framework_2010\Smartcard_API\DemoSCFmwk\Program.cs
?????目錄???????????0??2011-08-16?18:16??Smartcard_framework_2010\Smartcard_API\DemoSCFmwk\Properties\
?????文件????????1282??2006-12-03?12:54??Smartcard_framework_2010\Smartcard_API\DemoSCFmwk\Properties\AssemblyInfo.cs
?????目錄???????????0??2011-08-16?18:28??Smartcard_framework_2010\Smartcard_API\GemCard\
?????文件????????3762??2006-12-22?12:46??Smartcard_framework_2010\Smartcard_API\GemCard\APDUCommand.cs
?????文件????????4409??2006-12-03?21:30??Smartcard_framework_2010\Smartcard_API\GemCard\APDUParam.cs
?????文件????????2294??2006-12-03?21:31??Smartcard_framework_2010\Smartcard_API\GemCard\APDUResponse.cs
?????文件????????2426??2005-08-18?15:52??Smartcard_framework_2010\Smartcard_API\GemCard\AssemblyInfo.cs
?????文件????????6419??2007-03-03?17:30??Smartcard_framework_2010\Smartcard_API\GemCard\Cardbase.cs
?????文件????????5247??2007-03-02?22:02??Smartcard_framework_2010\Smartcard_API\GemCard\CardCOM.cs
?????文件???????19296??2007-03-03?09:42??Smartcard_framework_2010\Smartcard_API\GemCard\CardNative.cs
?????文件????????7552??2011-08-16?18:23??Smartcard_framework_2010\Smartcard_API\GemCard\GemCard.csproj
?????文件????????2526??2011-08-16?18:21??Smartcard_framework_2010\Smartcard_API\GemCard\GemCard.csproj.user
?????文件????????4985??2007-03-02?22:02??Smartcard_framework_2010\Smartcard_API\GemCard\ICard.cs
?????文件?????????991??2006-12-19?23:22??Smartcard_framework_2010\Smartcard_API\GemCard\SmartCardException.cs
?????目錄???????????0??2011-08-16?18:28??Smartcard_framework_2010\Smartcard_API\SmartCardPlayer\
?????文件????????1100??2006-12-04?21:23??Smartcard_framework_2010\Smartcard_API\SmartCardPlayer\APDULog.cs
?????文件???????24599??2007-01-01?23:45??Smartcard_framework_2010\Smartcard_API\SmartCardPlayer\APDUPlayer.cs
?????目錄???????????0??2011-08-16?18:16??Smartcard_framework_2010\Smartcard_API\SmartCardPlayer\Properties\
?????文件????????1415??2006-12-04?21:18??Smartcard_framework_2010\Smartcard_API\SmartCardPlayer\Properties\AssemblyInfo.cs
?????文件????????2488??2011-08-16?18:20??Smartcard_framework_2010\Smartcard_API\SmartCardPlayer\SmartCardPlayer.csproj
?????目錄???????????0??2011-08-16?18:16??Smartcard_framework_2010\Smartcard_Test\
............此處省略22個文件信息

評論

共有 條評論

相關資源