-
Notifications
You must be signed in to change notification settings - Fork 9
Description
-
Got following error when Start profile.
"D2BS is not responding... starting profile" -
After some debugging...
Checking whether the D2 process is responding using Process.HasExited is not work in my case.
Process.HasExited internally call Kernel32.OpenProcess. And OpenProcess a Protected process access denied even with PROCESS_QUERY_LIMITED_INFORMATION. -
Quick fix : Bypass d2Profile.NoResponse check
or
directly call
Kernel32.GetExitCodeProcess(D2ProcessInfo.hProcess, out exitCode) -
Environment
Avira antivirus
Windows 7 SP1 x64, Korean
Microsoft Visual C++ 2010 Redistributable 10.0.30319
.netframework 4.5 ~ 4.7.2
D2 1.14d English
D2BS to 1.6.4U and D2Bot # to 20.6.1.100 -
Process.HasExited Access denied
https://www.giorgi.dev/net/access-denied-process-bugs/
https://stackoverflow.com/questions/28303436/openprocess-access-denied-error-only-on-windows-8-1