Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Access is Denied RT error for ShutDownProcess
#2
Possible reason: QM or macro runs not as administrator and tries to terminate process of other user.

This is what ShutDownProcess does when it is called without flags. Does it says "Access denied"? WTSTerminateProcess is Windows API function, you may find the reason with google.
Macro Macro1579
Code:
Copy      Help
str process="regedit"
int pid=ProcessNameToId(process); out pid
if(!WTSTerminateProcess(0 pid 0)) out _s.dllerror


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)