NcDetectCloseHandle releases a handle output by NcDetectOpenHandle. The function prototype is as follows:
LONG NcDetectCloseHandle(
PVOID ppvHandle
);
Parameters
ppvHandle
Points to the handle returned by a successful call to NcDetectOpenHandle.