VB Decompiler Forum Index VB Decompiler
Hosted by TheAutomaters.com
 
  MemberlistMemberlist
 

how does VB call a DLL function?

 
   VB Decompiler Forum Index -> The Code
Author Message
Anonymous
New User


Joined: 10 Feb 2008
Posts: 0

Posted: Mon Jul 21, 2003 8:07 am     Post subject: how does VB call a DLL function?

How does VB (a native code app for example) call a dll function?
Also, does anyone know how it calls an OLE dll (i.e. one with DLLGetClassObject exported from it)
Back to top
Anonymous
New User


Joined: 10 Feb 2008
Posts: 0

Posted: Tue Aug 19, 2003 1:25 pm     Post subject: i called it "linking on demand"

<pre>
----------------------------------------------
[...]
push 43h
push ebx
push ebx
push ebx
push ebx
push 0FFFFFFFFh
push ecx
call vb_SetWindowPos
[...]

; --------------- S U B R O U T I N E ---------------------------------------
vb_SetWindowPos proc near
mov eax, SetWindowPos_ptr
or eax, eax

jz short todo_resolve_external_enrty_point
jmp eax

todo_resolve_external_enrty_point:

push offset struct_for_SetWindowPos
mov eax, offset DllFunctionCall
call eax ; DllFunctionCall
jmp eax
vb_SetWindowPos endp

------------------------------------------------------------------
aSetwindowpos db 'SetWindowPos',0
db 3 dup(0) ; some align

struct_for_SetWindowPos dd offset aUser32
dd offset aSetwindowpos
align 8
dd offset unk_45EDA8
dd 2 dup(0)
</pre>
Back to top
   VB Decompiler Forum Index -> The Code All times are GMT
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group