[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]
private struct CRYPTPROTECT_PROMPTSTRUCT {
public int cbSize;
public CryptProtectPromptFlags dwPromptFlags;
public IntPtr hwndApp;
public String szPrompt;
}
VB .NET Signature:
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)> Structure CRYPTPROTECT_PROMPTSTRUCT
Public cbSize As Integer
Public dwPromptFlags As CryptProtectPromptFlags
Public hwndApp As IntPtr
Public szPrompt As String
End Structure
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.