NtDllNtClose Method
Note: This API is now obsolete.
Closes the specified object handle.
(
NtClose(IntPtr) function is superseded by
CloseHandle(IntPtr) function. )
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", ExactSpelling = true)]
[ObsoleteAttribute("'NtClose' function is superseded by 'CloseHandle' function.")]
public static NTStatus NtClose(
IntPtr hObject
)
<DllImportAttribute("NtDll.dll", ExactSpelling := true>]
<ObsoleteAttribute("'NtClose' function is superseded by 'CloseHandle' function.")>
Public Shared Function NtClose (
hObject As IntPtr
) As NTStatus
Dim hObject As IntPtr
Dim returnValue As NTStatus
returnValue = NtDll.NtClose(hObject)
public:
[DllImportAttribute(L"NtDll.dll", ExactSpelling = true)]
[ObsoleteAttribute(L"'NtClose' function is superseded by 'CloseHandle' function.")]
static NTStatus NtClose(
[InAttribute] IntPtr hObject
)
[<DllImportAttribute("NtDll.dll", ExactSpelling = true)>]
[<ObsoleteAttribute("'NtClose' function is superseded by 'CloseHandle' function.")>]
static member NtClose :
hObject : IntPtr -> NTStatus
No code example is currently available or this language may not be supported.
- hObject IntPtr
-
The handle to the object being closed.
NTStatus
Returns
SUCCESS on success, or the appropriate
NTStatus error code on failure.