Originally posted by: John Bundgaard
To make the sample work on Windows NT, change the dwFlags value in CryptAcquireContext() from 0 to CRYPT_VERIFYCONTEXT:
[...]
if (CryptAcquireContext(&hProv, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) {
[...]