private void radioButton15_Click(object sender, System.EventArgs e) { //can't seek disk if (lastDisk != null) { //if there is something in the queue disable(lastDisk); lastDisk = null; } createRecord(2, "GetVersionExW", 21, "Can't seek disk"); thisTime.updateTime(); lastDisk = new Record(2, "GetVersionExW", 21, "Can't seek disk", thisTime.getTimeStamp()); }
private void radioButton18_Click(object sender, System.EventArgs e) { //segment locked if (lastMemory != null) { //if there is something in the queue disable(lastMemory); lastMemory = null; } createRecord(2, "GetModuleHandleA", 19, "Segment locked"); thisTime.updateTime(); lastMemory = new Record(2, "GetModuleHandleA", 19, "Segment locked", thisTime.getTimeStamp()); }
private void initRecords() { lastDisk = null; lastMemory = null; lastNetwork = null; }
private void noneDiskRadio_Click(object sender, System.EventArgs e) { //none disk clicked if (isRecording) { //if we are recording and another disk button has been clicked if (lastDisk != null) { //if there is something in the queue disable(lastDisk); lastDisk = null; } } }
private void radioButton5_Click(object sender, System.EventArgs e) { //file write protected if (lastDisk != null) { //if there is something in the queue disable(lastDisk); lastDisk = null; } createRecord(2, "GetVersionExW", 21, "File is write protected"); thisTime.updateTime(); lastDisk = new Record(2, "GetVersionExW", 21, "File is write protected", thisTime.getTimeStamp()); }
private void radioButton8_Click(object sender, System.EventArgs e) { //dir is read only if (lastDisk != null) { //if there is something in the queue disable(lastDisk); lastDisk = null; } createRecord(2, "GetVersionExW", 21, "Directory is read only"); thisTime.updateTime(); lastDisk = new Record(2, "GetVersionExW", 21, "Directory is read only", thisTime.getTimeStamp()); }
private void disable(Record lastRecIn) { createRecord(0, lastRecIn.function, lastRecIn.type, lastRecIn.name); }
private void createRecord(int enabled, String function, int type, String name) { thisTime.updateTime(); Record tempRecord = new Record(enabled, function, type, name, thisTime.getTimeStamp()); recordQ.Enqueue(tempRecord); }
private void radioButton27_Click(object sender, System.EventArgs e) { //network disconnected if (lastNetwork != null) { //if there is something in the queue disable(lastNetwork); lastNetwork = null; } createRecord(2, "GetVersionExW", 23, "Network disconnected"); thisTime.updateTime(); lastNetwork = new Record(2, "GetVersionExW", 23, "Network disconnected", thisTime.getTimeStamp()); }
private void radioButton25_Click(object sender, System.EventArgs e) { //wrong version of winsock if (lastNetwork != null) { //if there is something in the queue disable(lastNetwork); lastNetwork = null; } createRecord(2, "GetVersionExW", 23, "Wrong version of Winsock"); thisTime.updateTime(); lastNetwork = new Record(2, "GetVersionExW", 23, "Wrong version of Winsock", thisTime.getTimeStamp()); }
private void radioButton21_Click(object sender, System.EventArgs e) { //access denied to file if (lastDisk != null) { //if there is something in the queue disable(lastDisk); lastDisk = null; } createRecord(2, "GetVersionExW", 21, "Access denied to file"); thisTime.updateTime(); lastDisk = new Record(2, "GetVersionExW", 21, "Access denied to file", thisTime.getTimeStamp()); }