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

Method QueryBinaryValue

WinArk/RegistryKey.cpp:197–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197_Use_decl_annotations_
198LONG RegistryKey::QueryBinaryValue(LPCTSTR pszValueName, void* pValue, ULONG* pnBytes) noexcept {
199 LONG lRes;
200 DWORD dwType;
201
202 ATLASSERT(pnBytes);
203 ATLASSERT(_hKey);
204
205 lRes = ::RegQueryValueEx(_hKey, pszValueName, nullptr, &dwType,
206 static_cast<LPBYTE>(pValue), pnBytes);
207 if (lRes != ERROR_SUCCESS)
208 return lRes;
209 if (dwType != REG_BINARY)
210 return ERROR_INVALID_DATA;
211
212 return ERROR_SUCCESS;
213}
214
215_Use_decl_annotations_
216LSTATUS RegistryKey::QueryValue(LPCTSTR pszValueName, DWORD* pdwType, void* pData, ULONG* pnBytes) noexcept {

Callers 2

OnInitDialogMethod · 0.80
GetDataAsStringMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected