Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 17.06.2006, 02:31   #1
Bruenor
Архивный участник
 
Join Date: Jun 2006
Posts: 14
Default

I'm working on a method for getting the function table to work with statically imported functions. My plans are for another field that determines the address type (absolute address or thunk). Absolute address is the default and is what all of the functions use right now. With the thunk type, when the function table is loaded, the program will go to the given address to find the address of the thunk, which will then be used in the in-memory copy of the function table.

Some information on statically importing functions:
You can import a function into L2NPC.exe using stud_pe. Since the address can change, programs use thunks (which are essentially tiny functions) to call the imported function. The thunk address shown by stud_pe is actually the address of the memory that is filled in at program startup with the address of the thunk. So, to call an imported function, you would dereference the thunk address and call that.
Bruenor is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 20:34.