Home > other >  I met a let I doubt after using ctypes life GetLastError () returns the value...
I met a let I doubt after using ctypes life GetLastError () returns the value...

Time:05-05

This is a extremely simple line of code:
 
The from ctypes import *
Kernel32=windll. Kernel32
A=eval (input (' PID))
Kernel32. DebugActiveProcess (a)
Print (' error='kernel32. GetLastError ())

At least I don't see what problem, but, no matter what input PID, an error results are "6"...
More than that, I tried a lot of the kernel function are derived error '6',
Excuse me what's going on?
  • Related