Re: driver query
RAGHU D <ragd772003-/[email protected]>
| Newsgroups | gmane.comp.windows.ce.freeware |
|---|---|
| Message-ID | <[email protected]> |
thanx pai i got the concept thanx a lot raghu Dhanesh D Pai <[email protected]> wrote: i am writing for a layered driver. > in evc++,new,projects i choose wce dll and enter my pdd codes there. > my question is > now where to enter mdd codes in evc++ since it is also a dll > for writing applications i enter my codes in wce application in evc++. Oh Raghu..If I get your question correct you doubt it wrong. You really havnt appreciated the significance of Layered. I believe in most of the case the MDD driver is generic and taken from the M$. I quote from MSDN: - The PDD layer consists of the code that is specific to a given hardware device or platform. The MDD calls specific PDD routines to access the hardware or hardware specific information. When using alayered driver, the OEM reuses the common MDD code provided by Microsoft in the Windows CE Platform Builder, and only writes new PDD code that is specific to the OEM's hardware. Or, if porting one of Microsoft's sample drivers to new hardware, the OEM only needs to port the PDD layer; the MDD layer can be used as-is. ( source MSDN - topic: System Architecture for Native Device Drivers ) Hence you see that seldom you are required to write the MDD drivers coz most of the time it is already there. For reference you can read serial deriver the MDD driver is there in the Public\Common\Oak\Drivers\Serial dir and the PDD driver will be there in the Platfrom ie CEPC, MIPS etc... Usually the PDD layer of drivers must have the DDSI function for the MDD layer. Now coming to your question ...you will have to write two different file ...for PDD and MDD ( that is what the layered code is about ....) ... And as I said is most of the case( not compulsory ..but your case is generic ) you can use the MDD proveided by the M$. If you drivers is totally different in all respect then you can write the stream interface like upper level drivers ie MDD( this is what the author recomends) ... Yahoo! Groups SponsorADVERTISEMENT --------------------------------- Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/wince-devel/ To unsubscribe from this group, send an email to: [email protected] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. --------------------------------- Do you Yahoo!? Yahoo! Mail - Easier than ever with enhanced search. Learn more. [Non-text portions of this message have been removed] ------------------------ Yahoo! Groups Sponsor --------------------~--> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar. Now with Pop-Up Blocker. Get it for free! http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/W4wwlB/TM --------------------------------------------------------------------~->