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(
  NDIS_HANDLE FileHandle
);

Parameters

FileHandle

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

   
Minimum supported client 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.
Target Platform Universal
Header ndis.h (include Ndis.h)
Library Ndis.lib
IRQL PASSIVE_LEVEL
DDI compliance rules Irql_Miscellaneous_Function

See Also

MiniportInitializeEx

NdisMapFile

NdisOpenFile

NdisUnmapFile