Share via


NdisUnmapFile (Windows Embedded CE 6.0)

1/6/2010

This function releases a virtual address mapping of a file previously set up with NdisMapFile.

Syntax

VOID NdisUnmapFile(
  NDIS_HANDLE FileHandle
);

Parameters

  • FileHandle
    [in] Specifies the handle returned by NdisOpenFile.

Return Value

None.

Remarks

To reduce resource usage, a NIC 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 NdisCloseFile.

Requirements

Header ndis.h
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

NDIS Library Functions
NdisCloseFile
NdisMapFile
NdisOpenFile