| 788 | } |
| 789 | |
| 790 | QString Interception_Worker::getHardwareId(InterceptionDevice device) |
| 791 | { |
| 792 | QString hardware_id_str; |
| 793 | WCHAR hardware_id[MAX_PATH]; |
| 794 | size_t length = interception_get_hardware_id(s_InterceptionContext, device, hardware_id, sizeof(hardware_id)); |
| 795 | if(length > 0 && length < sizeof(hardware_id)) { |
| 796 | hardware_id_str = QString::fromWCharArray(hardware_id); |
| 797 | #ifdef DEBUG_LOGOUT_ON |
| 798 | qDebug().nospace() << "[getHardwareId] Device[" << device << "] -> HardwareID: " << hardware_id_str; |
| 799 | #endif |
| 800 | } |
| 801 | else { |
| 802 | #ifdef DEBUG_LOGOUT_ON |
| 803 | qDebug().nospace() << "[getHardwareId] No HardwareId[" << device << "]"; |
| 804 | #endif |
| 805 | } |
| 806 | |
| 807 | return hardware_id_str; |
| 808 | } |
| 809 | |
| 810 | QString Interception_Worker::getDeviceDescription(InterceptionDevice device) |
| 811 | { |
nothing calls this directly
no outgoing calls
no test coverage detected