MCPcopy Create free account
hub / github.com/carbonengine/trinity / GetHexIdFromDeviceId

Function GetHexIdFromDeviceId

trinityal/Tr2DriverUtilities.cpp:31–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31bool 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
43const char* GetRegistryPathToLocalMachine( const char* registryPath )
44{

Callers 1

GetDeviceRegistryKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected