NtDllNtOpenSection(IntPtr, UInt32, IntPtr) Method
Opens a handle for an existing section object.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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,
uint desiredAccess,
in IntPtr refObjectAttributes
)
<DllImportAttribute("NtDll.dll", CallingConvention := CallingConvention.StdCall>]
Public Shared Function NtOpenSection (
<OutAttribute> ByRef refSection As IntPtr,
desiredAccess As UInteger,
ByRef refObjectAttributes As IntPtr
) As NTStatus
Dim refSection As IntPtr
Dim desiredAccess As UInteger
Dim refObjectAttributes As IntPtr
Dim returnValue As NTStatus
returnValue = NtDll.NtOpenSection(refSection,
desiredAccess, refObjectAttributes)
public:
[DllImportAttribute(L"NtDll.dll", CallingConvention = CallingConvention::StdCall)]
static NTStatus NtOpenSection(
[OutAttribute] IntPtr% refSection,
[InAttribute] unsigned int desiredAccess,
[InAttribute] IntPtr% refObjectAttributes
)
[<DllImportAttribute("NtDll.dll", CallingConvention = CallingConvention.StdCall)>]
static member NtOpenSection :
refSection : IntPtr byref *
desiredAccess : uint32 *
refObjectAttributes : IntPtr byref -> NTStatus
No code example is currently available or this language may not be supported.
- refSection IntPtr
-
Handle to a section object.
- desiredAccess UInt32
-
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.
NTStatus
Returns
SUCCESS on success, or the appropriate
NTStatus error code on failure.