MCPcopy Create free account
hub / github.com/Zalafina/QKeyMapper / getHardwareId

Method getHardwareId

QKeyMapper/interception_worker.cpp:790–808  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

788}
789
790QString 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
810QString Interception_Worker::getDeviceDescription(InterceptionDevice device)
811{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected