Cryptoapi Windows 7 지원
-
20-09-2019 - |
해결책
Windows 7 및 Windows Server 2008 Cryptoapi가 이전 버전의 cryptoapi와 호환되는 경우 예를 의미합니까?
모든 새로운 CNG 기능은 물론 아닙니다.
다른 팁
예. Windows 7은 API를 모두 제공합니다 : CNG 및 Capi.
그럼에도 불구하고, 단호한 맥락으로 시도하십시오.
#include <Wincrypt.h>
#include <stdio.h>
int main()
{
HCRYPTPROV hCryptProv = NULL;
if(CryptAcquireContext(&hCryptProv,NULL,NULL,PROV_RSA_FULL,CRYPT_VERIFYCONTEXT))
{
printf("CryptoAPI working\n\n");
exit(0);
}else
{
printf("Error 0x%.8x",GetLastError());
exit(1);
}
}
제휴하지 않습니다 StackOverflow