Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetSecAttrs()

static unsafe global.Interop.Kernel32.SECURITY_ATTRIBUTES System.IO.MemoryMappedFiles.MemoryMappedFile.GetSecAttrs ( HandleInheritability inheritability)
inlinestaticprivate

Definition at line 534 of file MemoryMappedFile.cs.

535 {
536 global::Interop.Kernel32.SECURITY_ATTRIBUTES result = default(global::Interop.Kernel32.SECURITY_ATTRIBUTES);
537 if ((inheritability & HandleInheritability.Inheritable) != 0)
538 {
539 result = default(global::Interop.Kernel32.SECURITY_ATTRIBUTES);
540 result.nLength = (uint)sizeof(global::Interop.Kernel32.SECURITY_ATTRIBUTES);
541 result.bInheritHandle = global::Interop.BOOL.TRUE;
542 }
543 return result;
544 }

Referenced by System.IO.MemoryMappedFiles.MemoryMappedFile.CreateCore(), and System.IO.MemoryMappedFiles.MemoryMappedFile.CreateOrOpenCore().