/// <summary> /// Opens an existing section. /// </summary> /// <param name="name">The name of an existing section.</param> /// <param name="access">The desired access to the section.</param> public Section(string name, SectionAccess access) { this.Handle = new SectionHandle(name, access); }
public static extern NtStatus NtOpenSection( [Out] out IntPtr SectionHandle, [In] SectionAccess DesiredAccess, [In] ref OBJECT_ATTRIBUTES ObjectAttributes);
public static extern uint NtCreateSection(ref IntPtr pSectionHandle, SectionAccess desiredAccess, IntPtr zero, ref ulong pMaxSize, MemoryProtection pageAttributes, MemoryProtection sectionAttributes, IntPtr fileHandle);