Youre exporting DLLMain?
First i thought entry point in dlls was DLLMain but then when i try to import it in C# i get an error that entrypoint wasn't found
here is my code
And if you dont mind can you give me little explanation about entry point ?Code:#include <Windows.h> int Test(int x,int y) { return x+y; } BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { switch (ul_reason_for_call) { case DLL_PROCESS_ATTACH: MessageBox(0,L"Test",L"From unmanaged dll",0); case DLL_THREAD_ATTACH: case DLL_THREAD_DETACH: case DLL_PROCESS_DETACH: break; } return TRUE; }
Like do i have to set import the same dllagain and changing the entry point so i can use other functions? thanks in advance
Youre exporting DLLMain?
Naice.
A nigga mad. Opened again.
@Jason: Soothe your pain now.![]()
Last edited by Hassan; 10-04-2011 at 10:48 PM.

918
Just to clarify, even when exporting with the
extern "C" __declspec(dllexport) keyword, name mangling can still occur. There is, however, an easy way to find out what name your exported function was given when it was exported. All exported functions are added to the PE image file's "export table". So using any PE explorer you can simply go to the export table and see what functions your dll exports, and what names they have.
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
Last edited by freedompeace; 10-05-2011 at 06:27 AM. Reason: added little footnote-like thing at the end of the post.

918
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)