How to Get Pci slot number in NDIS miniport driver under W2K?

Hi, people
In my driver, I need read the “Command Register”, which is in PCI
Configuration space,and modify its content.
but, I must know the PCI slot number if I
use “NdisWritePciSlotInformation” or “NdisReadPciSlotInformation”.
Is there any effective solution to this problem ?

Thanks,
Yee

The “SlotNumber” parameter is completely *ignored* by NDIS in all Plug
& Play OS versions, ie. the “SlotNumber” is only used on NT4 and
below. NDIS implicitly knows the correct slot number from the
‘NdisAdapterHandle’ or ‘MiniportHandle’ because the slot number has
been already determined during device installation.

Stephan

On Sun, 17 Mar 2002 07:31:12 -0500, “Yee” wrote:

>
>Hi, people
> In my driver, I need read the “Command Register”, which is in PCI
>Configuration space,and modify its content.
> but, I must know the PCI slot number if I
>use “NdisWritePciSlotInformation” or “NdisReadPciSlotInformation”.
> Is there any effective solution to this problem ?
>
>Thanks,
>Yee