NcDetectCloseHandle releases a handle output by NcDetectOpenHandle. The function prototype is as follows:
LONG NcDetectCloseHandle( PVOID ppvHandle );