6 Replies to “Dll Injection Lib”

  1. Example code

    typedef
    BOOL

    ( *CreateProcessAWithDll_TYPEDEF)(
    _In_opt_ LPCSTR lpApplicationName,
    _Inout_opt_ LPSTR lpCommandLine,
    _In_opt_ LPSECURITY_ATTRIBUTES lpProcessAttributes,
    _In_opt_ LPSECURITY_ATTRIBUTES lpThreadAttributes,
    _In_ BOOL bInheritHandles,
    _In_ DWORD dwCreationFlags,
    _In_opt_ LPVOID lpEnvironment,
    _In_opt_ LPCSTR lpCurrentDirectory,
    _In_ LPSTARTUPINFOA lpStartupInfo,
    _Out_ LPPROCESS_INFORMATION lpProcessInformation,
    const char *dll
    );

    HINSTANCE hDLL = NULL;
    CreateProcessAWithDll_TYPEDEF lpCreateProcessAWithDll;
    hDLL = LoadLibrary(“C:\\Users\\Jack\\Desktop\\repos\\injectlib\\Debug\\injectlib.dll”);
    lpCreateProcessAWithDll = (CreateProcessAWithDll_TYPEDEF)GetProcAddress((HMODULE)hDLL, “CreateProcessAWithDll”);

Leave a Reply

Your email address will not be published.