| 29 | } |
| 30 | |
| 31 | bool GetHexIdFromDeviceId( const char* deviceId, uint32_t& deviceIdHex ) |
| 32 | { |
| 33 | const char* deviceIdPrefix = "DEV_"; |
| 34 | |
| 35 | auto found = strstr( deviceId, deviceIdPrefix ); |
| 36 | if( !found ) |
| 37 | { |
| 38 | return false; |
| 39 | } |
| 40 | return sscanf_s( found + strlen( deviceIdPrefix ), "%x", &deviceIdHex ) == 1; |
| 41 | } |
| 42 | |
| 43 | const char* GetRegistryPathToLocalMachine( const char* registryPath ) |
| 44 | { |
no outgoing calls
no test coverage detected