"Jeff L" lats@yless4u.com.au wrote:
To close the handle returned by an NT API you have you use an NT API as well.
What is not apparent in the explanation above?
Have reread MSDN http://msdn2.microsoft.com/en-us/library/ms648410.aspx and it seems that NtClose has been superseded by CloseHandle. So I suppose that CloseHandle is the one to use.
The information in MSDN is misleading in this case, CloseHandle is a kernel32 API, not an NT (native) one.