MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / QueryQWORDValue

Method QueryQWORDValue

WinArk/RegistryKey.cpp:242–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242_Use_decl_annotations_
243LSTATUS RegistryKey::QueryQWORDValue(LPCTSTR pszValueName, ULONGLONG& qwValue) noexcept {
244 LONG lRes;
245 ULONG nBytes;
246 DWORD dwType;
247
248 ATLASSERT(_hKey);
249
250 nBytes = sizeof(ULONGLONG);
251 lRes = ::RegQueryValueEx(_hKey, pszValueName, nullptr, &dwType,
252 reinterpret_cast<LPBYTE>(&qwValue), &nBytes);
253 if (lRes != ERROR_SUCCESS)
254 return lRes;
255 if (dwType != REG_DWORD)
256 return ERROR_INVALID_DATA;
257
258 return ERROR_SUCCESS;
259}
260
261_Use_decl_annotations_
262LSTATUS RegistryKey::DeleteValue(LPCTSTR lpszValue) noexcept {

Callers 1

GetDataAsStringMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected