iczelion tut11[3]

[入库:2005年8月19日] [更新:2007年3月24日]

本文简介:选择自 jimgreen 的 blog

            pop  ofn.hwndowner
            push hinstance
            pop  ofn.hinstance
            mov  ofn.lpstrfilter, offset filterstring
            mov  ofn.lpstrfile, offset buffer
            mov  ofn.nmaxfile,maxsize
            mov  ofn.flags, ofn_filemustexist or \
                ofn_pathmustexist or ofn_longnames or\
                ofn_explorer or ofn_hidereadonly
            mov  ofn.lpstrtitle, offset ourtitle
            invoke getopenfilename, addr ofn
            .if eax==true
                invoke lstrcat,offset outputstring,offset fullpathname
                invoke lstrcat,offset outputstring,ofn.lpstrfile
                invoke lstrcat,offset outputstring,offset crlf
                invoke lstrcat,offset outputstring,offset fullname
                mov  eax,ofn.lpstrfile
                push ebx
                xor  ebx,ebx
                mov  bx,ofn.nfileoffset
                add  eax,ebx
                pop  ebx
                invoke lstrcat,offset outputstring,eax
                invoke lstrcat,offset outputstring,offset crlf
                invoke lstrcat,offset outputstring,offset extensionname
                mov  eax,ofn.lpstrfile
                push ebx
                xor ebx,ebx
                mov  bx,ofn.nfileextension
                add eax,ebx
                pop ebx
                invoke lstrcat,offset outputstring,eax
                invoke messagebox,hwnd,offset outputstring,addr appname,mb_ok
                invoke rtlzeromemory,offset outputstring,outputsize
            .endif
        .else
            invoke destroywindow, hwnd
        .endif
    .else
        invoke defwindowproc,hwnd,umsg,wparam,lparam
        ret
    .endif
    xor    eax,eax
    ret
wndproc endp

本文关键:iczelion asm
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top