# WBTResult

## C Specification

      typedef s16 WBTResult;
      #define WBT_RESULT_SUCCESS                       0
      #define WBT_RESULT_ERROR_TIMEOUT                 1
      #define WBT_RESULT_ERROR_UNKNOWN_USER_COMMAND    2
      #define WBT_RESULT_ERROR_UNKNOWN_PACKET_COMMAND  3
      #define WBT_RESULT_ERROR_PARSE_INVALID           4
      #define WBT_RESULT_ERROR_RECV_BUFFER_OVERFLOW    5
      #define WBT_RESULT_ERROR_SAVE_FAILURE            6

## Description

The enum constant that shows the processing results in a WBT library command function.

## Constants

The meaning of each value is as follows.

Constant | Meaning
`WBT_RESULT_SUCCESS` | Indicates that the function process completed successfully.
`WBT_RESULT_ERROR_TIMEOUT` | Indicates that the function exceeded the specified wait time and stopped.
`WBT_RESULT_ERROR_UNKNOWN_USER_COMMAND WBT_RESULT_ERROR_UNKNOWN_PACKET_COMMAND` | Indicates that an unknown command was detected in the transfer buffer hooked from wireless MP communications.
`WBT_RESULT_ERROR_PARSE_INVALID` | Indicates that processing failed because the transfer buffer hooked from wireless MP communications is abnormal.
`WBT_RESULT_ERROR_RECV_BUFFER_OVERFLOW` | Indicates that the buffer is full due to an excess of received data.
`WBT_RESULT_ERROR_SAVE_FAILURE` | Indicates a failure to save the received data due to a sequence abnormality. This is mainly generated when the buffer specified with the `WBT_GetBlock` function is smaller than the actual receive size.

## See Also

`WBTCommand`

## Revision History

09/21/2004 Initial version