Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than Enums, prefix the name with the module name and a period.
CryptProtectFlags (Enums)
.
C# Definition:
C# Signature:
[Flags]
private enum CryptProtectFlags {
// for remote-access situations where ui is not an option
// if UI was specified on protect or unprotect operation, the call
// will fail and GetLastError() will indicate ERROR_PASSWORD_RESTRICTION
CRYPTPROTECT_UI_FORBIDDEN = 0x1,
// per machine protected data -- any user on machine where CryptProtectData
// took place may CryptUnprotectData
CRYPTPROTECT_LOCAL_MACHINE = 0x4,
// force credential synchronize during CryptProtectData()
// Synchronize is only operation that occurs during this operation
CRYPTPROTECT_CRED_SYNC = 0x8,
//
// per machine protected data -- any user on machine where CryptProtectData
// took place may CryptUnprotectData
CRYPTPROTECT_LOCAL_MACHINE = 0x4,
// Generate an Audit on protect and unprotect operations
CRYPTPROTECT_AUDIT = 0x10,
//
// force credential synchronize during CryptProtectData()
// Synchronize is only operation that occurs during this operation
CRYPTPROTECT_CRED_SYNC = 0x8,
// Protect data with a non-recoverable key
CRYPTPROTECT_NO_RECOVERY = 0x20,
//
// Generate an Audit on protect and unprotect operations
//
CRYPTPROTECT_AUDIT = 0x10,
//
// Protect data with a non-recoverable key
//
CRYPTPROTECT_NO_RECOVERY = 0x20,
//
// Verify the protection of a protected blob
//
CRYPTPROTECT_VERIFY_PROTECTION = 0x40
}
VB Definition:
<Flags()> Enum CryptProtectFlags
' for remote-access situations where ui is not an option
' if UI was specified on protect or unprotect operation, the call
' will fail and GetLastError() will indicate ERROR_PASSWORD_RESTRICTION
CRYPTPROTECT_UI_FORBIDDEN = &H1
' per machine protected data -- any user on machine where CryptProtectData
' took place may CryptUnprotectData
CRYPTPROTECT_LOCAL_MACHINE = &H4
' force credential synchronize during CryptProtectData()
' Synchronize is only operation that occurs during this operation
CRYPTPROTECT_CRED_SYNC = &H8
' Generate an Audit on protect and unprotect operations
CRYPTPROTECT_AUDIT = &H10
' Protect data with a non-recoverable key
CRYPTPROTECT_NO_RECOVERY = &H20
' Verify the protection of a protected blob
CRYPTPROTECT_VERIFY_PROTECTION = &H40
End Enum
VB .NET Signature:
Declare Function CryptProtectFlags Lib "crypt32.dll" (TODO) As TODO
User-Defined Types:
None.
Notes:
None.
Tips & Tricks:
Please add some!
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 7:39:46 AM - ed@sharplogic.com-71.121.130.50
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.
9/6/2012 12:36:21 AM - -203.166.19.130
Please edit this page!
Do you have...
helpful tips?
corrections to the existing content?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it!