NtClose (ntdll)
Last changed: -186.136.223.176

.
Summary
Closes a previously opened handle.

C# Signature:

[DllImport("ntdll.dll", ExactSpelling=true, SetLastError=false)]
static extern int NtClose(IntPtr hObject);

VB.NET Signature:

  <DllImport("ntdll.dll", ExactSpelling:=True, SetLastError:=False)> _
  Public Shared Function NtClose(ByVal hObject As IntPtr) As Integer
  End Function

Boo Signature:

[DllImport("ntdll.dll", SetLastError : true)]
def NtClose(hObject as IntPtr) as UInt32:
     pass

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

The same functionality as CloseHandle().

Sample Code:

Please add some!

Documentation
NtClose on MSDN