Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Loading of custom Driver on WinCE 6.0

153 views
Skip to first unread message

Ravi

unread,
May 26, 2009, 4:45:46 AM5/26/09
to
Hi,

I have read lots of posts in this viz.


http://groups.google.com/group/microsoft.public.windowsce.embedded/browse_thread/thread/3bd34223fa0fb3cf

and a lot related to it.

Even i am facing the same problem, but with a bit of difference.

I have taken a device from market HTC 8900 / Samsung Omnia and want to
write a normal stream driver (DriverShell).

I DO NOT HAVE BSP for this.

I have followed all the steps of above blog post and my dumpbin.exe is
correct and matches the snapshot what msdn gives.

I created a normal Emulator OS design in Platform Builder 6.0, and
made a subproject and chose WinCE DLL.

Wrote my DriverShell code in that and pasted the generated .dll
(Drivershell driver) in \windows directory of my device.

Wrote an application to test this using ActiveDeviceEx, RegCreateKeyEx
etc.

ActivateDeviceEx returns NULL and GetLastError() returns 2 !!.

Can i write a DriverShell for this kind of market device? If yes
please tell me how can i load my device?

Registry entries are:

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Sample]
"Dll"="drvdemo.dll"
"Prefix" = "DEM"
"Index" = dword:1
"Order" = dword:0
"FriendlyName" = "Demo Driver"
"Ioctl" = dword:0
"Flags" = dword:10 // For User mode

I even changed Flags to 0, it does not load. It does not appear in
"Drivers\Active" ??

Thanks,

-Ravi

Bruce Eitman [eMVP]

unread,
May 26, 2009, 8:42:59 AM5/26/09
to
Take a look at:


--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com
My BLOG http://geekswithblogs.net/bruceeitman

EuroTech Inc.
www.EuroTech.com

"Ravi" <ravila...@gmail.com> wrote in message
news:758ec46d-8cf5-471b...@b6g2000pre.googlegroups.com...

Bruce Eitman [eMVP]

unread,
May 26, 2009, 8:47:20 AM5/26/09
to
Take a look at:

http://geekswithblogs.net/BruceEitman/archive/2008/06/09/windows-ce-a-stream-interface-shell.aspx

and

http://geekswithblogs.net/BruceEitman/archive/2008/08/08/platform-builder-my-stream-interface-driver-does-not-load.aspx

Then check to see that your registry settings are there when the device
reboots. What do you mean by "DriverShell" that you stated over and over,
but didn't define?

Then, check to see what version of Windows CE those devices are running. I
suspect that they are running Windows CE 5.0. If that is the case, your
driver won't run so you will need to build for Windows CE 5.0.

--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com
My BLOG http://geekswithblogs.net/bruceeitman

EuroTech Inc.
www.EuroTech.com

"Ravi" <ravila...@gmail.com> wrote in message
news:758ec46d-8cf5-471b...@b6g2000pre.googlegroups.com...

Ravi

unread,
May 26, 2009, 9:56:59 AM5/26/09
to
On May 26, 8:47 am, "Bruce Eitman [eMVP]"

<bruce.eitman.nos...@EuroTech.com.nospam> wrote:
> Take a look at:
>
> http://geekswithblogs.net/BruceEitman/archive/2008/06/09/windows-ce-a...
>
> and
>
> http://geekswithblogs.net/BruceEitman/archive/2008/08/08/platform-bui...

>
> Then check to see that your registry settings are there when the device
> reboots.  What do you mean by "DriverShell" that you stated over and over,
> but didn't define?
>
> Then, check to see what version of Windows CE those devices are running.  I
> suspect that they are running Windows CE 5.0.  If that is the case, your
> driver won't run so you will need to build for Windows CE 5.0.
>
> --
> Bruce Eitman (eMVP)
> Senior Engineer
> Bruce.Eitman AT EuroTech DOT com
> My BLOGhttp://geekswithblogs.net/bruceeitman
>
> EuroTech Inc.www.EuroTech.com
>
> "Ravi" <ravilakku...@gmail.com> wrote in message

>
> news:758ec46d-8cf5-471b...@b6g2000pre.googlegroups.com...
>
> > Hi,
>
> > I have read lots of posts in this viz.
>
> >http://groups.google.com/group/microsoft.public.windowsce.embedded/br...

Hi,

Thanks !! .. I have precisely read ur blogs to start with, Thanks !

and the DriverShell is what you wrote (XXX_****). But i guess all of
that assumes that you need a device specific OS design / some kind of
BSP ?? Am i wrong?

Iam using WinCE 6.0 PB and my devices are Windows Mobile 6.1.

A reply from you means we can write a custom driver without BSP, just
a dll :) ..

Thanks once again,

-Ravi

Bruce Eitman [eMVP]

unread,
May 26, 2009, 10:29:44 AM5/26/09
to
You can write a driver without building the OS.

**BUT**, if you check the Windows CE version running on that device, I think
that you will find that it is Windows CE 5.0.

--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com

My BLOG http://geekswithblogs.net/bruceeitman

EuroTech Inc.
www.EuroTech.com

"Ravi" <ravila...@gmail.com> wrote in message

news:c5a3c64c-1b4e-4f7d...@f37g2000pro.googlegroups.com...

Ravi

unread,
May 27, 2009, 6:02:08 AM5/27/09
to
On May 26, 7:29 pm, "Bruce Eitman [eMVP]"

<bruce.eitman.nos...@EuroTech.com.nospam> wrote:
> You can write a driver without building the OS.
>
> **BUT**, if you check the Windows CE version running on that device, I think
> that you will find that it is Windows CE 5.0.
>
> --
> Bruce Eitman (eMVP)
> Senior Engineer
> Bruce.Eitman AT EuroTech DOT com

Hi,

Ya it was WinCE 5.0 sorry .. Actually now i wrote a normal DLL Driver
project your Drivershell, using VS 2005 Smart Device Project and
Windows Mobile 6.0 SDK.

And did a LoadLibrary, and the driver does not load, it returns NULL
and GetLastError() returns 126 !!.

If i use Register key and ActivateDeviceEx , it returns NULL and
GetLastError() returns 2. Can you help?

registy as > > > [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Sample]


"Dll"="drvdemo.dll"
"Prefix" = "DEM"
"Index" = dword:1
"Order" = dword:0
"FriendlyName" = "Demo Driver"

The source is same as your blog mydriver.cpp

Thanks

Ravi

unread,
May 27, 2009, 9:37:45 AM5/27/09
to

To add more ..
Can thr be driver signing issue, certificates etc etc ???

or to be in the first place can i do it ..

A simple DLL (Written on EVC 4.0 / VS 2005 + WinMo 6.0 SDK), loading
on a Market Device ??

Basically i want to write a wrapper to Wavedev.dll

Ravi

unread,
May 28, 2009, 1:19:33 AM5/28/09
to

May be it was a certificate issue ....

Iam able to load the test driver in other device basically older
Windows mobile 5.0, but the driver does not load in Windows Mobile
6.1.

Iam using the corresponding SDK and certificates for WinMo 5 / 6.1.

Any reasons why this is not loading on WinMo 6.1? Are certificates
which iam using have problem?

Bruce Eitman [eMVP]

unread,
May 28, 2009, 2:20:48 PM5/28/09
to
That could be

--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com

My BLOG http://geekswithblogs.net/bruceeitman

EuroTech Inc.
www.EuroTech.com

"Ravi" <ravila...@gmail.com> wrote in message

news:1fc2ca95-1082-44c5...@z8g2000prd.googlegroups.com...

0 new messages