Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "CryptDestroyKey" in [All]

advapi32

.
Summary
The CryptDestroyKey function releases the handle referenced by the hKey parameter. After a key handle has been released, it becomes invalid and cannot be used again. If the handle refers to a session key, or to a public key that has been imported into the CSP through CryptImportKey, this function destroys the key and frees the memory that the key occupied. Many CSPs overwrite the memory where the key was held before freeing it. However, the underlying public/private key pair is not destroyed by this function. Only the handle is destroyed.
.

public static extern bool CryptDestroyKey(IntPtr phKey);

.

Declare Function CryptDestroyKey Lib "advapi32.dll" (ByVal hKey As IntPtr) _

.
Documentation
[CryptDestroyKey] on MSDN

 
Access PInvoke.net directly from VS: