MCPcopy Create free account
hub / github.com/BlueMatthew/WechatExporter / SetStringProperty

Method SetStringProperty

vcproject/AppConfiguration.cpp:246–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246BOOL AppConfiguration::SetStringProperty(LPCTSTR name, LPCTSTR value)
247{
248 CRegKey rk;
249 if (rk.Create(HKEY_CURRENT_USER, APP_ROOT_PATH, REG_NONE, REG_OPTION_NON_VOLATILE, KEY_READ | KEY_WRITE) == ERROR_SUCCESS)
250 {
251 HRESULT hr = rk.SetStringValue(name, value);
252 rk.Close();
253 return SUCCEEDED(hr);
254 }
255
256 return FALSE;
257}
258
259BOOL AppConfiguration::GetDwordProperty(LPCTSTR name, DWORD& value)
260{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected