Hi all,
I have a com port driver. this is running absolutely fine when i load
it during the boot time. for loading it during the boot time, the
required registry entries and bib files are modified.
But the same generated DLL, if I load it during runtime, its failing.
I am copying all the registry entries in to builtin. and calling
ActivateDevice function. This is working fine. It register the dll,
call init functioonality and all. But in my active registry the name
entry is not registered. I dont know what might be the reason. I have
given proper prefixes and indexes. below are the entries that i have
registered in builtin.
[HKLM\Drivers\Builin\my_serial]
Prefix
Dll
Order
Index
DeviceArrayIndex
TSP
DeviceType
FriendlyName
DevConfig

And these are the entries registered in active
[HKLM\Drivers\Active\40]
Hnd
Key
ClientInfo

My requirement is such that, even the name has to be registered in the
active registry. Apart from it all the other things are working. My
driver is responding to createfile, readfile, writefile etc and i use
the same prefix and index for createfile function. It works verymuch
fine. My only problem is if I autodetect the COM ports present in my
device, App does not display my device in its list. This is because of
the name entry not being present in the active registry. So can any
one help me to resolve this problem.
Regards
Deepu

Re: Driver loading problem by Paul

Paul
Mon Mar 12 11:08:42 CDT 2007

Capture the serial debug messages in the non-working case and see what's
going wrong. Maybe the base address is wrong, or the interrupt, etc. You
really should not be posting this sort of Platform Builder question to so
many groups. platbuilder is enough.

Paul T.

"deepu" <ceblogger@gmail.com> wrote in message
news:1173500374.304854.223620@j27g2000cwj.googlegroups.com...
> Hi all,
> I have a com port driver. this is running absolutely fine when i load
> it during the boot time. for loading it during the boot time, the
> required registry entries and bib files are modified.
> But the same generated DLL, if I load it during runtime, its failing.
> I am copying all the registry entries in to builtin. and calling
> ActivateDevice function. This is working fine. It register the dll,
> call init functioonality and all. But in my active registry the name
> entry is not registered. I dont know what might be the reason. I have
> given proper prefixes and indexes. below are the entries that i have
> registered in builtin.
> [HKLM\Drivers\Builin\my_serial]
> Prefix
> Dll
> Order
> Index
> DeviceArrayIndex
> TSP
> DeviceType
> FriendlyName
> DevConfig
>
> And these are the entries registered in active
> [HKLM\Drivers\Active\40]
> Hnd
> Key
> ClientInfo
>
> My requirement is such that, even the name has to be registered in the
> active registry. Apart from it all the other things are working. My
> driver is responding to createfile, readfile, writefile etc and i use
> the same prefix and index for createfile function. It works verymuch
> fine. My only problem is if I autodetect the COM ports present in my
> device, App does not display my device in its list. This is because of
> the name entry not being present in the active registry. So can any
> one help me to resolve this problem.
> Regards
> Deepu
>



Re: Driver loading problem by Bruce

Bruce
Mon Mar 12 22:50:59 CDT 2007

It could be that you have a COM driver that is loaded but does not have the
index set, so when you don't load this one at boot its index is taken by the
other driver.

Try not putting in the index value to see if it is loaded.

--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net

Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member

"deepu" <ceblogger@gmail.com> wrote in message
news:1173500374.304854.223620@j27g2000cwj.googlegroups.com...
> Hi all,
> I have a com port driver. this is running absolutely fine when i load
> it during the boot time. for loading it during the boot time, the
> required registry entries and bib files are modified.
> But the same generated DLL, if I load it during runtime, its failing.
> I am copying all the registry entries in to builtin. and calling
> ActivateDevice function. This is working fine. It register the dll,
> call init functioonality and all. But in my active registry the name
> entry is not registered. I dont know what might be the reason. I have
> given proper prefixes and indexes. below are the entries that i have
> registered in builtin.
> [HKLM\Drivers\Builin\my_serial]
> Prefix
> Dll
> Order
> Index
> DeviceArrayIndex
> TSP
> DeviceType
> FriendlyName
> DevConfig
>
> And these are the entries registered in active
> [HKLM\Drivers\Active\40]
> Hnd
> Key
> ClientInfo
>
> My requirement is such that, even the name has to be registered in the
> active registry. Apart from it all the other things are working. My
> driver is responding to createfile, readfile, writefile etc and i use
> the same prefix and index for createfile function. It works verymuch
> fine. My only problem is if I autodetect the COM ports present in my
> device, App does not display my device in its list. This is because of
> the name entry not being present in the active registry. So can any
> one help me to resolve this problem.
> Regards
> Deepu
>