Re: Native driver loading
From: Dean Ramsier (ramsiernospam_at_nospam.com)
Date: 01/27/05
- Next message: mobilevil: "Re: Remote tools"
- Previous message: Jimbo: "Re: Which functions can I call from an ISR(Interrupt Service Routi"
- In reply to: Sangel: "Re: Native driver loading"
- Next in thread: Steve Maillet \(eMVP\): "Re: Native driver loading"
- Reply: Steve Maillet \(eMVP\): "Re: Native driver loading"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 27 Jan 2005 13:21:10 -0500
If you want a "standard" CE keyboard driver, you need to use the MDD/PDD
model and allow it to be loaded by gwes. If you don't care about that, you
can write a normal stream interface driver and allow it to be loaded by
device.exe.
A stream interface driver is any driver that supports the normal stream
driver entry points, i.e. Open/Close/Read/Write/DeviceIoControl etc. Most
drivers are stream drivers, and the primary interface to them is through
DeviceIoControl. Device.exe loads stream drivers, they have a standard
interface.
Native drivers are drivers that have a custom interface, one that has been
defined by Microsoft for each specific native driver. You don't create your
own native driver, unless only your application is going to interface to it.
-- Dean Ramsier - eMVP "Sangel" <Sangel@discussions.microsoft.com> wrote in message news:46EBDFCB-8248-45A9-925B-958D5F34C931@microsoft.com... > wait I am bit confused ,can u tell me whether Keypad driver is stream or > native driver .We have not implemented MDD and PDD layer .then also i m > confused > > "mobilevil" wrote: > > > native driver has it's own structure, like touch panel. > > but stream driver can do a lot of task, too. > > e.g. disk block driver is a stream driver. > > in this case, keyboard can be a stream driver or a native driver or both > > exist. > > i use a stub native driver + stream driver. > > so, we still have to check documentation before we can decide which > > structure to go. > > > > "Sangel" <Sangel@discussions.microsoft.com> wrote in message > > news:19A499C8-C93D-4A64-8DF5-E5439BD49F1F@microsoft.com... > > > ok thanks ya very much, > > > then is it likethis,that be it any driver native or stream registry entry > > > fo > > > r for loading them does not vary > > > > > > "mobilevil" wrote: > > > > > >> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceddk40/html/cxconwritingstreaminterfacedriver.asp > > >> > > >> see this > > >> and see > > >> this is a simple stream intereface driver, that do nothing but install a > > >> ISR > > >> thread running in the background to scan > > >> gpio button. > > >> C:\WINCE420\PLATFORM\XSC1BD\DRIVERS\PWRBUTTON > > >> use keybd_event API to send key to windows in your driver > > >> > > >> this is the reg setting which load the sample driver. > > >> [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\PWRBUTTON] > > >> "Prefix"="PWR" > > >> "Dll"="PwrButton.Dll" > > >> "Order"=dword:2 > > >> "Ioctl"=dword:4 > > >> > > >> > > >> > > >> "Sangel" <Sangel@discussions.microsoft.com> wrote in message > > >> news:92E9522A-185D-4752-8A45-7488EAEBD677@microsoft.com... > > >> > Thank you. > > >> > > > >> > Mine is a native (monolithic) driver. keypad has only 11 keys. 4X4 > > >> > matrix > > >> > keypad. Row 3 ,Col 4 is not used. I created my own driver type. I doubt > > >> > registry entry is not correct. Can you help me in loading keypad > > >> > (native) > > >> > driver. > > >> > > > >> > Just as an eg give me how the entry will be in registry,or do we need > > >> > to > > >> > make any enty in Platform .bib for our DLL also. > > >> > > > >> > Also can u pls tell me where can i get detailed information about > > >> > developing > > >> > native drivers in Win CE > > >> > > > >> > Looking forward to your valuable reply. > > >> > > > >> > "mobilevil" wrote: > > >> > > > >> >> is your keyboard native, or is it a stream driver? > > >> >> e.g. stream driver are XXX_Read, XXX_Write, XXX_Open, XXX_Close etc > > >> >> to make it simple you can use stub keyboard driver in platform > > >> >> feature, > > >> >> and > > >> >> write your stream driver. > > >> >> your stream driver don't do anything except init, which start a thread > > >> >> and > > >> >> the thread is the ISR. scanning the keyboard and return key code using > > >> >> keyevent function. > > >> >> of course you can always add debug message/retail message using kitl > > >> >> or > > >> >> serial. so that you know if your driver is loaded or not. > > >> >> "Sangel" <Sangel@discussions.microsoft.com> wrote in message > > >> >> news:9C45167C-19D6-4191-9F7D-3D78468B28A4@microsoft.com... > > >> >> > thanx for the reply > > >> >> > we had tried this method also.but it didn't work . we got error as > > >> >> > written > > >> >> > below. > > >> >> > > > >> >> > DEVICE!StartOneDriver RegisterDevice(KPD, 1, keypad.dll, 0x802ee68) > > >> >> > failed > > >> >> > > > >> >> > can u pls suggest the reason for failure. > > >> >> > waiting for the reply. > > >> >> > > > >> >> > "mobilevil" wrote: > > >> >> > > > >> >> >> something like this, assmue your keyboard is a stream io driver, > > >> >> >> > > >> >> >> [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\mykeypad] > > >> >> >> "Dll" = "mykeypad.Dll" > > >> >> >> "Prefix"="KEY" > > >> >> >> "Order"=dword:2 > > >> >> >> "Ioctl"=dword:4 > > >> >> >> > > >> >> >> "Sangel" <Sangel@discussions.microsoft.com> wrote in message > > >> >> >> news:10A00D59-41F6-451B-BB36-6BD5DF7165B1@microsoft.com... > > >> >> >> > hi, > > >> >> >> > i have developed all t he nesessray code ie ISR IST for Keypad > > >> >> >> > Driver > > >> >> >> > in > > >> >> >> > Win CE 4.2, but i am not able to load it .i know i have to make > > >> >> >> > entry > > >> >> >> > in > > >> >> >> > registry but then also it dosen load pls help me and tell me how > > >> >> >> > to > > >> >> >> > make > > >> >> >> > an > > >> >> >> > reg entry the dll name for my driver is keypad.dll > > >> >> >> > waiting for reply > > >> >> >> > > >> >> >> > > >> >> >> > > >> >> > > >> >> > > >> >> > > >> > > >> > > >> > > > > > >
- Next message: mobilevil: "Re: Remote tools"
- Previous message: Jimbo: "Re: Which functions can I call from an ISR(Interrupt Service Routi"
- In reply to: Sangel: "Re: Native driver loading"
- Next in thread: Steve Maillet \(eMVP\): "Re: Native driver loading"
- Reply: Steve Maillet \(eMVP\): "Re: Native driver loading"
- Messages sorted by: [ date ] [ thread ]