Re: CryptAcquireContext why it FAILS!?



First, let me make sure I've got things straight: you're running this on
Windows XP, and you're getting a returned LastError code of 0x80090019 (The
keyset is not defined), right?

If you look in the wincrypt.h header file, MS_ENH_RSA_AES_PROV is defined as
"Microsoft Enhanced RSA and AES Cryptographic Provider". But on Windows XP,
the provider name is "Microsoft Enhanced RSA and AES Cryptographic Provider
(Prototype)".

That missing " (Prototype)" in the provider name is causing the error.

Doug Barlow
The Soft Pedal Shop
CSP Design & Development Consulting
http://www.softpedal.net


.