CloseHandle

[DllImport("coredll.dll", SetLastError = true)]
public static extern bool CloseHandle(
   IntPtr hObject
);

Microsoft documentation: Link

Last updated