NtDllNtOpenSection(IntPtr, SectionAccessRights, IntPtr) Method

Opens a handle for an existing section object.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("NtDll.dll", CallingConvention = CallingConvention.StdCall)]
public static NTStatus NtOpenSection(
	out IntPtr refSection,
	SectionAccessRights desiredAccess,
	in IntPtr refObjectAttributes
)

Parameters

refSection  IntPtr
Handle to a section object.
desiredAccess  SectionAccessRights
The requested access to the object.
refObjectAttributes  IntPtr
Pointer to an ObjectAttributes structure that specifies the object name and other attributes.

Use InitializeObjectAttributes to initialize this structure.

If the caller is not running in a system thread context, it must set the KernelHandle attribute when it calls InitializeObjectAttributes.

Return Value

NTStatus
Returns SUCCESS on success, or the appropriate NTStatus error code on failure.

Remarks

See Also