Error codes for System functions

The table below lists the possible error codes for the WinTask System functions, for the errors stopping script execution (unless #IgnoreErrors=1).

 

-4

WinTaskAdmin service not started (GetCPULoad/GetMemUsage/GetProcessCPULoad functions under Vista)

-4

Access denied (KillApp, KillAppChildren, KillProcess functions)

-3

Statistical function failed

-3

Action cancelled by user (KillApp, KillAppChildren, KillProcess functions)

-2

The PID of the application is incorrect (KillProcess function)

-1

Timeout elapsed for the macro (ExecExcelMacro function)

-1

Index too big

1

Cannot send mail (SendEmail function)

2

The Excel workbook does not exist

5

Access denied (StartService, StopService, IsServiceStarted functions)

34

DDE failure (Shell/ShellWait functions)

35

No association (Shell/ShellWait functions)

36

Access denied (Shell/ShellWait functions)

37

DLL not found (Shell/ShellWait functions)

38

Sharing violation (Shell/ShellWait functions)

39

Empty Shell name (Shell/ShellWait functions)

66

Empty key name (Registry functions)

67

Error opening key (Registry functions)

68

Error setting up key (Registry functions)

69

Error reading key (Registry functions)

70

Error deleting key (Registry functions)

71

Error deleting the value of the key (Registry functions)

72

Invalid type for the key (Registry functions)

90

Internal error

99

Invalid parameter

103

Cannot reboot

104

No enough rights to reboot

107

The macro cannot be found (ExecExcelMacro function)

109

WinTaskAdmin service not started (for Services functions under Vista/Windows 7)

1060

The specified service is not available as an installed service