Function introduction:
Get the last error of the plug-in command
Functional prototype:
long GetLastError()
Parameter definition:
Return value:
Plastic number:
The return value indicates an error value. 0 means there are no errors.
-1: It means that you have used the charging function in the binding, but you are not registered and cannot use it.
-2 : ? When using mode 0 2 4 6, it will appear because the target window is protected, or the target window is not allowed to open by the administrator. Common in systems above win7, or there are security software interception plug-ins. Solution: Close all security software, close UAC of the system and try again. If it fails, it is certain that the target window has special protection.
-3: Use mode 0 2 4? It appears at 6 o'clock, either the target window is protected or it is an exception.
-4: It appears when using the mode135710103, which is an abnormal error.
-5 : ? Appears when using mode1357101103. The solution to this error is to close the target window, reopen it, and bind it. The process running the script may also not have administrator rights.
-6 -7 -9: Exception occurred when using the mode135710103. It may also be a problem with security software, such as 360. Attempt to uninstall 360.
-8-10: usage mode 1 3 5 7 10 1? When 103 appears, the target process may be protected, or the plug-in version may be too old. Try a new one, and it may be solved.
- 1 1 : ? Appears when using mode1357101103. The target process is protected. Tell me to fix it.
- 12 : ? Appears when using mode1357101103. The target process is protected. Tell me to fix it.
- 13 : ? Appears when using mode1357101103. The target process is protected, or it was not unbound because of the last binding. Attempt to call ForceUnBindWindow before binding.
-14: Appears when using mode 0 1 4 5. Maybe the target machine is not compatible. You can try other modes, such as 2 3 6 7.
-16: The binding modes 0 1 2 3 and 10 1 may be used, and then a child window may be specified, which is not supported. Can you change mode 4 5 6? 7 or 103 to try. In addition, you can also consider using a parent window or a top-level window to avoid this error. It is also possible that the target window is not unbound correctly? Then bind.
-17: mode 1 3 5 7 10 1? 103. This is an exception. Tell me to fix it.
-18: Invalid handle.
- 19 : ? Appears when using mode 0 1 23 1, indicating that these modes are not supported by your system. You can try other modes.