Partager via


NdisMPciAssignResources (Windows CE 5.0)

Send Feedback

This function returns a list of bus-relative hardware resources, such as IRQ, I/O ports, and device memory ranges, claimed in the registry for a PCI NIC.

NDIS_STATUS NdisMPciAssignResources(NDIS_HANDLE MiniportHandle,ULONG SlotNumber,PNDIS_RESOURCE_LIST* AssignedResources);

Parameters

  • MiniportHandle
    [in] Specifies the MiniportAdapterHandle passed in to the MiniportInitialize function and to most other MiniportXXX functions.
  • SlotNumber
    [in] Specifies the slot number of the driver's NIC on the PCI bus.
  • AssignedResources
    [out] Pointer to a list of the hardware resources that the NIC can use.

Return Values

Returns NDIS_STATUS_SUCCESS.

Remarks

**Note   **This function is obsolete in NDIS 5.1 and should not be used by a miniport driver. The NdisMQueryAdapterResources function should be used in place of NdisMPciAssignResources.

This function claims a set of hardware resources in the registry for a miniport's PCI NIC to use, thus preventing conflicting claims on the same resources from other devices in the computer.

The buffer specified at AssignedResources is formatted as an NDIS_RESOURCE_LIST structure, which is equivalent to the CM_PARTIAL_RESOURCE_LIST structure on Microsoft® Windows NT®–based platforms.

The bus-relative configuration parameters returned in this buffer can be used in the MiniportInitialize function's subsequent calls to NdisXXX functions such as NdisMRegisterInterrupt, NdisMMapIoSpace, and/or NdisMRegisterIoPortRange.

Requirements

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

See Also

MiniportInitialize | NdisMMapIoSpace | NdisReadPciSlotInformation | NdisMRegisterInterrupt | NdisMRegisterIoPortRange

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.