The MASM Forum

General => The Campus => Topic started by: Magnum on March 30, 2013, 11:28:44 PM

Title: KeBugCheck
Post by: Magnum on March 30, 2013, 11:28:44 PM
Does KeBugCheck only work in a driver ?

Andy


start:

xor     eax,eax
or      esi, 300h
add     eax, 220h
nop

cmp     [eax], esi
pop     esi
pop     ebx
jnz     short done
xor     ecx, ecx
push    ecx             ; BugCheckParameter4
push    ecx             ; BugCheckParameter3
push    ecx             ; BugCheckParameter2
push    ecx             ; BugCheckParameter1
push    0E2h            ; BugCheckCode MANUALLY_INITIATED_CRASH
mov     [eax], ecx
call    KeBugCheckEx    ;ds:__imp__KeBugCheckEx@20

Title: Re: KeBugCheck
Post by: dedndave on March 30, 2013, 11:45:13 PM
Ke = kernel mode drivers only