This function stops a directory scanning operation initiated by a call to hw_BeginDirScan().
You have to pass the handle that was returned to you by hw_BeginDirScan() to
this function. After you have called hw_EndDirScan() it is no longer allowed to call hw_NextDirEntry().