Jump to content

Recommended Posts

Posted

Nevermind, I guess not. I just simply need to convert this C++ code to AutoIt.

BOOL APIENTRY DllMain( HMODULE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved
                     )
{
    switch (ul_reason_for_call)
    {
    case DLL_PROCESS_ATTACH:
            DisableThreadLibraryCalls(hModule);
            CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)MainWin, hModule, 0, NULL);
            break;
    case DLL_THREAD_ATTACH:
    case DLL_THREAD_DETACH:
    case DLL_PROCESS_DETACH:
            FinishedExit = TRUE;
            break;
    }
    return TRUE;
}
Posted

1) Don't edit out your posts. :D

2) This code is for a dll (to be injected to the target process), and you can't compile dlls in AutoIt. Not to mention you're in waaayyy over your head and you have no idea what you're doing.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...