msptiResult

msptiResult enumerates the error and result codes returned by MSPTI. The definition is as follows:

1
2
3
4
5
6
7
8
9
typedef enum {
	MSPTI_SUCCESS = 0,    // MSPTI command is executed successfully and no error occurs.
	MSPTI_ERROR_INVALID_PARAMETER = 1,    // Returned when funcBufferRequested or funcBufferCompleted is NULL, indicating that MSPTI fails to be executed.
	MSPTI_ERROR_MULTIPLE_SUBSCRIBERS_NOT_SUPPORTED = 2,    // Returned when the MSPTI user already exists, indicating that MSPTI fails to be executed.
	MSPTI_ERROR_MAX_LIMIT_REACHED = 3,    // Activity Buffer does not contain more records, MSPTI fails to be executed.
	MSPTI_ERROR_DEVICE_OFFLINE = 4,    // Cannot obtain the device information.
	MSPTI_ERROR_INNER = 999,    // Returned when MSPTI cannot be initialized, indicating that MSPTI fails to be executed.
	MSPTI_ERROR_FORCE_INT = 0x7fffffff
} msptiResult;