阅读:1818回复:0
driver-info.asm
;本文简单常见,更多内容敬请关注以后的更新。
;愿与搞驱动的朋友探讨交流。 ;联系方式如下: ;QQ:112426112 ;Email:leguanyuan@126.com ;Websites:http://correy.webs.com ;ml /coff driver-info.asm /link /subsystem:windows .386 .model flat, stdcall option casemap:none include kernel32.inc include user32.inc includelib kernel32.lib includelib user32.lib .data? x dd ? dg db 24 dup (?) Buffer db 256 dup (?) .data dn db "\\.\PhysicalDrive0",0 correy db "made by correy",0 body db "你的第一块硬盘的信息为:",0dh,0ah db "Number of cylinders:%u",0dh,0ah db "Tracks per cylinder:%u",0dh,0ah db "Sectors per track:%u",0dh,0ah db "Bytes per sector:%u",0dh,0ah,0 .code start:invoke CreateFile,addr dn,0,0,0,3,0,0 invoke DeviceIoControl,eax,70000h,0,0,addr dg,24,addr x,0 invoke wsprintf,addr Buffer,addr body,dword ptr [dg],dword ptr [dg+12],dword ptr [dg+16],dword ptr [dg+20] invoke MessageBox,0,addr Buffer,addr correy,0 invoke ExitProcess,0 end start ;made in 2010.05.28 |
|
|