I have read lots of posts in this viz.
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)
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...
http://geekswithblogs.net/BruceEitman/archive/2008/06/09/windows-ce-a-stream-interface-shell.aspx
and
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...
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
**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...
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
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
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)
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...