yeah, i know. DLLs and VB... never. :-/
But i've found this:
So, if i inject the DLL
Code:
Case DLL_PROCESS_ATTACH
DllMain = True
would be called, right?
but if i do this:
Code:
Case DLL_PROCESS_ATTACH
msgbox "this is spartaaaa"
DllMain = True
nothing happens.
Does anybody have a idea how make a DLL that works for injection / how make the process_Attach "working"?
my ASM DLL works perfect with my inject. But a VB DLL would be great. But i think... it's impossible.
Code:
.386
.model flat, stdcall
option casemap:none
title testdll
include d:\masm32\include\windows.inc
include d:\masm32\include\user32.inc
includelib d:\masm32\lib\user32.lib
.const
szHello db "DLL Injected :)", 0
szTitle db "HiGHCi", 0
.code
DllEntry proc hInstance:DWORD, dwReason:DWORD, dwReserved:DWORD
xor eax, eax
cmp [dwReason], DLL_PROCESS_ATTACH
jne resume
invoke MessageBox, 0, ADDR szHello, ADDR szTitle, MB_OK OR MB_ICONINFORMATION OR MB_SYSTEMMODAL
resume:
mov eax, 1
ret
DllEntry endp
end DllEntry
Thanks.