NdisWritePortUshort function

Note   NDIS 5. x has been deprecated and is superseded by NDIS 6. x. For new NDIS driver development, see Network Drivers Starting with Windows Vista. For information about porting NDIS 5. x drivers to NDIS 6. x, see Porting NDIS 5.x Drivers to NDIS 6.0.

NdisWritePortUshort is called by the miniport driver to write a USHORT to an I/O port.

Syntax

VOID NdisWritePortUshort(
  _In_ NDIS_HANDLE NdisAdapterHandle,
  _In_ ULONG       Port,
  _In_ USHORT      Data
);

Parameters

  • NdisAdapterHandle [in]
    Specifies the handle that the NDIS interface library associates with the network interface card.

  • Port [in]
    Specifies the I/O port.

  • Data [in]
    Specifies the USHORT value to write to Port.

Return value

None

Requirements

Target platform

Desktop

Version

Not supported for NDIS 6.0 drivers in Windows Vista. Supported for NDIS 5.1 drivers (see NdisWritePortUshort (NDIS 5.1)) in Windows XP.

Header

Ndis.h (include Ndis.h)

IRQL

Any level

See also

NdisRawWritePortUshort

NdisReadPortUshort

NdisWritePortBufferUshort

 

 

Send comments about this topic to Microsoft