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

Function GetRegistryValue

trinityal/Tr2DriverUtilities.cpp:73–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73bool GetRegistryValue( HKEY key, const char* name, std::string& value )
74{
75 char buffer[256];
76 DWORD dwcb_data = sizeof( buffer );
77
78 LONG result = RegQueryValueEx( key, name, nullptr, nullptr, reinterpret_cast<LPBYTE>( buffer ), &dwcb_data );
79 if( result == ERROR_SUCCESS )
80 {
81 value = buffer;
82 return true;
83 }
84 value = "";
85 return false;
86}
87
88bool DriverVersionToInt64( const char* driverVersion, int64_t& intVersion )
89{

Callers 1

DoGetDriverVersionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected