Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


dll export viewer

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Liger
Cheater
Reputation: 0

Joined: 26 Jan 2019
Posts: 36
Location: don't have

PostPosted: Wed Aug 31, 2022 2:39 am    Post subject: dll export viewer Reply with quote

Is there a way to extract the names and addresses of the functions from the dll file in another process , . like this picture. using language C#


_________________
(^_^)
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8516
Location: 127.0.0.1

PostPosted: Wed Aug 31, 2022 1:59 pm    Post subject: Reply with quote

You can query the processes modules multiple different ways. C# includes a 'Process' class within the System.Diagnostics namespace which can query for a process, then within that you can check the 'Modules' property of a given process.

You can also manually iterate them through API calls such as:

via tlhelp32 (exposed via kernel32.dll):
- CreateToolhelp32Snapshot
- Process32First / Process32Next
- Module32First / Module32Next

via psapi (exposed via psapi.dll):
- EnumProcesses
- EnumProcessModules / EnumProcessModulesEx
- GetModuleInformation

To get the list of exported functions from a DLL, you can either walk to EAT (export address table) of the PE header yourself, or you can use the debug helper library (dbghelp.dll) and enumerate them. For that you would need calls like:
- SymInitialize / SymCleanup
- SymLoadModuleEx
- SymEnumerateSymbols64
- SymEnumerateSymbolsProc64

You can find tons of examples of doing it manually by manually walking/reading the PE header and such across the web.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites