Problem with MS Crypto API when IE7 in protected Mode

Hi, i have an BHO (browser helper object) which uses the MS crypto API. I try to generate a key with
CryptGenKey(mhCryptProv, AT_KEYEXCHANGE, CRYPT_EXPORTABLE, hPrivateKey);

This

works fine with the vista RC1 build 5600 and IE7 is NOT in protected

mode. But when i change to protected mode the mehod CryptGenKey returns

"Access denied"

Has anyone an idea what the problem is here and how to solve this?

Thanks a lot

M.

[508 byte] By [M-Force] at [2007-12-24]

Software Development for Windows Vista

Site Classified