Kev koom ua ke nrog tag nrho cov khoom siv ntawm lub khoos phis tawj ntawm tus kheej hauv Windows, ntxiv rau qee qhov lwm yam haujlwm ntawm kev ua haujlwm tau muab los ntawm cov teeb tsa tsav. Txhawm rau sau cov neeg tsav tsheb, koj yuav tsum muaj kev nkag siab zoo ntawm lub cajmeem, cov qauv ntawm cov ntsiav thiab ntau lub Windows nyob hauv qab.
Tsim nyog
Cov Khoom Siv Windows driver Txhim Kho
Cov Lus Qhia
Kauj ruam 1
Rub tawm lub Windows Cov Khoom Siv Tsav Txhim Kho (DDK) kev faib tawm los ntawm microsoft.com (muaj rau cov neeg xav tau MSDN) thiab nruab nws hauv koj lub khoos phis tawm. Cov pob no muaj tag nrho cov cuab yeej tsim nyog rau kev tsim kho thiab tsim cov tsav tsheb (compiler, cov ntawv sib txuas, cov ntawv me me, cov tsev qiv ntawv), nrog rau cov ntaub ntawv muaj txhij txhua.
Kauj ruam 2
Kawm kom paub txhua cov ntaub ntawv muaj ntawm kev sau cov tsav tsheb rau lub Windows. Siv cov ntaub ntawv siv tau los ntawm DDK thiab cov ncauj lus ntsig txog MSDN (msdn.microsoft.com). Koj yuav tsum nkag siab txhua yam ntawm Windows Windows Model Model (WDM) thiab nkag siab cov ntsiab lus yooj yim ntawm architectural. Koj yuav tsum nkag siab meej txog qhov sib txawv ntawm cov neeg siv hom thiab tus tsav-hom tsav tsheb, cov cuab yeej tsav tsheb, thiab cov system tsav. Koj yuav tsum paub cov yam ntxwv ntawm cov chav kawm sib txawv ntawm cov tsav tsheb, lawv hom (tsav tsheb npav, lim dej, tsav tsheb muaj nuj nqi) thiab subtypes (tso saib cov tsav tsheb, qauv siv, cov twj siv hauv network, cov khoom sib txuas thiab cov chaw nres nkoj, cov chaw khaws khoom). Ua tib zoo saib xyuas cov ntsiab lus ntawm Pob Ntawv-Uas Tau Tso Tawm I / O nrog Reusable IRPs, kev tswj xyuas lub cim xeeb, tswj kev zam, thiab kev siv daim ntawv thov kom raug ntawm cov khoom siv sib txuas.
Kauj ruam 3
Qhia meej meej cov haujlwm ntawm tus neeg tsav tsheb tau txhim kho. Raws li qhov no, txiav txim siab seb hom twg thiab hom nws yog dab tsi.
Kauj ruam 4
Xaiv hom lus kawm. Raws li kab ke, cov tsav-hom tsav tau siv nyob rau hauv C. Cov neeg siv hom tsav feem ntau tau tsim hauv C ++. Muaj ntau qhov kev zam ntawm cov cai no. Piv txwv, cov neeg siv khoom minidrivers rau cov suab thiab vis dis aus, WDM suab tsav tsheb rau cov ntsiav tshuaj miniports, WIA tsav tsheb, thiab qee zaum cov tso saib cov ntawv tau sau ua C ++.
Kauj ruam 5
Tsim ib txoj haujlwm uas ua raws li tus neeg tsav tsheb kiag. Tshawb nrhiav DDK phau ntawv qhia ua piv txwv. Nrhiav qhov tseeb tsav tsheb qhov project. Yog tias koj tsis tuaj yeem nrhiav qhov piv txwv uas tsim nyog, tsim cov ntawv koj tus kheej uas muaj cov cai xav tau tsim thiab tsim cov ntawv sau. Piv txwv li, thaum txhim kho tus ntsiav-hom tsav, koj yuav tsum ua raws li DriverEntry muaj nuj nqi, uas muaj cov cai pib nrog rau qee tus qauv kev ua haujlwm (xws li AddDevice, StartIo, thiab lwm yam).
Kauj Ruam 6
Siv tus cwj pwm tsav. Ntxiv code rau cov haujlwm tsim hauv cov kauj ruam dhau los. Ntxiv lub laj thawj los tswj I / O thov, thiab lwm yam.