cant get a final exception handler to work.
heres my code
heres my code
start:
; #########################################################################
PUSH OFFSET FINAL_HANDLER
CALL SetUnhandledExceptionFilter
int 3
invoke GetModuleHandle, NULL
mov hInstance, eax
FINAL_HANDLER proc
local exp :EXCEPTION_POINTERS
invoke UnhandledExceptionFilter,addr exp
lea eax,exp
mov ebx,[eax]
invoke dw2hex,ebx,addr dhexbvuff
invoke MessageBox, NULL, addr dhexbvuff, ADDR OurText, MB_OK or MB_ICONINFORMATION
invoke ExitProcess,0
ret
FINAL_HANDLER endp
im using a tutorial, but my code isnt working.