//
//  Values are 32 bit values layed out as follows:
//
//   3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
//   1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
//  +---+-+-+-----------------------+-------------------------------+
//  |Sev|C|R|     Facility          |               Code            |
//  +---+-+-+-----------------------+-------------------------------+
//
//  where
//
//      Sev - is the severity code
//
//          00 - Success
//          01 - Informational
//          10 - Warning
//          11 - Error
//
//      C - is the Customer code flag
//
//      R - is a reserved bit
//
//      Facility - is the facility code
//
//      Code - is the facility's status code
//
//
// Define the facility codes
//
#define FACILITY_SYSTEM                  0x0
#define FACILITY_STUBS                   0x3
#define FACILITY_RUNTIME                 0x2
#define FACILITY_IO_ERROR_CODE           0x4


//
// Define the severity codes
//
#define STATUS_SEVERITY_WARNING          0x2
#define STATUS_SEVERITY_SUCCESS          0x0
#define STATUS_SEVERITY_INFORMATIONAL    0x1
#define STATUS_SEVERITY_ERROR            0x3


//
// MessageId: MSG_APPLICATION_START
//
// MessageText:
//
//  GigaCam started
//
#define MSG_APPLICATION_START            ((DWORD)0x40020001L)

//
// MessageId: MSG_APPLICATION_EXIT
//
// MessageText:
//
//  GigaCam terminated
//
#define MSG_APPLICATION_EXIT             ((DWORD)0x40020002L)

//
// MessageId: MSG_DEVICE_DISCOVERY
//
// MessageText:
//
//  Discovering devices
//
#define MSG_DEVICE_DISCOVERY             ((DWORD)0x40020003L)

//
// MessageId: MSG_TLI_ERROR
//
// MessageText:
//
//  TLI Error: %1
//
#define MSG_TLI_ERROR                    ((DWORD)0xC0020004L)

//
// MessageId: MSG_OPEN_DEVICE
//
// MessageText:
//
//  Opening device: %1
//
#define MSG_OPEN_DEVICE                  ((DWORD)0x40020005L)

//
// MessageId: MSG_MAINTENANCE_FPGA
//
// MessageText:
//
//  FPGA maintenance: Device: %1 File: %2
//
#define MSG_MAINTENANCE_FPGA             ((DWORD)0x40020006L)

//
// MessageId: MSG_MAINTENANCE_PIC
//
// MessageText:
//
//  PIC maintenance: Device: %1 File: %2
//
#define MSG_MAINTENANCE_PIC              ((DWORD)0x40020007L)

//
// MessageId: MSG_MAINTENANCE_ISCR
//
// MessageText:
//
//  ISCR maintenance: Device: %1 File: %2
//
#define MSG_MAINTENANCE_ISCR             ((DWORD)0x40020008L)

//
// MessageId: MSG_MAINTENANCE_XML
//
// MessageText:
//
//  XML maintenance: Device: %1 URL: %2
//
#define MSG_MAINTENANCE_XML              ((DWORD)0x40020009L)

//
// MessageId: MSG_MAINTENANCE_SUCCEEDED
//
// MessageText:
//
//  Maintenance complete
//
#define MSG_MAINTENANCE_SUCCEEDED        ((DWORD)0x4002000AL)

//
// MessageId: MSG_MAINTENANCE_FAILED
//
// MessageText:
//
//  Maintenance failed: %1
//
#define MSG_MAINTENANCE_FAILED           ((DWORD)0xC002000BL)

//
// MessageId: MSG_XML_FEATURE_MISSING
//
// MessageText:
//
//  XML feature missing: %1
//
#define MSG_XML_FEATURE_MISSING          ((DWORD)0x8002000CL)

//
// MessageId: MSG_PACKET_SIZE_TOO_BIG
//
// MessageText:
//
//  Packet size (%1) exceeds MTU (%2)
//
#define MSG_PACKET_SIZE_TOO_BIG          ((DWORD)0x8002000DL)

//
// MessageId: MSG_START_ACQUISITION_ERROR
//
// MessageText:
//
//  Acquisition failed to start: %1
//
#define MSG_START_ACQUISITION_ERROR      ((DWORD)0xC002000EL)

//
// MessageId: MSG_STOP_ACQUISITION_ERROR
//
// MessageText:
//
//  Acquisition failed to stop: %1
//
#define MSG_STOP_ACQUISITION_ERROR       ((DWORD)0xC002000FL)

//
// MessageId: MSG_GENAPI_ERROR
//
// MessageText:
//
//  GenAPI error: %1
//
#define MSG_GENAPI_ERROR                 ((DWORD)0xC0020010L)

//
// MessageId: MSG_GRABBING_ERROR
//
// MessageText:
//
//  Grabbing error: %1
//
#define MSG_GRABBING_ERROR               ((DWORD)0xC0020011L)

//
// MessageId: MSG_INIT_ACQUISITION_ERROR
//
// MessageText:
//
//  Initialize acquisition error: %1
//
#define MSG_INIT_ACQUISITION_ERROR       ((DWORD)0xC0020012L)

//
// MessageId: MSG_DEINIT_ACQUISITION_ERROR
//
// MessageText:
//
//  Deinitialize acquisition error: %1
//
#define MSG_DEINIT_ACQUISITION_ERROR     ((DWORD)0xC0020013L)

//
// MessageId: MSG_OPEN_CONFIG_ERROR
//
// MessageText:
//
//  Open configuration error: %1
//
#define MSG_OPEN_CONFIG_ERROR            ((DWORD)0xC0020014L)

//
// MessageId: MSG_DEVICE_NOT_READY
//
// MessageText:
//
//  Device not ready
//
#define MSG_DEVICE_NOT_READY             ((DWORD)0xC0020015L)

//
// MessageId: MSG_IMAGE_PARAMETERS
//
// MessageText:
//
//  Image parameters set up: %1 X %2 X %3
//
#define MSG_IMAGE_PARAMETERS             ((DWORD)0x40020016L)

//
// MessageId: MSG_ACQUISITION_STARTED
//
// MessageText:
//
//  Acquisition started
//
#define MSG_ACQUISITION_STARTED          ((DWORD)0x40020017L)

//
// MessageId: MSG_ACQUISITION_STOPPED
//
// MessageText:
//
//  Acquisition stopped
//
#define MSG_ACQUISITION_STOPPED          ((DWORD)0x40020018L)

