[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.
16/03/2007 13:39:46 - -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.
09/03/2009 00:06:00 - -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.
16/03/2007 13:39:46 - -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.
09/03/2009 00:06:00 - -203.166.19.130
Frees the specified local memory object and invalidates its handle.
27/08/2008 22:05:46 - -151.145.238.91
Frees the specified local memory object and invalidates its handle.
27/08/2008 22:05:46 - -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.
Find memory leaks fast
Is your application using too much memory, but you are not sure why? Holding on to too many objects?
Get to the root of your problem fast, with ANTS Memory Profiler