Re: first driver project



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

.



Relevant Pages

  • Re: running a service/driver/application upon startup
    ... debug version of the image is too large to load onto the device. ... I ran dumpbin/exports on the finger dll and saw the required function names: ... > theories as to why it's not getting loaded but just doing 'services load ...
    (microsoft.public.windowsce.embedded)
  • Re: Cannot activate sbcl
    ... but I think what happens is that Windows sees that your executable has a DATA section that might overlap a DLL's address space then it would reallocate that DLL to different address space. ... VirtualAlloc dynamically in your code is that your program and all its ... What can be done here is to have many tiny executables with different BSS sections in them, which then load a bigger executable in the form of a DLL. ...
    (comp.lang.lisp)
  • Re: DLL load should be easy, but errors
    ... But I cant load even the simple DLL I ... Just supply the exe with the path to the DLL I showed. ... foreach (Type typ in types) ... 'typ.GenericParameterAttributes' threw an exception of type ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Loadlibrary returns err.lastdellerror 127
    ... the resulting .exe I load all the dependant DLL's first (there are ... Assuming this is a 'regular' Dll and not an ActiveX Dll. ... you do NOT need to 'load' all the dependant Dlls. ... Actually the declare statements are there as well. ...
    (microsoft.public.vb.general.discussion)
  • Re: Loading multiple instances of a DLL explicitly
    ... copy dll to temp dir with unique name and load ... "Gary Chanson" wrote in message ... >> separate instance of a DLL for each thread created inside of a process. ...
    (microsoft.public.win32.programmer.kernel)