Hi, its me again having a question about the dll_process_detach. I am injecting my dll file into a target process and running some functions... When i am closing the target process (using the [x] in the top right corner) the DLL_PROCESS_DETACH is executet, isnt it? But when i run the following code the internetopen fails, where its working fine in the "main routine" of my dll file... also i am wondering because the follwoing KillProcessByName workes quite fine...
Perhaps u can tell my why this is happening or better why the internetopen isnt working :( And perhaps u have some solution or hints for me?
THX a lot!
PS: of cause the "Blablabla" is different in the original code ;)
Perhaps u can tell my why this is happening or better why the internetopen isnt working :( And perhaps u have some solution or hints for me?
THX a lot!
Code:
.....
case DLL_PROCESS_DETACH:
HINTERNET hInternet = InternetOpen("Blablabla", INTERNET_OPEN_TYPE_PRECONFIG, 0, 0, 0);
HINTERNET hInternetSite = InternetConnect(hInternet, "Blablabla", INTERNET_DEFAULT_HTTP_PORT, NULL, NULL, INTERNET_SERVICE_HTTP, 0, 0);
HINTERNET hInternetSiteRequest = HttpOpenRequest(hInternetSite, "POST", "Blablabla", NULL, NULL, NULL, 0, 1);
KillProcessByName("ABC.exe");
AddLog("DLL Detached");
AddLog("==========LOG END==========\n\n\n");
break;
....