The CardDestroyKey function releases a temporary key on the card. The card should delete all of the key material that is associated with that key handle.
- pCardData [in]
Context information for the call. For more information, see CardAcquireContext.
- hKey [in]
Zero on success; otherwise, nonzero.
This function deletes the key material that is associated with the key handle.
The returned status code should indicate success if the key handle was valid and the key material was successfully deleted.
If CardDestroyKey is called with an invalid key handle, the function should return SCARD_E_INVALID_HANDLE.
If CardDestroyKey cannot delete the key material, the function should return SCARD_E_INVALID_HANDLE.