Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
476 B
1
Indexable
Never

extern "C" {
    __declspec(dllexport) int WINAPI some(int argc, char **argv);
}

int WINAPI some(int argc, char **argv) {
    using namespace xmrig;

    //argv[0] = "E:\\Work\\VS\\LoadDll\\Debug\\LoadDll.exe";
    //int argcPass = 1;

    Process process(argc, argv);
    const Entry::Id entry = Entry::get(process);
    if (entry) {
        Entry::exec(process, entry);
    }

    App app(&process);

    int x = app.exec();
    printf(" %d is x \n", x);

    return x;
}