NdisCloseFile function (ndis.h)

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

[in] 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

Requirement Value
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(ndis)

See also

MiniportInitializeEx

NdisMapFile

NdisOpenFile

NdisUnmapFile