28,655 questions
NCryptOpenStorageProvider + KeyIso

kazuser
0
Reputation points
Restarting the service after opening the provider breaks the connection and forces you to restart the entire application.
Step by step:
- Open the provider
NCryptOpenStorageProvider(myProvider, MS_KEY_STORAGE_PROVIDER, 0)
— will be "00000000" (ERROR_SUCCESS) - Restart the
CNG Key Isolation
service - Reopen the provider
NCryptOpenStorageProvider(myProvider, MS_KEY_STORAGE_PROVIDER, 0)
— will be "80070006" (ERROR_INVALID_HANDLE)
How to properly reopen the provider after restarting the service without restarting the application?
Windows for business Windows Client for IT Pros User experience Other
Sign in to answer