#include <Windows.h>
HANDLE h = OpenProcess(PROCESS_CREATE_THREAD, FALSE, 34808); //Creating a remote thread
int main() {
LPVOID path = "MessageBoxDLL.dll";
CreateRemoteThread(h, NULL, 0, (LPTHREAD_START_ROUTINE)LoadLibraryA, path, 0, NULL);
}
When I try to run my code it returns the error "cannot convert from const char to lpvoid" Im a bit lost with why its not letting me give it a vaild path or even why it needs to convert my value. I played around a bit more but couldn't find any viable solutions. https://i.stack.imgur.com/Ne0bp.png <---Image of error