James Hawkins truiken@gmail.com writes:
- PCSTR KEYSTR = "Software\Microsoft\Cryptography\Defaults\Provider\";
- PSTR keyname;
- PCWSTR KEYSTR = (PCWSTR)"Software\Microsoft\Cryptography\Defaults\Provider\";
- PWSTR keyname;
This is wrong, you need to declare Unicode strings, not typecast ASCII ones.