14
Windows kernel - Windows Driver Model - Nisec liangge

Windows kernel

  • Upload
    allan

  • View
    59

  • Download
    2

Embed Size (px)

DESCRIPTION

Windows kernel. Windows Driver Model Nisec liangge. Agenda. The limits about today’s presentation What differences between ring0 and ring3 How OS Startup How driver works. Limits. Win2000/ xp /2003, no Vista X86, no details WDM, no WDF Basic, no complex 32-bit, no 64-bit. - PowerPoint PPT Presentation

Citation preview

Page 1: Windows kernel

Windows kernel-Windows Driver Model

- Nisec liangge

Page 2: Windows kernel

Agenda• The limits about to-day’s presentation

• What differences be-tween ring0 and ring3

• How OS Startup• How driver works

Page 3: Windows kernel

Limits• Win2000/xp/2003, no Vista

• X86, no details• WDM, no WDF• Basic, no complex• 32-bit, no 64-bit

Page 4: Windows kernel

What differences-ring0 and ring3• Advantage

• The whole instructions• The whole memory• The details about OS• A lot of routines• More things can do

Page 5: Windows kernel

What differences-ring0 & ring3• Disadvantage:

•More time to work on•More dangerous for machine

•More challenge

Page 6: Windows kernel

What differences – Win & UNIX• Advantage

•Microsoft•Strong man•Market

Page 7: Windows kernel

What differences – Win & UNIX• Disadvantage:

•Little source code•excellent documenta-tion

•Microsoft

Page 8: Windows kernel

How OS startup• Setup system

• MBR• Boot sector

• Kernel• Ntldr-load boot driver• NtOskrnl.exe

Page 9: Windows kernel

Ntoskrnl• Phase0

•No interrupt•Initialize

• Phase1•Allow interrupt•IoManager initialize

Page 10: Windows kernel

IoManager• boot driver, system start driver, service auto driver, service demand start

• Enumeration• Recursion• Devnode• From top to root

Page 11: Windows kernel

How driver works• See WORD

Page 12: Windows kernel

Further Reading• Mark E. Russinovich and David A. Solomon, Microsoft Windows internals, 4th Edition, MS press

• Walter OneyMicrosoft Windows driver model, 2th edition, MS press

• DDK document, source code

Page 13: Windows kernel

Useful website• http://msdn.microsoft.com• http://www.osronline.com• http://www.msdnaa.net/cur-riculum/pfv.aspx?ID=6191

• http://www.driverdevelop.-com

Page 14: Windows kernel

End

•Thanks!•QA