[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]
private struct DATA_BLOB {
public int cbData;
public IntPtr pbData;
}
VB .NET Signature:
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)> Structure DATA_BLOB
Public cbData As Integer
Public pbData As IntPtr
End Structure
Notes:
None.
Tips & Tricks:
Remember that DATA_BLOB.pbData for the output parameters of the CryptProtectData and CryptUnprotectData functions will point to a block of unmanaged memory that needs to be cleaned up using a call to LocalFree from kernel32. You will of course have to use pinvoke to call LocalFree.
The CryptProtectData function performs encryption on the data in a DATA_BLOB structure. Typically, only a user with the same logon credential as the encrypter can decrypt the data. In addition, the encryption and decryption usually must be done on the same computer.
3/16/2007 1:39:46 PM - -204.16.176.130
The CryptUnprotectData function decrypts and does an integrity check of the data in a DATA_BLOB structure. Usually, only a user with the same logon credentials as the encrypter can decrypt the data. In addition, the encryption and decryption must be done on the same computer.
3/9/2009 12:06:00 AM - -203.166.19.130
The CryptProtectData function performs encryption on the data in a DATA_BLOB structure. Typically, only a user with the same logon credential as the encrypter can decrypt the data. In addition, the encryption and decryption usually must be done on the same computer.
3/16/2007 1:39:46 PM - -204.16.176.130
The CryptUnprotectData function decrypts and does an integrity check of the data in a DATA_BLOB structure. Usually, only a user with the same logon credentials as the encrypter can decrypt the data. In addition, the encryption and decryption must be done on the same computer.
3/9/2009 12:06:00 AM - -203.166.19.130
Frees the specified local memory object and invalidates its handle.
8/27/2008 10:05:46 PM - -151.145.238.91
Frees the specified local memory object and invalidates its handle.
8/27/2008 10:05:46 PM - -151.145.238.91
Please edit this page!
Do you have...
helpful tips?
corrections to the existing content?
alternate definitions?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.
Ignoring bugs won’t make them go away
Let users send you error reports in one click with SmartAssembly.