MS CryptoAPI doesn't work on Windows XP with CryptAcquireContext()

半城伤御伤魂 提交于 2019-12-05 20:19:14

In your CryptAcquireContext code, it appears you are missing the parameter to get a context without a specific container set. You need to pass the CRYPT_VERIFYCONTEXT option in CryptAcquireContext.

Windows 7 might be working around this.

http://msdn.microsoft.com/en-us/library/windows/desktop/aa379886(v=vs.85).aspx

For further diagnosis, the results of GetLastError() would be requisite.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!