Sign.dll的接口函数定义
GetSN 功能:取序列号
参数: CertSN 证书序列号内容,CertSNLEN 证书长度(现在为16位)
'
OpenPort 功能:打开端口,获得电子钥匙句柄。
ClosePort 功能:关闭端口,关闭电子钥匙句柄。这是VB中的调用.
Public Declare Function GetSN Lib "Sign" (ByVal CertSN As String, ByRef CertSNLEN As Long) As Long在C#中怎么调用?????????????????
GetSN 功能:取序列号
参数: CertSN 证书序列号内容,CertSNLEN 证书长度(现在为16位)
'
OpenPort 功能:打开端口,获得电子钥匙句柄。
ClosePort 功能:关闭端口,关闭电子钥匙句柄。这是VB中的调用.
Public Declare Function GetSN Lib "Sign" (ByVal CertSN As String, ByRef CertSNLEN As Long) As Long在C#中怎么调用?????????????????
public static extern long GetSN( StringBuilder CertSN, ref long CertSNLEN);在调用的时候出现:
尝试读取或写入受保护的内存这是什么意思.
我是个新手!!