作者:sas1 此贴贴于2012-2-21 21:34:45,已被阅读785次/回复1 
远程注入dll成功,但dll的对话框不能自动弹出
; dll 的入口函数
;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
DllEntry    proc    _hInstance,_dwReason,_dwReserved
        
        mov    eax,_dwReason
        .if    eax==DLL_PROCESS_ATTACH   
            call    _Do_aid
            mov    eax,TRUE                
        .endif
        ret

DllEntry    Endp
;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

_Aid_DLG    proc    uses ebx edi esi hWnd,wMsg,wParam,lParam
               mov    eax,wMsg
                .if    eax == WM_COMMAND
            mov    eax,wParam
            
        .elseif    eax == WM_CLOSE
            invoke    EndDialog,hWinMain,NULL
            
        .elseif    eax == WM_INITDIALOG
                mov    eax,hWnd
            mov    hWinMain,eax
            
        .else
            mov    eax,FALSE
            ret
        .endif
    @end:
        mov    eax,TRUE
        ret
    
    ret

_Aid_DLG endp
;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
_Do_aid    proc    
        invoke    GetModuleHandle,NULL
        invoke DialogBoxParam,eax,D2_Aid_DLG,NULL,offset _D2_Aid_DLG,NULL
        ret

_Do_aid    endp
;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>    
        End    DllEntry

此贴的回复贴(直接):
我用的是radasm,生成dll时没有编译资源414 sas1 2012-2-22 14:36:37 0 正常