Closing IoCreateFile handles

What function should be used to close handles from IoCreateFile(…)?
ZwClose() or IopCloseHandle()?


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

> What function should be used to close handles from IoCreateFile(…)?

ZwClose() or IopCloseHandle()?

ZwClose.
Remember that NtCreateFile is a simple wrapper around IoCreateFile.
IoCreateFile is just a common code for NtCreateFile and (IIRC)
NtCreateNamedPipeFile.

Max


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com