| 195 | } |
| 196 | |
| 197 | _Use_decl_annotations_ |
| 198 | LONG 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_ |
| 216 | LSTATUS RegistryKey::QueryValue(LPCTSTR pszValueName, DWORD* pdwType, void* pData, ULONG* pnBytes) noexcept { |
no outgoing calls
no test coverage detected