NdisCloseFile function

The NdisCloseFile function releases a handle returned by the NdisOpenFile function and frees the memory allocated to hold the file contents when it was opened.

Syntax


VOID NdisCloseFile(
  _In_  NDIS_HANDLE FileHandle
);

Parameters

FileHandle [in]

The handle that was returned in a preceding call to the NdisOpenFile function.

Return value

None

Remarks

For miniport drivers, calls to this function are valid only during initialization. If the MiniportInitializeEx function calls the NdisOpenFile function, it must call NdisCloseFile before it returns control.

Requirements

Version

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

Header

Ndis.h (include Ndis.h)

IRQL

PASSIVE_LEVEL

DDI compliance rules

Irql_Miscellaneous_Function

See also

MiniportInitializeEx
NdisMapFile
NdisOpenFile
NdisUnmapFile

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft