I am using CE 6.0
I am trying to write my first driver!! I made a DLL with all the
required functions and I exported them as in this example
http://msdn2.microsoft.com/en-us/library/aa459176.aspx

And added the required registry key to load driver on boot
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\LCDDriver]
"Dll"="LCDDriver.dll"
"Prefix" = "LCD"
"Index"=dword:5
"Order"=dword:5
"FriendlyName" = "LCD Driver"
"Ioctl"=dword:0

Then I get the errors below. Any input is appreciated

RegReadActivationValues
RegQueryValueEx(Drivers\BuiltIn\LCDDriver\BusPrefix) returned 2
!!!ERROR! Trying to load DLL 'LCDDriver.dll' fixed-up to user address
into Kerne
l.
!!!ERROR! MUST SPECIFY 'K' FLAG BIB FILE.
DEVICE!CreateDevice: couldn't load 'LCDDriver.dll' -- error 193
CreateDevice: creation of type 'LCD', index 5, lib 'LCDDriver.dll'
returning 0x0
0000000, error code 2
DEVICE!I_ActivateDeviceEx: couldn't activate: prefix LCD, index 5, dll
LCDDriver
.dll, context 0xd031eab4
DeviceFolder::LoadDevice(Drivers\BuiltIn\LCDDriver) last 144 Ticks

Re: first driver project by gissa

gissa
Sat Dec 30 02:59:05 CST 2006

I found the answer is in the debug output!!! At 4AM I am not thinking
so straight!

I added K and it worked

Gus

gissa wrote:
> I am using CE 6.0
> I am trying to write my first driver!! I made a DLL with all the
> required functions and I exported them as in this example
> http://msdn2.microsoft.com/en-us/library/aa459176.aspx
>
> And added the required registry key to load driver on boot
> [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\LCDDriver]
> "Dll"="LCDDriver.dll"
> "Prefix" = "LCD"
> "Index"=dword:5
> "Order"=dword:5
> "FriendlyName" = "LCD Driver"
> "Ioctl"=dword:0
>
> Then I get the errors below. Any input is appreciated
>
> RegReadActivationValues
> RegQueryValueEx(Drivers\BuiltIn\LCDDriver\BusPrefix) returned 2
> !!!ERROR! Trying to load DLL 'LCDDriver.dll' fixed-up to user address
> into Kerne
> l.
> !!!ERROR! MUST SPECIFY 'K' FLAG BIB FILE.
> DEVICE!CreateDevice: couldn't load 'LCDDriver.dll' -- error 193
> CreateDevice: creation of type 'LCD', index 5, lib 'LCDDriver.dll'
> returning 0x0
> 0000000, error code 2
> DEVICE!I_ActivateDeviceEx: couldn't activate: prefix LCD, index 5, dll
> LCDDriver
> .dll, context 0xd031eab4
> DeviceFolder::LoadDevice(Drivers\BuiltIn\LCDDriver) last 144 Ticks