DECLAREINTEGER CryptDestroyKey IN advapi32;
[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.