views:

465

answers:

2

I need to add a device driver to a Windows CE image, I have the driver in .dll and .reg files and in a .cab package. I'm using Visual Studio 2005 with Platform Builder for Windows CE 6.0.

How can I do that?

+1  A: 

Hi, If you an OSDesign and you want to add the Dll to the image that the OSDesign creates, just put the Dll file in the %WinceRootDir%\Platform\\Files directory. If you do this, the file will be copied automatically to the release directory when you do a build. As for the registry, just add the relevant changes to the Porject.reg file and it will be integrated into the whole build. When you add a stream interface driver you need to add it's registry settings undet [HKEY_LOCAL_MACHINE\BuiltIn\Drivers\]. You can read here (An excellent Blog- http://geekswithblogs.net/BruceEitman/archive/2008/12/08/windows-ce-stream-interface-driver-registry-settings.aspx) (I can't post another link so search msdn for the bus enumerator) the necessary registry settings for a stream interface driver.

I have to say that the difficulties for new users with the posting restrictions are a real pain in the...

Hope this helps,

Shai

Shaihi
Thank you. Do you know if it's possible to do this as an independent Catalog Item instead of using global locations?
Jaime Soriano
Read this entry in the same blog http://geekswithblogs.net/BruceEitman/archive/2008/06/20/platform-builder-6.0-creating-a-catalog-file.aspx. What are you aiming at exactly?
Shaihi
A: 

"Hi, If you an OSDesign and you want to add the Dll to the image that the OSDesign creates, just put the Dll file in the %WinceRootDir%\Platform\Files directory. If you do this, the file will be copied automatically to the release directory when you do a build. As for the registry, just add the relevant changes to the Porject.reg file and it will be integrated into the whole build. When you add a stream interface driver you need to add it's registry settings undet [HKEY_LOCAL_MACHINE\BuiltIn\Drivers]. You can read here (An excellent Blog- http://geekswithblogs.net/BruceEitman/archive/2008/12/08/windows-ce-stream-interface-driver-registry-settings.aspx) (I can't post another link so search msdn for the bus enumerator) the necessary registry settings for a stream interface driver."

Hi, for your "Porject.reg file" from the above quote, do you mean "platform.reg"?

WCW
You should start your own question next time. The `project.reg` file is OSDesign specific whereas the `platform.reg` file is platform(BSP) specific. You could add the changes in either of the files, but if you add them to the `platform.reg` then other people using the same BSP will be affected too.
Shaihi