Share via


NdisCloseFile (Compact 2013)

3/26/2014

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

Syntax

VOID NdisCloseFile(
  NDIS_HANDLE FileHandle
);

Parameters

  • FileHandle
    [in] Specifies the handle returned in a previous call to NdisOpenFile.

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

Header

ndis.h

Library

ndis.lib

See Also

Reference

NDIS File Interface
MiniportInitializeEx
NdisMapFile
NdisOpenFile
NdisUnmapFile