Example #1
0
 /// <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);
 }
Example #2
0
 public static extern NtStatus NtOpenSection(
     [Out] out IntPtr SectionHandle,
     [In] SectionAccess DesiredAccess,
     [In] ref OBJECT_ATTRIBUTES ObjectAttributes);
Example #3
0
 public static extern uint NtCreateSection(ref IntPtr pSectionHandle, SectionAccess desiredAccess, IntPtr zero,
                                           ref ulong pMaxSize, MemoryProtection pageAttributes, MemoryProtection sectionAttributes, IntPtr fileHandle);