📄 unit5.pas.~22~
字号:
unit Unit5;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, CAPICOM_TLB;
type
TForm5 = class(TForm)
Button1: TButton;
Button2: TButton;
ListCom: TListBox;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form5: TForm5;
implementation
{$R *.dfm}
procedure TForm5.Button1Click(Sender: TObject);
var
MyStore:TStore;
Cert:Tcertificate;
CertI:ICertificates;
Count_val,Snum_Val:string;
//cert:TCertificateProperties;
begin
try
MyStore:=TStore.Create(nil);
MyStore.Open(CAPICOM_CURRENT_USER_STORE,'MY',CAPICOM_STORE_OPEN_READ_ONLY);
Cert:=Tcertificate.Create(nil);
//CertI:=MyStore.Certificates;
//Cert:=Mystore.Certificates;
//Cert:=MyStore.Certificates;
//Cert:=MyStore.Certificates;
//cert:=MyStore.
//Snum_Val:=cert.SerialNumber;
Count_val:=inttostr(MYStore.Certificates.Count);
ListCom.Items.Add(Snum_Val+Count_val);
//Cert:=MyStore.Certificates.Item[0];
finally
cert.Free;
MyStore.Free;
end;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -