有懂数据结构的吗?求教au3创建CMSG_SIGNER_INFO结构(已解决)
本帖最后由 tubaba 于 2017-6-24 21:46 编辑最近在研究读取文件数字签名信息. 需要创建CMSG_SIGNER_INFO结构,对数据结构理解不够,请教如何用AU3创建这个结构
msdn上查阅
typedef struct _CMSG_SIGNER_INFO {
DWORD dwVersion;
CERT_NAME_BLOB Issuer;
CRYPT_INTEGER_BLOB SerialNumber;
CRYPT_ALGORITHM_IDENTIFIER HashAlgorithm;
CRYPT_ALGORITHM_IDENTIFIER HashEncryptionAlgorithm;
CRYPT_DATA_BLOB EncryptedHash;
CRYPT_ATTRIBUTES AuthAttrs;
CRYPT_ATTRIBUTES UnauthAttrs;
} CMSG_SIGNER_INFO, *PCMSG_SIGNER_INFO;
CERT_.....打头的也是一个结构. 已解决
$tagCMSG_SIGNER_INFO = _
"DWORD dwVersion;" & _
"DWORD Issuer_cbData;" & _
"ptr Issuer_pbData;" & _
"DWORD SerialNumber_cbData;" & _
"ptr SerialNumber_pbData;" & _
"ptr HashAlgorithm_pszObjId;" & _
"DWORD HashAlgorithm_Parameters_cbData;" & _
"ptr HashAlgorithm_Parameters_pbData;" & _
"ptr HashEncryptionAlgorithm_pszObjId;" & _
"DWORD HashEncryptionAlgorithm_Parameters_cbData;" & _
"ptr HashEncryptionAlgorithm_Parameters_pbData;" & _
"DWORD EncryptedHash_cbData;" & _
"ptr EncryptedHash_pbData;" & _
"DWORD AuthAttrs_cAttr;" & _
"ptr AuthAttrs_rgAttr;" & _
"DWORD UnauthAttrs_cAttr;" & _
"ptr UnauthAttrs_rgAttr;" & _
"DWORD dwUIContext;"
页:
[1]