Hello, @Wise42
You can refer COM Error Codes(Seurity and Setup)which provides a list of error codes used by COM-based APIs.
NTE_BAD_KEYSET 0x80090016 Keyset does not exist
You can also check the NCryptOpenKey documentation to determine the error message
I did not find the error message about 0x80280185, please help to check the error code.
----------
Thank you!
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.