Search
Module:
Directory

Desktop Functions:

Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy
CryptProtectFlags (Enums)
.
Summary

C# Definition:

[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,

    // 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

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Please add some!

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • additional languages you want to include?

Select "Edit This Page" in the upper right corner and edit it!


Profile your .NET code

Boost the performance of your application with ANTS Profiler

This download also contains the FREE PInvoke.net Visual Studio Add-in

Download Now
 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions