To find out if a KiXtart command or function is successful, always check the @ERROR and @SERROR macros. Note that most functions also return the error code.
If @ERROR is zero, the previous command or function was successful. If @ERROR is non-zero, the value corresponds to the error code returned by the most recently executed Win32 API.
To find out what a specific error code means, please consult the list of Win32 error codes on the Microsoft Developer Network (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/system_error_codes.asp).