NdisUnmapFile function

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

Syntax


VOID NdisUnmapFile(
  _In_  NDIS_HANDLE FileHandle
);

Parameters

FileHandle [in]

The handle that was returned by the NdisOpenFile function.

Return value

None

Remarks

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.

Requirements

Version

Supported for NDIS 6.0 and NDIS 5.1 drivers (see NdisUnmapFile (NDIS 5.1)) in Windows Vista. Supported for NDIS 5.1 drivers (see NdisUnmapFile (NDIS 5.1)) in Windows XP.

Header

Ndis.h (include Ndis.h)

IRQL

PASSIVE_LEVEL

DDI compliance rules

Irql_Miscellaneous_Function

See also

MiniportInitializeEx
NdisCloseFile
NdisMapFile
NdisOpenFile

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft