Compartir a través de


NdisWritePciSlotInformation (Windows CE 5.0)

Send Feedback

This function writes a specified number of bytes to the PCI configuration space for an NIC on the PCI bus.

ULONG NdisWritePciSlotInformation(NDIS_HANDLE NdisAdapterHandle,ULONG SlotNumber,ULONG Offset,PVOID Buffer,ULONGLength);

Parameters

  • NdisAdapterHandle
    [in] Specifies the MiniportAdapterHandle passed in to the MiniportInitialize function and to most other MiniportXXX functions.
  • SlotNumber
    [in] Reserved. NDIS ignores this parameter.
  • Offset
    [in] Specifies the byte offset within the PCI configuration space at which to begin transferring the caller-supplied configuration information.
  • Buffer
    [in] Pointer to a caller-allocated buffer containing the PCI configuration information to be written.
  • Length
    [in] Specifies the size, in bytes, of the buffer at Buffer and, therefore, how many bytes of PCI configuration information to write.

Return Values

Returns how many bytes of caller-supplied data it wrote.

Remarks

This function writes PCI configuration information for an NIC. Normally, drivers call NdisMQueryAdapterResources to find out what resources have been assigned to the adapter.

The caller is responsible for releasing the memory at Buffer when this function returns control.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Ndis.h.

See Also

NdisFreeMemory | NdisMMapIoSpace | NdisMQueryAdapterResources | NdisMRegisterInterrupt | NdisMRegisterIoPortRange | NdisMSetAttributes | NdisMSetAttributesEx | NdisReadPciSlotInformation

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.