Specifies the scope of memory protection to be applied by the ProtectedMemory.Protect(Byte[], MemoryProtectionScope) method.
This enumeration is used with the ProtectedMemory.Protect(Byte[], MemoryProtectionScope) and ProtectedMemory.Unprotect(Byte[], MemoryProtectionScope) methods to protect data in memory.
Member Name | Description |
---|---|
CrossProcess |
All code in any process can unprotect memory that was protected using the ProtectedMemory.Protect(Byte[], MemoryProtectionScope) method. |
SameLogon |
Only code running in the same user context as the code that called the ProtectedMemory.Protect(Byte[], MemoryProtectionScope) method can unprotect memory. |
SameProcess |
Only code running in the same process as the code that called the ProtectedMemory.Protect(Byte[], MemoryProtectionScope) method can unprotect memory. |