Winapi 无法添加wintrust.dll
现在我正在做一个项目,使用wintrust.dll自动检查文件是否是数字签名的。下面是寒冷的天气Winapi 无法添加wintrust.dll,winapi,pinvoke,digital-signature,Winapi,Pinvoke,Digital Signature,现在我正在做一个项目,使用wintrust.dll自动检查文件是否是数字签名的。下面是寒冷的天气 [DllImport("wintrust.dll", ExactSpelling = true, SetLastError = false, CharSet = CharSet.Unicode)] static extern WinVerifyTrustResult WinVerifyTrust( [In] IntPtr hwnd, [In] [MarshalAs(Unmanaged
[DllImport("wintrust.dll", ExactSpelling = true, SetLastError = false, CharSet = CharSet.Unicode)]
static extern WinVerifyTrustResult WinVerifyTrust(
[In] IntPtr hwnd,
[In] [MarshalAs(UnmanagedType.LPStruct)] Guid pgActionID,
[In] WinTrustData pWVTData
);
但是有一条关于类WinVerityTrustResult和WinTrustData的错误消息,无法找到它们。我试图添加引用wintrust.dll并已注册,但它提示我无法添加wintrust.dll。您似乎已从中复制了函数声明。您还需要包括在该页后面声明的用户定义类型