这是全部代码: 没看到buffer初始化
.386
.model flat, stdcall
option casemap :none
include windows.inc
include user32.inc
include kernel32.inc
include masm32.inc
includelib user32.lib
includelib kernel32.lib
includelib masm32.lib
include macro.asm
.data?
Handle1
dd
?
Handle2
dd ?
buffer
db 100 dup(?)
.CODE
START:
;get the handle of the taskbar
; invoke FindWindow,CTXT('SciCalc'),NULL
invoke FindWindow,CTXT('Shell_TrayWnd'),NULL
mov
Handle1,eax
;get the handle of the start button from the taskbar
invoke FindWindowEx,Handle1,0,CTXT('Button'),NULL
mov
Handle2,eax
;set the text
invoke SetWindowText,Handle2,CTXT('go')
;used to refresh the caption of the start button
invoke SendMessage,Handle2,WM_MOUSEMOVE,0,0
;????,?????
invoke StdIn,addr buffer,sizeof buffer
invoke ExitProcess,0
end START