Ncryptopenstorageprovider New Direct

// 2. Use the provider (example: create a key container) NCRYPT_KEY_HANDLE hKey = NULL; status = NCryptCreatePersistedKey(hProvider, &hKey, NCRYPT_RSA_ALGORITHM, L"MyRSAKeyContainer", 0, 0); if (status != ERROR_SUCCESS)