I have a Windows service written in C++, which uses:
CryptAcquireContext( &hCryptProv, NULL, NULL, PROV_RSA_FULL,0);
I keep getting ERROR_INVALID_PARAMETER although the same line of code works perfectly if i use it in a user mode application.
Note: I've already tried with no luck:
CRYPT_MACHINE_KEYSET | CRYPT_SILENT