How to get PCMCIA slot number (WDM / win2k)?

Hi all,

although the question has been asked already in this group, it still not
clear to me how to get the slot number of the PCMCIA slot in which the
‘current’ card is located. I want to use 2 identical PCMCIA cards, so I
must be able to distinguish between each of them. Using the DDK function
IoGetDeviceProperty(…) always returns slot number 0 (also seen that in
replies to this list server). Using: Win2000, DriverWorks, SoftICE, DDK. I
an new to writing WDM drivers, so I would like to know if this problem can
be solved, and how.
I see that upon card insertion, consecutive unit numbers (0 and 1) are
generated for each card.

Thanks for any replies and pointers,

Roel Smeets

xxxxx@tue.nl


Technical Laboratory Automation Group
Dpt. of Physics
Eindhoven University of Technology
5600 MB Eindhoven
The Netherlands


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi Roel

I have the same problem and I think this is an error of the OS. The ‘Unplug
or Eject Hardware’ Application also shows for both card always ‘socket 0’
and sam month before I found an KB entry for this, but I cannot find it
anymore. So I ment it is solve with SP2 but it isn’t
Sorry, but if MS will not help us, may a Ghost will correct this fault.

Othmar Christen
Project Engineer, Research & Development PC Applications
mailto:xxxxx@crypto.ch

Crypto AG
P. O. Box 460
CH-6301 Zug / Switzerland
Phone: +41 41/749 77 22
direct: +41 41/749 73 82
Fax: +41 41/741 22 72
http://www.crypto.ch

-----Original Message-----
From: xxxxx@tue.nl [mailto:xxxxx@tue.nl]
Sent: Montag, 24. September 2001 02:00
To: NT Developers Interest List
Subject: [ntdev] How to get PCMCIA slot number (WDM / win2k)?
Importance: High

Hi all,

although the question has been asked already in this group, it still not
clear to me how to get the slot number of the PCMCIA slot in which the
‘current’ card is located. I want to use 2 identical PCMCIA cards, so I
must be able to distinguish between each of them. Using the DDK function
IoGetDeviceProperty(…) always returns slot number 0 (also seen that in
replies to this list server). Using: Win2000, DriverWorks, SoftICE, DDK. I
an new to writing WDM drivers, so I would like to know if this problem can
be solved, and how.
I see that upon card insertion, consecutive unit numbers (0 and 1) are
generated for each card.

Thanks for any replies and pointers,

Roel Smeets

xxxxx@tue.nl


Technical Laboratory Automation Group
Dpt. of Physics
Eindhoven University of Technology
5600 MB Eindhoven
The Netherlands


You are currently subscribed to ntdev as: xxxxx@crypto.ch
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

>Using the DDK function

IoGetDeviceProperty(…) always returns slot number 0 (also seen that in
replies to this list server).

You might see if the bus numbers are different. An ISA bus PCMCIA card
controller correctly reports the slots. A cardbus controller views each
slot as a unique bus, so the bus relative slot is always 0. Perhaps the UI
bus number reported is fixed in Windows XP?

  • Jan

You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com