// ndis.h
VOID NdisUnmapFile(
[in] NDIS_HANDLE FileHandle
);
View the official Windows Driver Kit DDI referenceNo description available.
The NdisUnmapFile function releases a virtual address mapping of a file previously set up with the NdisMapFile function.
FileHandle [in]The handle that was returned by the NdisOpenFile function.
To reduce resource usage, a miniport driver should always call NdisUnmapFile when it no longer needs exclusive access to the contents of a file that it opened. Such a driver can map and unmap the file as necessary, using alternating calls to NdisMapFile and NdisUnmapFile until it releases the file handle with the NdisCloseFile function.