Hardware Dev Center

NdisUnmapFile (NDIS 5.1) function

Note   NDIS 5. x has been deprecated and is superseded by NDIS 6. x. For new NDIS driver development, see Network Drivers Starting with Windows Vista. For information about porting NDIS 5. x drivers to NDIS 6. x, see Porting NDIS 5.x Drivers to NDIS 6.0.

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

Syntax


VOID NdisUnmapFile(
  _In_ 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

Target platform

Universal

Version

See NdisUnmapFile.

Header

Ndis.h (include Ndis.h)

IRQL

PASSIVE_LEVEL

See also

MiniportInitialize
NdisCloseFile
NdisMapFile
NdisOpenFile

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft