Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
190 views
in Technique[技术] by (71.8m points)

c++ - My DLL Injector notices the DLL, but can't get full path

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...