#include <windows.h>
#include "resource.h"

LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST  ".\\manifest.xml"

IDI_APPICON        ICON                 ".\\res\\appicon.ico"
IDI_STFAIL         ICON                 ".\\res\\st_fail.ico"
IDI_STINFO         ICON                 ".\\res\\st_info.ico"
IDI_STOK           ICON                 ".\\res\\st_ok.ico"
IDI_STRFSH         ICON                 ".\\res\\st_refresh.ico"
IDB_MNPWR          BITMAP  DISCARDABLE  ".\\res\\mnpower.bmp"
IDB_MNBIN          BITMAP  DISCARDABLE  ".\\res\\mnbin.bmp"
IDB_MNASC          BITMAP  DISCARDABLE  ".\\res\\mnasc.bmp"
IDB_MNCFG          BITMAP  DISCARDABLE  ".\\res\\mncfg.bmp"

IDD_MAIN DIALOG 0, 0, 252, 172
EXSTYLE WS_EX_DLGMODALFRAME
STYLE DS_3DLOOK | DS_CENTER | DS_MODALFRAME | DS_SETFONT | WS_CAPTION | WS_VISIBLE | WS_GROUP | WS_POPUP | WS_SYSMENU
CLASS C2RW_RCCLASS
CAPTION ""
FONT 8, "MS Sans Serif"
{
 CONTROL "Read card", IDC_SCRDCRD, "BUTTON", BS_PUSHBUTTON | BS_CENTER | BS_MULTILINE | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 6, 130, 48, 12
 CONTROL "Read sector", IDC_SCRDSEC, "button", BS_PUSHBUTTON | BS_CENTER | BS_MULTILINE | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 56, 130, 48, 12
 CONTROL "Write sector", IDC_SCWRSEC, "BUTTON", BS_PUSHBUTTON | BS_CENTER | BS_MULTILINE | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 148, 130, 48, 12
 CONTROL "Write card", IDC_SCWRCRD, "button", BS_PUSHBUTTON | BS_CENTER | BS_MULTILINE | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 198, 130, 48, 12

 CONTROL "Type", -1, "STATIC", SS_LEFT | WS_CHILD | WS_VISIBLE, 6, 3, 20, 12
 CONTROL "", IDC_SCTPSEL, "COMBOBOX", CBS_DROPDOWNLIST | CBS_DISABLENOSCROLL | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 28, 2, 41, 96
 CONTROL "?", IDC_SCTPSRCH, "BUTTON", BS_DEFPUSHBUTTON | BS_CENTER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 72, 2, 14, 12

 CONTROL "Read in RW-mode", IDC_SCRW, "BUTTON", BS_AUTOCHECKBOX | BS_LEFTTEXT | BS_LEFT | BS_VCENTER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 6, 17, 77, 12

 CONTROL "", IDC_SCUGRP, "button", BS_GROUPBOX | WS_CHILD | WS_VISIBLE | WS_GROUP, 106, 3, 140, 39
 CONTROL "UID", -1, "STATIC", SS_RIGHT | SS_CENTERIMAGE | WS_CHILD | WS_VISIBLE, 108, 12, 16, 12
 CONTROL "", IDE_SCUID, "EDIT", ES_CENTER | ES_AUTOHSCROLL | ES_READONLY | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 126, 12, 88, 12
 CONTROL "Fix!", IDC_SCUFIX, "button", BS_PUSHBUTTON | BS_CENTER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 216, 12, 26, 12
 CONTROL "", IDT_SCPARM0, "static", SS_RIGHT | SS_CENTERIMAGE | WS_CHILD | WS_VISIBLE, 108, 26, 16, 12
 CONTROL "", IDE_SCPARM0, "edit", ES_CENTER | ES_AUTOHSCROLL | ES_READONLY | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 126, 26, 16, 12
 CONTROL "", IDT_SCPARM1, "static", SS_RIGHT | SS_CENTERIMAGE | WS_CHILD | WS_VISIBLE, 144, 26, 20, 12
 CONTROL "", IDE_SCPARM1, "edit", ES_CENTER | ES_AUTOHSCROLL | ES_READONLY | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 166, 26, 26, 12
 CONTROL "", IDT_SCPARM2, "static", SS_RIGHT | SS_CENTERIMAGE | WS_CHILD | WS_VISIBLE, 194, 26, 20, 12
 CONTROL "", IDE_SCPARM2, "edit", ES_CENTER | ES_AUTOHSCROLL | ES_READONLY | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 216, 26, 26, 12

 CONTROL "Sector", IDT_SCSSEL, "static", SS_LEFT | SS_CENTERIMAGE | WS_CHILD | WS_VISIBLE, 6, 31, 28, 12
 CONTROL "", IDC_SCSSEL, "COMBOBOX", CBS_DROPDOWNLIST | CBS_DISABLENOSCROLL | WS_CHILD | WS_VISIBLE | WS_VSCROLL | WS_TABSTOP, 36, 31, 33, 96
 CONTROL "", IDC_SCBGRP, "button", BS_GROUPBOX | WS_CHILD | WS_VISIBLE | WS_GROUP, 6, 47, 240, 80

 CONTROL "Key A", IDT_SCKEYA, "static", SS_RIGHT | SS_CENTERIMAGE | WS_CHILD | WS_VISIBLE, 53, 54, 20, 10
 CONTROL "", IDE_SCKEYA, "edit", ES_CENTER | ES_AUTOHSCROLL | ES_UPPERCASE | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 75, 53, 58, 12
 CONTROL "?", IDC_KEYSRCHA, "button", BS_DEFPUSHBUTTON | BS_CENTER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 134, 54, 10, 10
 CONTROL "Key B", IDT_SCKEYB, "static", SS_RIGHT | SS_CENTERIMAGE | WS_CHILD | WS_VISIBLE, 152, 54, 20, 10
 CONTROL "", IDE_SCKEYB, "edit", ES_CENTER | ES_AUTOHSCROLL | ES_UPPERCASE | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 173, 53, 58, 12
 CONTROL "?", IDC_KEYSRCHB, "button", BS_DEFPUSHBUTTON | BS_CENTER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 232, 54, 10, 10

 CONTROL "", IDT_DATA0, "STATIC", SS_RIGHT | SS_CENTERIMAGE | WS_CHILD | WS_VISIBLE, 8, 67, 57, 12
 CONTROL "", IDX_DATA0, "button", BS_AUTOCHECKBOX | BS_CENTER | BS_PUSHLIKE | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 67, 68, 8, 10
 CONTROL "", IDE_DATA0, "EDIT", ES_CENTER | ES_AUTOHSCROLL | ES_UPPERCASE | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 75, 67, 167, 12
 CONTROL "", IDT_DATA1, "static", SS_RIGHT | SS_CENTERIMAGE | WS_CHILD | WS_VISIBLE, 8, 82, 57, 12
 CONTROL "", IDX_DATA1, "button", BS_AUTOCHECKBOX | BS_PUSHLIKE | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 67, 83, 8, 10
 CONTROL "", IDE_DATA1, "edit", ES_CENTER | ES_AUTOHSCROLL | ES_UPPERCASE | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 75, 82, 167, 12
 CONTROL "", IDT_DATA2, "static", SS_RIGHT | SS_CENTERIMAGE | WS_CHILD | WS_VISIBLE, 8, 97, 57, 12
 CONTROL "", IDX_DATA2, "button", BS_AUTOCHECKBOX | BS_PUSHLIKE | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 67, 98, 8, 10
 CONTROL "", IDE_DATA2, "edit", ES_CENTER | ES_AUTOHSCROLL | ES_UPPERCASE | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 75, 97, 167, 12
 CONTROL "", IDT_DATA3, "static", SS_RIGHT | SS_CENTERIMAGE | WS_CHILD | WS_VISIBLE, 8, 112, 57, 12
 CONTROL "", IDX_DATA3, "button", BS_AUTOCHECKBOX | BS_PUSHLIKE | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 67, 113, 8, 10
 CONTROL "", IDE_DATA3, "edit", ES_CENTER | ES_AUTOHSCROLL | ES_UPPERCASE | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 75, 112, 167, 12

 CONTROL "", IDE_DATA3A, "edit", ES_CENTER | ES_AUTOHSCROLL | ES_UPPERCASE | ES_READONLY | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 75, 112, 58, 12
 CONTROL "", IDE_DATA3M, "edit", ES_CENTER | ES_AUTOHSCROLL | ES_UPPERCASE | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 135, 112, 48, 12
 CONTROL "", IDE_DATA3B, "edit", ES_CENTER | ES_AUTOHSCROLL | ES_UPPERCASE | ES_READONLY | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 184, 112, 58, 12

 CONTROL "P00-P03", IDT_PGR0, "static", SS_LEFT | SS_CENTERIMAGE | WS_CHILD | WS_VISIBLE, 12, 59, 30, 12
 CONTROL "", IDX_PG00, "button", BS_AUTOCHECKBOX | BS_LEFTTEXT | BS_LEFT | BS_PUSHLIKE | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 44, 60, 8, 10
 CONTROL "", IDE_PG00, "edit", ES_CENTER | ES_AUTOHSCROLL | ES_UPPERCASE | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 52, 59, 40, 12
 CONTROL "", IDX_PG01, "button", BS_AUTOCHECKBOX | BS_LEFTTEXT | BS_LEFT | BS_PUSHLIKE | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 94, 60, 8, 10
 CONTROL "", IDE_PG01, "edit", ES_CENTER | ES_AUTOHSCROLL | ES_UPPERCASE | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 102, 59, 40, 12
 CONTROL "", IDX_PG02, "button", BS_AUTOCHECKBOX | BS_LEFTTEXT | BS_LEFT | BS_PUSHLIKE | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 144, 60, 8, 10
 CONTROL "", IDE_PG02, "edit", ES_CENTER | ES_AUTOHSCROLL | ES_UPPERCASE | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 152, 59, 40, 12
 CONTROL "", IDX_PG03, "button", BS_AUTOCHECKBOX | BS_LEFTTEXT | BS_LEFT | BS_PUSHLIKE | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 194, 60, 8, 10
 CONTROL "", IDE_PG03, "edit", ES_CENTER | ES_AUTOHSCROLL | ES_UPPERCASE | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 202, 59, 40, 12
 CONTROL "P04-P07", IDT_PGR1, "static", SS_LEFT | SS_CENTERIMAGE | WS_CHILD | WS_VISIBLE, 12, 75, 30, 12
 CONTROL "", IDX_PG04, "button", BS_AUTOCHECKBOX | BS_LEFTTEXT | BS_LEFT | BS_PUSHLIKE | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 44, 76, 8, 10
 CONTROL "", IDE_PG04, "edit", ES_CENTER | ES_AUTOHSCROLL | ES_UPPERCASE | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 52, 75, 40, 12
 CONTROL "", IDX_PG05, "button", BS_AUTOCHECKBOX | BS_LEFTTEXT | BS_LEFT | BS_PUSHLIKE | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 94, 76, 8, 10
 CONTROL "", IDE_PG05, "edit", ES_CENTER | ES_AUTOHSCROLL | ES_UPPERCASE | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 102, 75, 40, 12
 CONTROL "", IDX_PG06, "button", BS_AUTOCHECKBOX | BS_LEFTTEXT | BS_LEFT | BS_PUSHLIKE | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 144, 76, 8, 10
 CONTROL "", IDE_PG06, "edit", ES_CENTER | ES_AUTOHSCROLL | ES_UPPERCASE | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 152, 75, 40, 12
 CONTROL "", IDX_PG07, "button", BS_AUTOCHECKBOX | BS_LEFTTEXT | BS_LEFT | BS_PUSHLIKE | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 194, 76, 8, 10
 CONTROL "", IDE_PG07, "edit", ES_CENTER | ES_AUTOHSCROLL | ES_UPPERCASE | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 202, 75, 40, 12
 CONTROL "P08-P11", IDT_PGR2, "static", SS_LEFT | SS_CENTERIMAGE | WS_CHILD | WS_VISIBLE, 12, 91, 30, 12
 CONTROL "", IDX_PG08, "button", BS_AUTOCHECKBOX | BS_LEFTTEXT | BS_LEFT | BS_PUSHLIKE | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 44, 92, 8, 10
 CONTROL "", IDE_PG08, "edit", ES_CENTER | ES_AUTOHSCROLL | ES_UPPERCASE | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 52, 91, 40, 12
 CONTROL "", IDX_PG09, "button", BS_AUTOCHECKBOX | BS_LEFTTEXT | BS_LEFT | BS_PUSHLIKE | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 94, 91, 8, 10
 CONTROL "", IDE_PG09, "edit", ES_CENTER | ES_AUTOHSCROLL | ES_UPPERCASE | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 102, 91, 40, 12
 CONTROL "", IDX_PG10, "button", BS_AUTOCHECKBOX | BS_LEFTTEXT | BS_LEFT | BS_PUSHLIKE | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 144, 92, 8, 10
 CONTROL "", IDE_PG10, "edit", ES_CENTER | ES_AUTOHSCROLL | ES_UPPERCASE | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 152, 91, 40, 12
 CONTROL "", IDX_PG11, "button", BS_AUTOCHECKBOX | BS_LEFTTEXT | BS_LEFT | BS_PUSHLIKE | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 194, 92, 8, 10
 CONTROL "", IDE_PG11, "edit", ES_CENTER | ES_AUTOHSCROLL | ES_UPPERCASE | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 202, 91, 40, 12
 CONTROL "P12-P15", IDT_PGR3, "static", SS_LEFT | SS_CENTERIMAGE | WS_CHILD | WS_VISIBLE, 12, 107, 30, 12
 CONTROL "", IDX_PG12, "button", BS_AUTOCHECKBOX | BS_LEFTTEXT | BS_LEFT | BS_PUSHLIKE | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 44, 108, 8, 10
 CONTROL "", IDE_PG12, "edit", ES_CENTER | ES_AUTOHSCROLL | ES_UPPERCASE | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 52, 107, 40, 12
 CONTROL "", IDX_PG13, "button", BS_AUTOCHECKBOX | BS_LEFTTEXT | BS_LEFT | BS_PUSHLIKE | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 94, 108, 8, 10
 CONTROL "", IDE_PG13, "edit", ES_CENTER | ES_AUTOHSCROLL | ES_UPPERCASE | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 102, 107, 40, 12
 CONTROL "", IDX_PG14, "button", BS_AUTOCHECKBOX | BS_LEFTTEXT | BS_LEFT | BS_PUSHLIKE | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 144, 108, 8, 10
 CONTROL "", IDE_PG14, "edit", ES_CENTER | ES_AUTOHSCROLL | ES_UPPERCASE | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 152, 107, 40, 12
 CONTROL "", IDX_PG15, "button", BS_AUTOCHECKBOX | BS_LEFTTEXT | BS_LEFT | BS_PUSHLIKE | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 194, 108, 8, 10
 CONTROL "", IDE_PG15, "edit", ES_CENTER | ES_AUTOHSCROLL | ES_UPPERCASE | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 202, 107, 40, 12

 CONTROL "", IDC_STBAR, "msctls_statusbar32", 0x50000003, 0, 160, 252, 12, 0x00000000
}

IDD_MAIN MENU
{
    POPUP "File"
    {
        MENUITEM "Load ASCII dump...\tCtrl+O", CM_ASCLD
        MENUITEM "Save ASCII dump...\tCtrl+S", CM_ASCSV
        MENUITEM SEPARATOR
        MENUITEM "Load binary dump...", CM_BINLD
        MENUITEM "Save binary dump...", CM_BINSV
        MENUITEM SEPARATOR
        MENUITEM "Load configuration...", CM_CFGLD
        MENUITEM "Save configuration...", CM_CFGSV
        MENUITEM SEPARATOR
        MENUITEM "Non-RW card warning", CM_NRWMSG
        MENUITEM SEPARATOR
        MENUITEM "Read full data", CM_ALLDT
        MENUITEM SEPARATOR
        MENUITEM "Exit\t\tAlt+F4", CM_EXIT
    }
}

IDD_MAIN ACCELERATORS
{
    "O", CM_ASCLD, VIRTKEY, CONTROL
    "S", CM_ASCSV, VIRTKEY, CONTROL
}

IDD_PROC DIALOG 0, 0, 242, 119
EXSTYLE WS_EX_DLGMODALFRAME
STYLE DS_MODALFRAME | DS_3DLOOK | DS_CENTER | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION ""
FONT 8, "MS Sans Serif"
{
 CONTROL "", IDC_PBAR, "msctls_progress32", WS_CHILD | WS_VISIBLE | WS_BORDER, 4, 3, 234, 4
 CONTROL "", IDE_LOGBOX, "edit", ES_LEFT | ES_MULTILINE | ES_READONLY | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL | WS_HSCROLL | WS_TABSTOP, 4, 10, 234, 108
}


STRINGTABLE
{
    STR_USAGE       "\1Usage: c2rw.exe COMnn <baudrate>\r\nExample: c2rw.exe COM12 9600"
    STR_CMAIN       "C2RW - Clone data to RW-card, V"
    STR_CINFO       "Info"
    STR_CERR        "Error!"
    STR_CWARN       "Warning!"

    STR_SNRWWARN    "\3Non-RW card detected!"
    STR_QNRWWARN    " Continue?"

    STR_ASTRTM      "Clone data from standard card to Mifare Zero card."
    STR_SBREAK      "\3The operation was aborted."
    STR_ACOMPLETE   " Completed."

    STR_ETHRD       "\3 Fatal error! Can't create thread!"
    STR_ELOAD       "\3Can't load file!"
    STR_GLOAD       "\2Loading complete."
    STR_ESAVE       "\3Can't save file!"
    STR_GSAVE       "\2Saving complete."

    STR_CUGPGS      "Pages 0-2 from dump"
    STR_CUGBLK      "Sector 0 from dump"

    STR_CDGPGS      "Card data"
    STR_CDGBLK      "Sector data"

    STR_CLDASC      "Load ASCII file..."
    STR_CSVASC      "Save ASCII file..."
    STR_FLTASC      "ASCII dump(*.crd)\0 *.crd\0All files(*.*)\0 * .*\0"
    STR_EXTASC      ".crd"

    STR_CLDBIN      "Load binary file..."
    STR_CSVBIN      "Save binary file..."
    STR_FLTBIN      "Binary dump(*.mfd)\0 *.mfd\0All files(*.*)\0 * .*\0"
    STR_EXTBIN      ".mfd"

    STR_CLDCFG      "Load configuration file..."
    STR_CSVCFG      "Save configuration file..."
    STR_FLTCFG      "Configuration file(*.c2c)\0 *.c2c\0All files(*.*)\0 * .*\0"
    STR_EXTCFG      ".c2c"

    STR_SUCCESS     "\2Ok!"
    STR_FAIL        "\3Command execution error!"
    STR_HARDWARE    "\3Hardware error!"
    STR_TIMEOUT_TX  "\3Communication error: TX timeout!"
    STR_TIMEOUT_RX  "\3Communication error: RX timeout!"
    STR_NOTSYNC     "\3Communication error: synchronization lost!"
    STR_NOREADER    "\3Can't find reader!"
    STR_NOCARD      "\3Can't find card!"
    STR_INVALIDCARD "\3Invalid card type!"
    STR_INVALIDKEY  "\3Invalid auth key or card type!"
    STR_IOERR       "\3I/O error!"
    STR_DATAREAD    "\3Can't read data from card!"
    STR_DATAWRITE   "\3Can't write data to card!"
    STR_BUSY        "\3Device busy error!"
    STR_UNKNOWN     "\3Unknown error!"

    STR_RINIT01     "Initialization... "
    STR_RINIT01OK   "Ok."
    STR_RINIT02     " Reader: "
    STR_RINIT02OK   "\r\n"

    STR_RTSTRW01    "Test for RW-gate... "
    STR_RTSTRW01G   "Ok.\r\n"
    STR_RTSTRW01N   "Fail.\r\n"

    STR_CTPSRCH     "Search for the type of card..."
    STR_STPSRCH     "\4Search for the type of card..."
    STR_DTPS01      "Search for the type of card... "
    STR_DTPS01OK    "Ok.\r\n--\r\n"
    STR_DTPS02      "\r\n"
    STR_DTPS03      "\r\n--\r\nComplete."

    STR_CKASRCH     "Searching authorization key A..."
    STR_CKBSRCH     "Searching authorization key B..."
    STR_SKSRCH      "\4Searching authorization key %c..."
    STR_DKSRC01     "Searching authorization key %c...\r\n--\r\n"
    STR_DKSRC02     "Probe key %c["
    STR_DKSRC02T    "]... "
    STR_DKSRC02G    "Ok.\r\n"
    STR_DKSRC02N    "Fail.\r\n"
    STR_DKSRC02E    "--\r\n"
    STR_SKSRC03G    "\2Key %c for the sector %u was found."
    STR_SKSRC03F    "\3Can't find key %c for the sector %u!"

    STR_CRDRS       "Sector reading..."
    STR_SRDRS       "\4Sector %u reading..."
    STR_DRDRS01     "Card sector %u reading...\r\n--\r\n"
    STR_DRDRS02     "Read "
    STR_DRDRS02K    ", key %c["
    STR_DRDRS02R    ", [RW-mode"
    STR_DRDRS02T    "]... "
    STR_DRDRS02G    "Ok.\r\n"
    STR_DRDRS02E    "--\r\n"
    STR_DRDRS03A    "The key A hasn't been tested for authorization only. "
    STR_DRDRS03B    "The key B hasn't been tested for authorization only. "
    STR_DRDRS03C    "Continue...\r\n"
    STR_DRDRS04A    "The key A is updated.\r\n"
    STR_DRDRS04B    "The key B is updated.\r\n"
    STR_DRDRS05A    "The key A is not correct.\r\n"
    STR_DRDRS05B    "The key B is not correct.\r\n"
    STR_DRDRS06G    "--\r\nSector %u was readen."
    STR_DRDRS06N    "--\r\nCan't read sector %u!"
    STR_DRDRS07G    " Operation complete."
    STR_DRDRS07N    " Operation failed."

    STR_DRDPG01     "Reading "
    STR_DRDPG01T    "... "
    STR_DRDPG01G    "Ok.\r\n"
    STR_DRDPG01E    "--\r\n"
    STR_DRDPG02     "Error reading page(s)"
    STR_DRDPG02E    "!"
    STR_DRDPG03     "Reading page(s)"
    STR_DRDPG03E    " was successful."

    STR_CRDCARD     "Card reading..."
    STR_SRDCARD     "\4Card reading..."
    STR_DRDCR01T    "\r\n******************************************************************************\r\n"
    STR_DRDCR02S    "Error reading sector(s)"
    STR_DRDCR02E    "!"
    STR_DRDCR03S    "Reading sector(s)"
    STR_DRDCR03E    " was successful."
    STR_DRDCR04G    "\r\nOperation complete."
    STR_DRDCR04N    "\r\nOperation failed. "

    STR_CWRRS       "Sector writing..."
    STR_SWRRS       "\4Sector %u writing..."
    STR_DWRRS01T    "--\r\n"
    STR_DWRRS01     "Card sector %u writing...\r\n--\r\n"
    STR_DWRRS02     "Write "
    STR_DWRRS02K    ", key %c["
    STR_DWRRS02R    ", [RW-mode"
    STR_DWRRS02T    "]... "
    STR_DWRRS02G    "Ok.\r\n"
    STR_DWRRS02E    "--\r\n"
    STR_DWRRS03G    "--\r\nSector %u was written."
    STR_DWRRS03N    "--\r\nCan't write sector %u!"
    STR_DWRRS04G    " Operation complete."
    STR_DWRRS04N    " Operation failed."

    STR_DWRPG01     "Write "
    STR_DWRPG01T    "... "
    STR_DWRPG01G    "Ok.\r\n"
    STR_DWRPG01E    "--\r\n"
    STR_DWRPG02     "Error writing page(s)"
    STR_DWRPG02E    "!"
    STR_DWRPG03     "Writing page(s)"
    STR_DWRPG03E    " was successful."

    STR_CWRCARD     "Card writing..."
    STR_SWRCARD     "\4Card writing..."
    STR_SWRCARDN    "\1No data to write!"
    STR_DWRCR01T    "\r\n******************************************************************************\r\n"
    STR_DWRCR02S    "Error writing sector(s)"
    STR_DWRCR02E    "!"
    STR_DWRCR03S    "Writing sector(s)"
    STR_DWRCR03E    " was successful."
    STR_DWRCR04G    "\r\nOperation complete."
    STR_DWRCR04N    "\r\nOperation failed. "
}
