I have an application that was working on Windows 10 before, but is not now. My code imports a private key into a newly created container when it fails with NTE_BAD_VER (Ba