Group: Cryptography Reference - Library: advapi32
Releases the handle referenced by the hKey parameter. After a key handle has been released, it becomes invalid and cannot be used again.
CryptoAPI: Collection of Providers class
A class that encrypts and decrypts files using Cryptography API Functions
Generating random cryptographic keys
BOOL WINAPI CryptDestroyKey(
HCRYPTKEY hKey
); DECLARE INTEGER CryptDestroyKey IN advapi32;
INTEGER hKey hKey [in] Handle of the key to be destroyed.
If the function succeeds, the return value is nonzero (TRUE).
Keys take up both operating system"s memory space and the CSP"s memory space. Some CSPs are implemented in hardware with limited memory resources. Applications must destroy all keys with the CryptDestroyKey function when they are finished with them.
Home