Hi, All.

I want to load in a WinCE driver, its index is 12. How to do it?

My registry file is like this:

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Sample]
"Prefix"="VCA"
"Dll"="sample.dll"
"DeviceArrayIndex"=dword:12
"Index"=dword:12
"Order"=dword:30

But i failed at the VCA_Init function.

any trick to do this?

thanks,

Mike.

Re: how to load in a build in driver whose index is greater 10 in Windows CE by Steve

Steve
Wed Dec 27 11:59:19 CST 2006

Why is VCA_Init failing?

If it is failing due to a device naming issue, here is the answer. The
prefix-index-colon name is limited to 10 instances (0-9). If you are using
CE 5.0 or greater, you can actually use an index greater than 9. However
instead of opening "VCA12:", you will need to open the driver instance from
the $device mount point: "\$device\VCA12"

Take a look at the "Device File Names" topic in PB Help or MSDN for more
information about this.

--
Steve Schrock
Windows Devices Core BSPs

This posting is provided "AS IS" with no warranties, and confers no rights.

<suqian99@hotmail.com> wrote in message
news:1167238862.302385.148420@73g2000cwn.googlegroups.com...
> Hi, All.
>
> I want to load in a WinCE driver, its index is 12. How to do it?
>
> My registry file is like this:
>
> [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Sample]
> "Prefix"="VCA"
> "Dll"="sample.dll"
> "DeviceArrayIndex"=dword:12
> "Index"=dword:12
> "Order"=dword:30
>
> But i failed at the VCA_Init function.
>
> any trick to do this?
>
> thanks,
>
> Mike.
>



Re: how to load in a build in driver whose index is greater 10 in Windows CE by suqian99

suqian99
Wed Dec 27 12:12:37 CST 2006

Hi, Steve, thank you for your reply.

I know I can open it with the $device mount point: "\$device\VCA12".
But I likt this VCA12 as a build in driver, which will be load when the
sytem boots up. I already have VCA0 to VCA9. All of them have a
registry key like this:
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Sample]
"Prefix"="VCA"
"Dll"="sample.dll"
"DeviceArrayIndex"=dword:12
"Index"=dword:0
"Order"=dword:30

the question is how to create a registry key for the VCA12, so it can
load in at the boot time.

thanks,

Mike.
Steve Schrock [MS] wrote:
> Why is VCA_Init failing?
>
> If it is failing due to a device naming issue, here is the answer. The
> prefix-index-colon name is limited to 10 instances (0-9). If you are using
> CE 5.0 or greater, you can actually use an index greater than 9. However
> instead of opening "VCA12:", you will need to open the driver instance from
> the $device mount point: "\$device\VCA12"
>
> Take a look at the "Device File Names" topic in PB Help or MSDN for more
> information about this.
>
> --
> Steve Schrock
> Windows Devices Core BSPs
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> <suqian99@hotmail.com> wrote in message
> news:1167238862.302385.148420@73g2000cwn.googlegroups.com...
> > Hi, All.
> >
> > I want to load in a WinCE driver, its index is 12. How to do it?
> >
> > My registry file is like this:
> >
> > [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Sample]
> > "Prefix"="VCA"
> > "Dll"="sample.dll"
> > "DeviceArrayIndex"=dword:12
> > "Index"=dword:12
> > "Order"=dword:30
> >
> > But i failed at the VCA_Init function.
> >
> > any trick to do this?
> >
> > thanks,
> >
> > Mike.
> >


Re: how to load in a build in driver whose index is greater 10 in Windows CE by Bruce

Bruce
Wed Dec 27 12:24:49 CST 2006

That isn't index 12, it is index 0x12 or 18. Is that what you mean and does
your code support DeviceArrayIndex 0x12?

--
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

<suqian99@hotmail.com> wrote in message
news:1167243157.385773.133820@48g2000cwx.googlegroups.com...
> Hi, Steve, thank you for your reply.
>
> I know I can open it with the $device mount point: "\$device\VCA12".
> But I likt this VCA12 as a build in driver, which will be load when the
> sytem boots up. I already have VCA0 to VCA9. All of them have a
> registry key like this:
> [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Sample]
> "Prefix"="VCA"
> "Dll"="sample.dll"
> "DeviceArrayIndex"=dword:12
> "Index"=dword:0
> "Order"=dword:30
>
> the question is how to create a registry key for the VCA12, so it can
> load in at the boot time.
>
> thanks,
>
> Mike.
> Steve Schrock [MS] wrote:
>> Why is VCA_Init failing?
>>
>> If it is failing due to a device naming issue, here is the answer. The
>> prefix-index-colon name is limited to 10 instances (0-9). If you are
>> using
>> CE 5.0 or greater, you can actually use an index greater than 9. However
>> instead of opening "VCA12:", you will need to open the driver instance
>> from
>> the $device mount point: "\$device\VCA12"
>>
>> Take a look at the "Device File Names" topic in PB Help or MSDN for more
>> information about this.
>>
>> --
>> Steve Schrock
>> Windows Devices Core BSPs
>>
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>> <suqian99@hotmail.com> wrote in message
>> news:1167238862.302385.148420@73g2000cwn.googlegroups.com...
>> > Hi, All.
>> >
>> > I want to load in a WinCE driver, its index is 12. How to do it?
>> >
>> > My registry file is like this:
>> >
>> > [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Sample]
>> > "Prefix"="VCA"
>> > "Dll"="sample.dll"
>> > "DeviceArrayIndex"=dword:12
>> > "Index"=dword:12
>> > "Order"=dword:30
>> >
>> > But i failed at the VCA_Init function.
>> >
>> > any trick to do this?
>> >
>> > thanks,
>> >
>> > Mike.
>> >
>



Re: how to load in a build in driver whose index is greater 10 in Windows CE by suqian99

suqian99
Wed Dec 27 12:32:06 CST 2006

Yes,

I want to suport maxium 60 ports.
Bruce Eitman [eMVP] wrote:
> That isn't index 12, it is index 0x12 or 18. Is that what you mean and does
> your code support DeviceArrayIndex 0x12?
>
> --
> 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
>
> <suqian99@hotmail.com> wrote in message
> news:1167243157.385773.133820@48g2000cwx.googlegroups.com...
> > Hi, Steve, thank you for your reply.
> >
> > I know I can open it with the $device mount point: "\$device\VCA12".
> > But I likt this VCA12 as a build in driver, which will be load when the
> > sytem boots up. I already have VCA0 to VCA9. All of them have a
> > registry key like this:
> > [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Sample]
> > "Prefix"="VCA"
> > "Dll"="sample.dll"
> > "DeviceArrayIndex"=dword:12
> > "Index"=dword:0
> > "Order"=dword:30
> >
> > the question is how to create a registry key for the VCA12, so it can
> > load in at the boot time.
> >
> > thanks,
> >
> > Mike.
> > Steve Schrock [MS] wrote:
> >> Why is VCA_Init failing?
> >>
> >> If it is failing due to a device naming issue, here is the answer. The
> >> prefix-index-colon name is limited to 10 instances (0-9). If you are
> >> using
> >> CE 5.0 or greater, you can actually use an index greater than 9. However
> >> instead of opening "VCA12:", you will need to open the driver instance
> >> from
> >> the $device mount point: "\$device\VCA12"
> >>
> >> Take a look at the "Device File Names" topic in PB Help or MSDN for more
> >> information about this.
> >>
> >> --
> >> Steve Schrock
> >> Windows Devices Core BSPs
> >>
> >> This posting is provided "AS IS" with no warranties, and confers no
> >> rights.
> >>
> >> <suqian99@hotmail.com> wrote in message
> >> news:1167238862.302385.148420@73g2000cwn.googlegroups.com...
> >> > Hi, All.
> >> >
> >> > I want to load in a WinCE driver, its index is 12. How to do it?
> >> >
> >> > My registry file is like this:
> >> >
> >> > [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Sample]
> >> > "Prefix"="VCA"
> >> > "Dll"="sample.dll"
> >> > "DeviceArrayIndex"=dword:12
> >> > "Index"=dword:12
> >> > "Order"=dword:30
> >> >
> >> > But i failed at the VCA_Init function.
> >> >
> >> > any trick to do this?
> >> >
> >> > thanks,
> >> >
> >> > Mike.
> >> >
> >


Re: how to load in a build in driver whose index is greater 10 in Windows CE by Paul

Paul
Wed Dec 27 12:48:59 CST 2006

I don't understand what you're saying the problem is. You *do* already have
an entry for the driver to load it at boot time. Maybe there's confusion
about the fact that numbers in the registry files are all hexadecimal, as
Bruce said.

Further, as Steve said, you *cannot* have a COM23: that you can open as
"COM23:". You must use the $device mount point to reference such a driver.

Paul T.

<suqian99@hotmail.com> wrote in message
news:1167244326.253599.158140@73g2000cwn.googlegroups.com...
> Yes,
>
> I want to suport maxium 60 ports.
> Bruce Eitman [eMVP] wrote:
>> That isn't index 12, it is index 0x12 or 18. Is that what you mean and
>> does
>> your code support DeviceArrayIndex 0x12?
>>
>> --
>> 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
>>
>> <suqian99@hotmail.com> wrote in message
>> news:1167243157.385773.133820@48g2000cwx.googlegroups.com...
>> > Hi, Steve, thank you for your reply.
>> >
>> > I know I can open it with the $device mount point: "\$device\VCA12".
>> > But I likt this VCA12 as a build in driver, which will be load when the
>> > sytem boots up. I already have VCA0 to VCA9. All of them have a
>> > registry key like this:
>> > [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Sample]
>> > "Prefix"="VCA"
>> > "Dll"="sample.dll"
>> > "DeviceArrayIndex"=dword:12
>> > "Index"=dword:0
>> > "Order"=dword:30
>> >
>> > the question is how to create a registry key for the VCA12, so it can
>> > load in at the boot time.
>> >
>> > thanks,
>> >
>> > Mike.
>> > Steve Schrock [MS] wrote:
>> >> Why is VCA_Init failing?
>> >>
>> >> If it is failing due to a device naming issue, here is the answer. The
>> >> prefix-index-colon name is limited to 10 instances (0-9). If you are
>> >> using
>> >> CE 5.0 or greater, you can actually use an index greater than 9.
>> >> However
>> >> instead of opening "VCA12:", you will need to open the driver instance
>> >> from
>> >> the $device mount point: "\$device\VCA12"
>> >>
>> >> Take a look at the "Device File Names" topic in PB Help or MSDN for
>> >> more
>> >> information about this.
>> >>
>> >> --
>> >> Steve Schrock
>> >> Windows Devices Core BSPs
>> >>
>> >> This posting is provided "AS IS" with no warranties, and confers no
>> >> rights.
>> >>
>> >> <suqian99@hotmail.com> wrote in message
>> >> news:1167238862.302385.148420@73g2000cwn.googlegroups.com...
>> >> > Hi, All.
>> >> >
>> >> > I want to load in a WinCE driver, its index is 12. How to do it?
>> >> >
>> >> > My registry file is like this:
>> >> >
>> >> > [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Sample]
>> >> > "Prefix"="VCA"
>> >> > "Dll"="sample.dll"
>> >> > "DeviceArrayIndex"=dword:12
>> >> > "Index"=dword:12
>> >> > "Order"=dword:30
>> >> >
>> >> > But i failed at the VCA_Init function.
>> >> >
>> >> > any trick to do this?
>> >> >
>> >> > thanks,
>> >> >
>> >> > Mike.
>> >> >
>> >
>



Re: how to load in a build in driver whose index is greater 10 in Windows CE by suqian99

suqian99
Wed Dec 27 13:00:42 CST 2006

Hi, Paul,

So you mean that I already have the VCA18 driver loaded if I have the
registry keys:
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Sample]
"Prefix"="VCA"
"Dll"="Sample.dll"
"DeviceArrayIndex"=dword:12
"Index"=dword:12
"Order"=dword:30

If not, how to create the regristy key for the VCA18 so it can be
loaded in as build in?

thanks.

Paul G. Tobey [eMVP] wrote:
> I don't understand what you're saying the problem is. You *do* already have
> an entry for the driver to load it at boot time. Maybe there's confusion
> about the fact that numbers in the registry files are all hexadecimal, as
> Bruce said.
>
> Further, as Steve said, you *cannot* have a COM23: that you can open as
> "COM23:". You must use the $device mount point to reference such a driver.
>
> Paul T.
>
> <suqian99@hotmail.com> wrote in message
> news:1167244326.253599.158140@73g2000cwn.googlegroups.com...
> > Yes,
> >
> > I want to suport maxium 60 ports.
> > Bruce Eitman [eMVP] wrote:
> >> That isn't index 12, it is index 0x12 or 18. Is that what you mean and
> >> does
> >> your code support DeviceArrayIndex 0x12?
> >>
> >> --
> >> 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
> >>
> >> <suqian99@hotmail.com> wrote in message
> >> news:1167243157.385773.133820@48g2000cwx.googlegroups.com...
> >> > Hi, Steve, thank you for your reply.
> >> >
> >> > I know I can open it with the $device mount point: "\$device\VCA12".
> >> > But I likt this VCA12 as a build in driver, which will be load when the
> >> > sytem boots up. I already have VCA0 to VCA9. All of them have a
> >> > registry key like this:
> >> > [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Sample]
> >> > "Prefix"="VCA"
> >> > "Dll"="sample.dll"
> >> > "DeviceArrayIndex"=dword:12
> >> > "Index"=dword:0
> >> > "Order"=dword:30
> >> >
> >> > the question is how to create a registry key for the VCA12, so it can
> >> > load in at the boot time.
> >> >
> >> > thanks,
> >> >
> >> > Mike.
> >> > Steve Schrock [MS] wrote:
> >> >> Why is VCA_Init failing?
> >> >>
> >> >> If it is failing due to a device naming issue, here is the answer. The
> >> >> prefix-index-colon name is limited to 10 instances (0-9). If you are
> >> >> using
> >> >> CE 5.0 or greater, you can actually use an index greater than 9.
> >> >> However
> >> >> instead of opening "VCA12:", you will need to open the driver instance
> >> >> from
> >> >> the $device mount point: "\$device\VCA12"
> >> >>
> >> >> Take a look at the "Device File Names" topic in PB Help or MSDN for
> >> >> more
> >> >> information about this.
> >> >>
> >> >> --
> >> >> Steve Schrock
> >> >> Windows Devices Core BSPs
> >> >>
> >> >> This posting is provided "AS IS" with no warranties, and confers no
> >> >> rights.
> >> >>
> >> >> <suqian99@hotmail.com> wrote in message
> >> >> news:1167238862.302385.148420@73g2000cwn.googlegroups.com...
> >> >> > Hi, All.
> >> >> >
> >> >> > I want to load in a WinCE driver, its index is 12. How to do it?
> >> >> >
> >> >> > My registry file is like this:
> >> >> >
> >> >> > [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Sample]
> >> >> > "Prefix"="VCA"
> >> >> > "Dll"="sample.dll"
> >> >> > "DeviceArrayIndex"=dword:12
> >> >> > "Index"=dword:12
> >> >> > "Order"=dword:30
> >> >> >
> >> >> > But i failed at the VCA_Init function.
> >> >> >
> >> >> > any trick to do this?
> >> >> >
> >> >> > thanks,
> >> >> >
> >> >> > Mike.
> >> >> >
> >> >
> >


Re: how to load in a build in driver whose index is greater 10 in Windows CE by suqian99

suqian99
Wed Dec 27 13:07:07 CST 2006

In my VCA_Init function, I have this:
lStatus = RegQueryValueEx( hKey, TEXT("Name"), NULL, &dwValType,
(LPBYTE) szName, &dwSize) ;
it failed at here, RegQueryValueEx return failed.

Paul G. Tobey [eMVP] wrote:
> I don't understand what you're saying the problem is. You *do* already have
> an entry for the driver to load it at boot time. Maybe there's confusion
> about the fact that numbers in the registry files are all hexadecimal, as
> Bruce said.
>
> Further, as Steve said, you *cannot* have a COM23: that you can open as
> "COM23:". You must use the $device mount point to reference such a driver.
>
> Paul T.
>
> <suqian99@hotmail.com> wrote in message
> news:1167244326.253599.158140@73g2000cwn.googlegroups.com...
> > Yes,
> >
> > I want to suport maxium 60 ports.
> > Bruce Eitman [eMVP] wrote:
> >> That isn't index 12, it is index 0x12 or 18. Is that what you mean and
> >> does
> >> your code support DeviceArrayIndex 0x12?
> >>
> >> --
> >> 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
> >>
> >> <suqian99@hotmail.com> wrote in message
> >> news:1167243157.385773.133820@48g2000cwx.googlegroups.com...
> >> > Hi, Steve, thank you for your reply.
> >> >
> >> > I know I can open it with the $device mount point: "\$device\VCA12".
> >> > But I likt this VCA12 as a build in driver, which will be load when the
> >> > sytem boots up. I already have VCA0 to VCA9. All of them have a
> >> > registry key like this:
> >> > [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Sample]
> >> > "Prefix"="VCA"
> >> > "Dll"="sample.dll"
> >> > "DeviceArrayIndex"=dword:12
> >> > "Index"=dword:0
> >> > "Order"=dword:30
> >> >
> >> > the question is how to create a registry key for the VCA12, so it can
> >> > load in at the boot time.
> >> >
> >> > thanks,
> >> >
> >> > Mike.
> >> > Steve Schrock [MS] wrote:
> >> >> Why is VCA_Init failing?
> >> >>
> >> >> If it is failing due to a device naming issue, here is the answer. The
> >> >> prefix-index-colon name is limited to 10 instances (0-9). If you are
> >> >> using
> >> >> CE 5.0 or greater, you can actually use an index greater than 9.
> >> >> However
> >> >> instead of opening "VCA12:", you will need to open the driver instance
> >> >> from
> >> >> the $device mount point: "\$device\VCA12"
> >> >>
> >> >> Take a look at the "Device File Names" topic in PB Help or MSDN for
> >> >> more
> >> >> information about this.
> >> >>
> >> >> --
> >> >> Steve Schrock
> >> >> Windows Devices Core BSPs
> >> >>
> >> >> This posting is provided "AS IS" with no warranties, and confers no
> >> >> rights.
> >> >>
> >> >> <suqian99@hotmail.com> wrote in message
> >> >> news:1167238862.302385.148420@73g2000cwn.googlegroups.com...
> >> >> > Hi, All.
> >> >> >
> >> >> > I want to load in a WinCE driver, its index is 12. How to do it?
> >> >> >
> >> >> > My registry file is like this:
> >> >> >
> >> >> > [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Sample]
> >> >> > "Prefix"="VCA"
> >> >> > "Dll"="sample.dll"
> >> >> > "DeviceArrayIndex"=dword:12
> >> >> > "Index"=dword:12
> >> >> > "Order"=dword:30
> >> >> >
> >> >> > But i failed at the VCA_Init function.
> >> >> >
> >> >> > any trick to do this?
> >> >> >
> >> >> > thanks,
> >> >> >
> >> >> > Mike.
> >> >> >
> >> >
> >


Re: how to load in a build in driver whose index is greater 10 in Windows CE by Paul

Paul
Wed Dec 27 13:11:07 CST 2006

Yes, you already have VCA18 (because "12" in the registry is 0x12, or 18
decimal).

Paul T.

<suqian99@hotmail.com> wrote in message
news:1167246042.307833.295380@i12g2000cwa.googlegroups.com...
> Hi, Paul,
>
> So you mean that I already have the VCA18 driver loaded if I have the
> registry keys:
> [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Sample]
> "Prefix"="VCA"
> "Dll"="Sample.dll"
> "DeviceArrayIndex"=dword:12
> "Index"=dword:12
> "Order"=dword:30
>
> If not, how to create the regristy key for the VCA18 so it can be
> loaded in as build in?
>
> thanks.
>
> Paul G. Tobey [eMVP] wrote:
>> I don't understand what you're saying the problem is. You *do* already
>> have
>> an entry for the driver to load it at boot time. Maybe there's confusion
>> about the fact that numbers in the registry files are all hexadecimal, as
>> Bruce said.
>>
>> Further, as Steve said, you *cannot* have a COM23: that you can open as
>> "COM23:". You must use the $device mount point to reference such a
>> driver.
>>
>> Paul T.
>>
>> <suqian99@hotmail.com> wrote in message
>> news:1167244326.253599.158140@73g2000cwn.googlegroups.com...
>> > Yes,
>> >
>> > I want to suport maxium 60 ports.
>> > Bruce Eitman [eMVP] wrote:
>> >> That isn't index 12, it is index 0x12 or 18. Is that what you mean
>> >> and
>> >> does
>> >> your code support DeviceArrayIndex 0x12?
>> >>
>> >> --
>> >> 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
>> >>
>> >> <suqian99@hotmail.com> wrote in message
>> >> news:1167243157.385773.133820@48g2000cwx.googlegroups.com...
>> >> > Hi, Steve, thank you for your reply.
>> >> >
>> >> > I know I can open it with the $device mount point: "\$device\VCA12".
>> >> > But I likt this VCA12 as a build in driver, which will be load when
>> >> > the
>> >> > sytem boots up. I already have VCA0 to VCA9. All of them have a
>> >> > registry key like this:
>> >> > [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Sample]
>> >> > "Prefix"="VCA"
>> >> > "Dll"="sample.dll"
>> >> > "DeviceArrayIndex"=dword:12
>> >> > "Index"=dword:0
>> >> > "Order"=dword:30
>> >> >
>> >> > the question is how to create a registry key for the VCA12, so it
>> >> > can
>> >> > load in at the boot time.
>> >> >
>> >> > thanks,
>> >> >
>> >> > Mike.
>> >> > Steve Schrock [MS] wrote:
>> >> >> Why is VCA_Init failing?
>> >> >>
>> >> >> If it is failing due to a device naming issue, here is the answer.
>> >> >> The
>> >> >> prefix-index-colon name is limited to 10 instances (0-9). If you
>> >> >> are
>> >> >> using
>> >> >> CE 5.0 or greater, you can actually use an index greater than 9.
>> >> >> However
>> >> >> instead of opening "VCA12:", you will need to open the driver
>> >> >> instance
>> >> >> from
>> >> >> the $device mount point: "\$device\VCA12"
>> >> >>
>> >> >> Take a look at the "Device File Names" topic in PB Help or MSDN for
>> >> >> more
>> >> >> information about this.
>> >> >>
>> >> >> --
>> >> >> Steve Schrock
>> >> >> Windows Devices Core BSPs
>> >> >>
>> >> >> This posting is provided "AS IS" with no warranties, and confers no
>> >> >> rights.
>> >> >>
>> >> >> <suqian99@hotmail.com> wrote in message
>> >> >> news:1167238862.302385.148420@73g2000cwn.googlegroups.com...
>> >> >> > Hi, All.
>> >> >> >
>> >> >> > I want to load in a WinCE driver, its index is 12. How to do it?
>> >> >> >
>> >> >> > My registry file is like this:
>> >> >> >
>> >> >> > [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Sample]
>> >> >> > "Prefix"="VCA"
>> >> >> > "Dll"="sample.dll"
>> >> >> > "DeviceArrayIndex"=dword:12
>> >> >> > "Index"=dword:12
>> >> >> > "Order"=dword:30
>> >> >> >
>> >> >> > But i failed at the VCA_Init function.
>> >> >> >
>> >> >> > any trick to do this?
>> >> >> >
>> >> >> > thanks,
>> >> >> >
>> >> >> > Mike.
>> >> >> >
>> >> >
>> >
>



Re: how to load in a build in driver whose index is greater 10 in Windows CE by Paul

Paul
Wed Dec 27 13:14:31 CST 2006

And hKey is hat? We can't read minds... Maybe you don't have a name entry
in the registry (certainly you did not show us one). Maybe dwSize is 0 or
uninitialized, so the call failed.

Paul T.

<suqian99@hotmail.com> wrote in message
news:1167246426.680103.284480@73g2000cwn.googlegroups.com...
> In my VCA_Init function, I have this:
> lStatus = RegQueryValueEx( hKey, TEXT("Name"), NULL, &dwValType,
> (LPBYTE) szName, &dwSize) ;
> it failed at here, RegQueryValueEx return failed.
>
> Paul G. Tobey [eMVP] wrote:
>> I don't understand what you're saying the problem is. You *do* already
>> have
>> an entry for the driver to load it at boot time. Maybe there's confusion
>> about the fact that numbers in the registry files are all hexadecimal, as
>> Bruce said.
>>
>> Further, as Steve said, you *cannot* have a COM23: that you can open as
>> "COM23:". You must use the $device mount point to reference such a
>> driver.
>>
>> Paul T.
>>
>> <suqian99@hotmail.com> wrote in message
>> news:1167244326.253599.158140@73g2000cwn.googlegroups.com...
>> > Yes,
>> >
>> > I want to suport maxium 60 ports.
>> > Bruce Eitman [eMVP] wrote:
>> >> That isn't index 12, it is index 0x12 or 18. Is that what you mean
>> >> and
>> >> does
>> >> your code support DeviceArrayIndex 0x12?
>> >>
>> >> --
>> >> 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
>> >>
>> >> <suqian99@hotmail.com> wrote in message
>> >> news:1167243157.385773.133820@48g2000cwx.googlegroups.com...
>> >> > Hi, Steve, thank you for your reply.
>> >> >
>> >> > I know I can open it with the $device mount point: "\$device\VCA12".
>> >> > But I likt this VCA12 as a build in driver, which will be load when
>> >> > the
>> >> > sytem boots up. I already have VCA0 to VCA9. All of them have a
>> >> > registry key like this:
>> >> > [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Sample]
>> >> > "Prefix"="VCA"
>> >> > "Dll"="sample.dll"
>> >> > "DeviceArrayIndex"=dword:12
>> >> > "Index"=dword:0
>> >> > "Order"=dword:30
>> >> >
>> >> > the question is how to create a registry key for the VCA12, so it
>> >> > can
>> >> > load in at the boot time.
>> >> >
>> >> > thanks,
>> >> >
>> >> > Mike.
>> >> > Steve Schrock [MS] wrote:
>> >> >> Why is VCA_Init failing?
>> >> >>
>> >> >> If it is failing due to a device naming issue, here is the answer.
>> >> >> The
>> >> >> prefix-index-colon name is limited to 10 instances (0-9). If you
>> >> >> are
>> >> >> using
>> >> >> CE 5.0 or greater, you can actually use an index greater than 9.
>> >> >> However
>> >> >> instead of opening "VCA12:", you will need to open the driver
>> >> >> instance
>> >> >> from
>> >> >> the $device mount point: "\$device\VCA12"
>> >> >>
>> >> >> Take a look at the "Device File Names" topic in PB Help or MSDN for
>> >> >> more
>> >> >> information about this.
>> >> >>
>> >> >> --
>> >> >> Steve Schrock
>> >> >> Windows Devices Core BSPs
>> >> >>
>> >> >> This posting is provided "AS IS" with no warranties, and confers no
>> >> >> rights.
>> >> >>
>> >> >> <suqian99@hotmail.com> wrote in message
>> >> >> news:1167238862.302385.148420@73g2000cwn.googlegroups.com...
>> >> >> > Hi, All.
>> >> >> >
>> >> >> > I want to load in a WinCE driver, its index is 12. How to do it?
>> >> >> >
>> >> >> > My registry file is like this:
>> >> >> >
>> >> >> > [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Sample]
>> >> >> > "Prefix"="VCA"
>> >> >> > "Dll"="sample.dll"
>> >> >> > "DeviceArrayIndex"=dword:12
>> >> >> > "Index"=dword:12
>> >> >> > "Order"=dword:30
>> >> >> >
>> >> >> > But i failed at the VCA_Init function.
>> >> >> >
>> >> >> > any trick to do this?
>> >> >> >
>> >> >> > thanks,
>> >> >> >
>> >> >> > Mike.
>> >> >> >
>> >> >
>> >
>



Re: how to load in a build in driver whose index is greater 10 in Windows CE by suqian99

suqian99
Wed Dec 27 13:18:06 CST 2006

Paul,

In my VCA_Init function, I have this:
lStatus = RegQueryValueEx( hKey, TEXT("Name"), NULL, &dwValType,
(LPBYTE) szName, &dwSize) ;
it failed at here, RegQueryValueEx return failed.

So, if the index is greater than 9, I can't call RegQueryValueEx( hKey,
TEXT("Name"), NULL, &dwValType, (LPBYTE) szName, &dwSize) ;

Where is the "Name" subkey?

thanks,

Mike
Paul G. Tobey [eMVP] wrote:
> Yes, you already have VCA18 (because "12" in the registry is 0x12, or 18
> decimal).
>
> Paul T.
>
> <suqian99@hotmail.com> wrote in message
> news:1167246042.307833.295380@i12g2000cwa.googlegroups.com...
> > Hi, Paul,
> >
> > So you mean that I already have the VCA18 driver loaded if I have the
> > registry keys:
> > [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Sample]
> > "Prefix"="VCA"
> > "Dll"="Sample.dll"
> > "DeviceArrayIndex"=dword:12
> > "Index"=dword:12
> > "Order"=dword:30
> >
> > If not, how to create the regristy key for the VCA18 so it can be
> > loaded in as build in?
> >
> > thanks.
> >
> > Paul G. Tobey [eMVP] wrote:
> >> I don't understand what you're saying the problem is. You *do* already
> >> have
> >> an entry for the driver to load it at boot time. Maybe there's confusion
> >> about the fact that numbers in the registry files are all hexadecimal, as
> >> Bruce said.
> >>
> >> Further, as Steve said, you *cannot* have a COM23: that you can open as
> >> "COM23:". You must use the $device mount point to reference such a
> >> driver.
> >>
> >> Paul T.
> >>
> >> <suqian99@hotmail.com> wrote in message
> >> news:1167244326.253599.158140@73g2000cwn.googlegroups.com...
> >> > Yes,
> >> >
> >> > I want to suport maxium 60 ports.
> >> > Bruce Eitman [eMVP] wrote:
> >> >> That isn't index 12, it is index 0x12 or 18. Is that what you mean
> >> >> and
> >> >> does
> >> >> your code support DeviceArrayIndex 0x12?
> >> >>
> >> >> --
> >> >> 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
> >> >>
> >> >> <suqian99@hotmail.com> wrote in message
> >> >> news:1167243157.385773.133820@48g2000cwx.googlegroups.com...
> >> >> > Hi, Steve, thank you for your reply.
> >> >> >
> >> >> > I know I can open it with the $device mount point: "\$device\VCA12".
> >> >> > But I likt this VCA12 as a build in driver, which will be load when
> >> >> > the
> >> >> > sytem boots up. I already have VCA0 to VCA9. All of them have a
> >> >> > registry key like this:
> >> >> > [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Sample]
> >> >> > "Prefix"="VCA"
> >> >> > "Dll"="sample.dll"
> >> >> > "DeviceArrayIndex"=dword:12
> >> >> > "Index"=dword:0
> >> >> > "Order"=dword:30
> >> >> >
> >> >> > the question is how to create a registry key for the VCA12, so it
> >> >> > can
> >> >> > load in at the boot time.
> >> >> >
> >> >> > thanks,
> >> >> >
> >> >> > Mike.
> >> >> > Steve Schrock [MS] wrote:
> >> >> >> Why is VCA_Init failing?
> >> >> >>
> >> >> >> If it is failing due to a device naming issue, here is the answer.
> >> >> >> The
> >> >> >> prefix-index-colon name is limited to 10 instances (0-9). If you
> >> >> >> are
> >> >> >> using
> >> >> >> CE 5.0 or greater, you can actually use an index greater than 9.
> >> >> >> However
> >> >> >> instead of opening "VCA12:", you will need to open the driver
> >> >> >> instance
> >> >> >> from
> >> >> >> the $device mount point: "\$device\VCA12"
> >> >> >>
> >> >> >> Take a look at the "Device File Names" topic in PB Help or MSDN for
> >> >> >> more
> >> >> >> information about this.
> >> >> >>
> >> >> >> --
> >> >> >> Steve Schrock
> >> >> >> Windows Devices Core BSPs
> >> >> >>
> >> >> >> This posting is provided "AS IS" with no warranties, and confers no
> >> >> >> rights.
> >> >> >>
> >> >> >> <suqian99@hotmail.com> wrote in message
> >> >> >> news:1167238862.302385.148420@73g2000cwn.googlegroups.com...
> >> >> >> > Hi, All.
> >> >> >> >
> >> >> >> > I want to load in a WinCE driver, its index is 12. How to do it?
> >> >> >> >
> >> >> >> > My registry file is like this:
> >> >> >> >
> >> >> >> > [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Sample]
> >> >> >> > "Prefix"="VCA"
> >> >> >> > "Dll"="sample.dll"
> >> >> >> > "DeviceArrayIndex"=dword:12
> >> >> >> > "Index"=dword:12
> >> >> >> > "Order"=dword:30
> >> >> >> >
> >> >> >> > But i failed at the VCA_Init function.
> >> >> >> >
> >> >> >> > any trick to do this?
> >> >> >> >
> >> >> >> > thanks,
> >> >> >> >
> >> >> >> > Mike.
> >> >> >> >
> >> >> >
> >> >
> >


Re: how to load in a build in driver whose index is greater 10 in Windows CE by suqian99

suqian99
Wed Dec 27 13:20:43 CST 2006

For VCA1 to VCA9, this function reurn fine. why it failed when the
instance is greater than 9?

Paul G. Tobey [eMVP] wrote:
> And hKey is hat? We can't read minds... Maybe you don't have a name entry
> in the registry (certainly you did not show us one). Maybe dwSize is 0 or
> uninitialized, so the call failed.
>
> Paul T.
>
> <suqian99@hotmail.com> wrote in message
> news:1167246426.680103.284480@73g2000cwn.googlegroups.com...
> > In my VCA_Init function, I have this:
> > lStatus = RegQueryValueEx( hKey, TEXT("Name"), NULL, &dwValType,
> > (LPBYTE) szName, &dwSize) ;
> > it failed at here, RegQueryValueEx return failed.
> >
> > Paul G. Tobey [eMVP] wrote:
> >> I don't understand what you're saying the problem is. You *do* already
> >> have
> >> an entry for the driver to load it at boot time. Maybe there's confusion
> >> about the fact that numbers in the registry files are all hexadecimal, as
> >> Bruce said.
> >>
> >> Further, as Steve said, you *cannot* have a COM23: that you can open as
> >> "COM23:". You must use the $device mount point to reference such a
> >> driver.
> >>
> >> Paul T.
> >>
> >> <suqian99@hotmail.com> wrote in message
> >> news:1167244326.253599.158140@73g2000cwn.googlegroups.com...
> >> > Yes,
> >> >
> >> > I want to suport maxium 60 ports.
> >> > Bruce Eitman [eMVP] wrote:
> >> >> That isn't index 12, it is index 0x12 or 18. Is that what you mean
> >> >> and
> >> >> does
> >> >> your code support DeviceArrayIndex 0x12?
> >> >>
> >> >> --
> >> >> 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
> >> >>
> >> >> <suqian99@hotmail.com> wrote in message
> >> >> news:1167243157.385773.133820@48g2000cwx.googlegroups.com...
> >> >> > Hi, Steve, thank you for your reply.
> >> >> >
> >> >> > I know I can open it with the $device mount point: "\$device\VCA12".
> >> >> > But I likt this VCA12 as a build in driver, which will be load when
> >> >> > the
> >> >> > sytem boots up. I already have VCA0 to VCA9. All of them have a
> >> >> > registry key like this:
> >> >> > [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Sample]
> >> >> > "Prefix"="VCA"
> >> >> > "Dll"="sample.dll"
> >> >> > "DeviceArrayIndex"=dword:12
> >> >> > "Index"=dword:0
> >> >> > "Order"=dword:30
> >> >> >
> >> >> > the question is how to create a registry key for the VCA12, so it
> >> >> > can
> >> >> > load in at the boot time.
> >> >> >
> >> >> > thanks,
> >> >> >
> >> >> > Mike.
> >> >> > Steve Schrock [MS] wrote:
> >> >> >> Why is VCA_Init failing?
> >> >> >>
> >> >> >> If it is failing due to a device naming issue, here is the answer.
> >> >> >> The
> >> >> >> prefix-index-colon name is limited to 10 instances (0-9). If you
> >> >> >> are
> >> >> >> using
> >> >> >> CE 5.0 or greater, you can actually use an index greater than 9.
> >> >> >> However
> >> >> >> instead of opening "VCA12:", you will need to open the driver
> >> >> >> instance
> >> >> >> from
> >> >> >> the $device mount point: "\$device\VCA12"
> >> >> >>
> >> >> >> Take a look at the "Device File Names" topic in PB Help or MSDN for
> >> >> >> more
> >> >> >> information about this.
> >> >> >>
> >> >> >> --
> >> >> >> Steve Schrock
> >> >> >> Windows Devices Core BSPs
> >> >> >>
> >> >> >> This posting is provided "AS IS" with no warranties, and confers no
> >> >> >> rights.
> >> >> >>
> >> >> >> <suqian99@hotmail.com> wrote in message
> >> >> >> news:1167238862.302385.148420@73g2000cwn.googlegroups.com...
> >> >> >> > Hi, All.
> >> >> >> >
> >> >> >> > I want to load in a WinCE driver, its index is 12. How to do it?
> >> >> >> >
> >> >> >> > My registry file is like this:
> >> >> >> >
> >> >> >> > [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Sample]
> >> >> >> > "Prefix"="VCA"
> >> >> >> > "Dll"="sample.dll"
> >> >> >> > "DeviceArrayIndex"=dword:12
> >> >> >> > "Index"=dword:12
> >> >> >> > "Order"=dword:30
> >> >> >> >
> >> >> >> > But i failed at the VCA_Init function.
> >> >> >> >
> >> >> >> > any trick to do this?
> >> >> >> >
> >> >> >> > thanks,
> >> >> >> >
> >> >> >> > Mike.
> >> >> >> >
> >> >> >
> >> >
> >


Re: how to load in a build in driver whose index is greater 10 in Windows CE by Steve

Steve
Wed Dec 27 13:28:09 CST 2006

>So, if the index is greater than 9, I can't call RegQueryValueEx( hKey,
>TEXT("Name"), NULL, &dwValType, (LPBYTE) szName, &dwSize) ;

>Where is the "Name" subkey?
The "name" value only applies to legacy names (e.g. VCA0:-VCA9:) for devices
accessed bia the $device space you don't have a name entry. Drivers should
not rely on information stored in the active key directly. It should be
considered internal to the device manager. Some is available via defined
APIs but ultimately the actual names and values are all subject to change.


--
Steve Maillet
EmbeddedFusion
www.EmbeddedFusion.com
smaillet at EmbeddedFusion dot com



Re: how to load in a build in driver whose index is greater 10 in Windows CE by Steve

Steve
Wed Dec 27 13:29:08 CST 2006

Because the Device manager only creates the "name" value (which you
shouldn't rely on in your driver) for legacy device names.

--
Steve Maillet
EmbeddedFusion
www.EmbeddedFusion.com
smaillet at EmbeddedFusion dot com



Re: how to load in a build in driver whose index is greater 10 in Windows CE by Paul

Paul
Wed Dec 27 13:33:41 CST 2006

How can I answer that question? You've not told me what value hKey has. It
could be *anything*, as far as I would know. Without reading your code,
there is *zero* chance that I will know what you mean by that code, yes?

Paul T.

<suqian99@hotmail.com> wrote in message
news:1167247085.002801.279500@42g2000cwt.googlegroups.com...
> Paul,
>
> In my VCA_Init function, I have this:
> lStatus = RegQueryValueEx( hKey, TEXT("Name"), NULL, &dwValType,
> (LPBYTE) szName, &dwSize) ;
> it failed at here, RegQueryValueEx return failed.
>
> So, if the index is greater than 9, I can't call RegQueryValueEx( hKey,
> TEXT("Name"), NULL, &dwValType, (LPBYTE) szName, &dwSize) ;
>
> Where is the "Name" subkey?
>
> thanks,
>
> Mike
> Paul G. Tobey [eMVP] wrote:
>> Yes, you already have VCA18 (because "12" in the registry is 0x12, or 18
>> decimal).
>>
>> Paul T.
>>
>> <suqian99@hotmail.com> wrote in message
>> news:1167246042.307833.295380@i12g2000cwa.googlegroups.com...
>> > Hi, Paul,
>> >
>> > So you mean that I already have the VCA18 driver loaded if I have the
>> > registry keys:
>> > [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Sample]
>> > "Prefix"="VCA"
>> > "Dll"="Sample.dll"
>> > "DeviceArrayIndex"=dword:12
>> > "Index"=dword:12
>> > "Order"=dword:30
>> >
>> > If not, how to create the regristy key for the VCA18 so i