I have two cards with different types of tokens. When calling GetTokenInfo()
I get CKR_TOKEN_NOT_RECOGNIZED
on some tokens. My question is, how do I retrieve this error code in a clean manner?
HResult just indicates General Error.
I could check for the exception in the Message string.
The RV
parameter is not part of the Exception
class, not sure which derivative class to use to get this.