一招让你打不开百度

无聊了,写个小程序

.386
.model flat,stdcall
option casemap:none
include        windows.inc
include        gdi32.inc
includelib    gdi32.lib
include        user32.inc
includelib    user32.lib
include        kernel32.inc
includelib    kernel32.lib
.data
hMain    dd    ?
.data?
.const
szWindowName    db    ’百度一下,你就知道 – Windows Internet Explorer’,0
.code
start:
.while TRUE
invoke FindWindow,NULL,addr szWindowName
.if eax
mov hMain,eax
invoke SendMessage,hMain,WM_CLOSE,0,0
.endif
.endw
invoke ExitProcess,NULL
end start