CryptDecrypt (advapi32)
Last changed: Carl Mailloux-209.226.94.110

.
Summary
The CryptDecrypt function decrypts data previously encrypted using the CryptEncrypt function.

C# Signature:

[DllImport("advapi32.dll", SetLastError = true)]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool CryptDecrypt(IntPtr hKey, IntPtr hHash, int Final, uint dwFlags, byte[] pbData, ref uint pdwDataLen);

VB Signature:

Declare Function CryptDecrypt Lib "advapi32.dll" (ByVal hkey As IntPtr, _
ByVal hHash As IntPtr, <MarshalAs(UnmanagedType.Bool)> ByVal final As Boolean, _
ByVal flags As Integer, ByVal data As Byte(), ByRef dataLen As Integer) _
As <MarshalAs(UnmanagedType.Bool)> Boolean

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation