Hello,

I'm fixing a driver for a custom PCMCIA (CF) card so it works with the
latest versions of IPAQs. The problem is that when the CF card is inserted,
the Device Manager is now incrementing the socket (Sckt) value each time.
This was never the case before and the socket value was always 0x0000. So
now my driver has to try to determine what this value is so it can open and
return a proper handle to the device.

What would be the best way to do this?

I started writing a 'for' loop that searched through the active subkeys for
the "Name" and then the "Sckt" value, but I got hung up on the fact that I
don't know how to find out how many active keys there are and therefore how
many times to loop.

Does anyone know an easy way to find out what socket value was assigned to
an active driver?

Thanks,

Thomas Magma

Re: Determining Driver\Active subkey value by Luca

Luca
Thu Mar 20 00:27:47 PDT 2008

without considering the specific problem: theres an API which enumerates
subkeys of the specified open registry key:
RegEnumKey/RegEnumKeyEx
--

Luca Calligaris
www.eurotech.it

"Thomas Magma" <somewhere@overtherainbow.com> ha scritto nel messaggio
news:%23yGxVEfiIHA.1132@TK2MSFTNGP06.phx.gbl...
> Hello,
>
> I'm fixing a driver for a custom PCMCIA (CF) card so it works with the
> latest versions of IPAQs. The problem is that when the CF card is
> inserted, the Device Manager is now incrementing the socket (Sckt) value
> each time. This was never the case before and the socket value was always
> 0x0000. So now my driver has to try to determine what this value is so it
> can open and return a proper handle to the device.
>
> What would be the best way to do this?
>
> I started writing a 'for' loop that searched through the active subkeys
> for the "Name" and then the "Sckt" value, but I got hung up on the fact
> that I don't know how to find out how many active keys there are and
> therefore how many times to loop.
>
> Does anyone know an easy way to find out what socket value was assigned to
> an active driver?
>
> Thanks,
>
> Thomas Magma
>
>