NtDllNtClose Method

Note: This API is now obsolete.
Closes the specified object handle.

( NtClose(IntPtr) function is superseded by CloseHandle(IntPtr) function. )

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", ExactSpelling = true)]
[ObsoleteAttribute("'NtClose' function is superseded by 'CloseHandle' function.")]
public static NTStatus NtClose(
	IntPtr hObject
)

Parameters

hObject  IntPtr
The handle to the object being closed.

Return Value

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

Remarks

See Also