.386
.model flat,stdcall
option casemap:none
;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
include windows.inc
include user32.inc
includelib user32.lib
include kernel32.inc
includelib kernel32.lib
include ntstatus.inc
include ntddk.inc
;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
.data
szCaption1 db '警告!',0
szText1 db '该操作涉可能会影响系统正常运行,是否继续?',0
szCaption2 db '系统信息',0
szText2 db '程序运行过程中遇到问题需要关闭!对此引起的不便我们表示抱歉!',0
.data?
lpLuid db ?
;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
.code
start:
; DriverEntry
;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
DriverEntry proc pDriverObject:PDRIVER_OBJECT, pusRegistryPath:PUNICODE_STRING
xor eax,eax
mov eax, [eax]
ret
DriverEntry endp
;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
end DriverEntry
invoke MessageBox,NULL,offset szText1,offset szCaption1,MB_ICONASTERISK or MB_YESNO
cmp eax,IDYES
jnz Routine_NO
Routine_YES:
invoke MessageBox,NULL,offset szText2,offset szCaption2,MB_OK
jmp L
Routine_NO: