Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
541 B
1
Indexable
Never
typedef int(WINAPI* XMProc)(int, char**);

using namespace std;
int main() {
	
	
	
	
    HINSTANCE hGetProcIDDLL = LoadLibrary(TEXT("xmrig.dll"));

    if (hGetProcIDDLL == NULL) {
        std::cout << "cannot locate the .dll file" << std::endl;
    }
    else {
        std::cout << "it has been called" << std::endl;

    }

    //FARPROC xf = GetProcAddress(hGetProcIDDLL, "some");

    XMProc xf = (XMProc)GetProcAddress(hGetProcIDDLL, "some");

    (xf)(argc, argv);
	//xf();
    //getchar();
    //return 0;
}