Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Access is Denied RT error for ShutDownProcess
#1
Hi Gintaras,
I am getting a Access is denied Error for a ShutDownProcess of a specific process. However, I can manually end the process after I give the ok to the "Warning: Terminating a process can cause undesired results....."
In fact even this code works:
Code:
Copy      Help
run "taskmgr.exe"
;----
int w=win("Windows Task Manager" "#32770")
Acc a.Find(w "LISTITEM" "SampleProcess.exe" "class=SysListView32" 0x1015)
a.Select(3)
but child("&End Process" "Button" win("Windows Task Manager" "#32770") 0x1)
wait 2 WV win("Task Manager Warning" "#32770")
but child("&Yes" "Button" win("Task Manager Warning" "#32770") 0x1)

Is there any work around to the Access is Denied Error. Note that there are other processes that I get "Unable To Terminate Process" dialog (i.e. The opation could not be completed. Access is denied" even when I try to do it manually.

So is there a reason why I am still getting the Access is denied on some even though I can get rid of them manually?

Thanks, S


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)