I managed to get my own DLL Injector going, but there's just one problem.
The injector notices my DLL in the file, but I get the error saying "Failed to get full path"
Most of this is not my code, so I'm very confused.
Line of code:
DWORD proc_id = 0;
char dll_path[MAX_PATH];
const char* dll_name = "MYDLL.dll";
const char* window_title = "MYEXE";
if (!file_exists(dll_name))
{
error("file_exists", "File doesn't exist");
}
if (!GetFullPathName(dll_name, MAX_PATH, dll_path, nullptr));
{
error("GetFullPathName", "Failed to get full path");
}
question from:
https://stackoverflow.com/questions/65853337/my-dll-injector-notices-the-dll-but-cant-get-full-path 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…