Lines Matching refs:rc

99 	LONG rc = RegQueryInfoKeyA(  in GetSubValueCount()  local
103 if (ERROR_INVALID_HANDLE == rc) in GetSubValueCount()
104 throw RegistryIOException(rc); in GetSubValueCount()
105 else if (ERROR_SUCCESS != rc) in GetSubValueCount()
106 throw RegistryException(rc); in GetSubValueCount()
124 LONG rc = RegQueryInfoKeyA( in GetSubKeyCount() local
128 if (ERROR_INVALID_HANDLE == rc) in GetSubKeyCount()
129 throw RegistryIOException(rc); in GetSubKeyCount()
130 else if (ERROR_SUCCESS != rc) in GetSubKeyCount()
131 throw RegistryException(rc); in GetSubKeyCount()
149 LONG rc = ERROR_SUCCESS; in GetSubKeyNames() local
153 rc = RegEnumKeyExA( in GetSubKeyNames()
157 if (ERROR_SUCCESS != rc && in GetSubKeyNames()
158 ERROR_MORE_DATA != rc) in GetSubKeyNames()
166 if (ERROR_INVALID_HANDLE == rc) in GetSubKeyNames()
167 throw RegistryIOException(rc); in GetSubKeyNames()
168 else if (ERROR_NO_MORE_ITEMS != rc && ERROR_SUCCESS != rc) in GetSubKeyNames()
169 throw RegistryException(rc); in GetSubKeyNames()
186 LONG rc = ERROR_SUCCESS; in GetSubValueNames() local
190 rc = RegEnumValueA( in GetSubValueNames()
194 if (ERROR_SUCCESS != rc && in GetSubValueNames()
195 ERROR_MORE_DATA != rc) in GetSubValueNames()
203 if (ERROR_INVALID_HANDLE == rc) in GetSubValueNames()
204 throw RegistryIOException(rc); in GetSubValueNames()
205 else if (ERROR_NO_MORE_ITEMS != rc && ERROR_SUCCESS != rc) in GetSubValueNames()
206 throw RegistryException(rc); in GetSubValueNames()
224 LONG rc = RegQueryValueExA( in GetValue() local
232 if (ERROR_FILE_NOT_FOUND == rc) in GetValue()
233 throw RegistryValueNotFoundException(rc); in GetValue()
234 else if (ERROR_ACCESS_DENIED == rc) in GetValue()
235 throw RegistryAccessDeniedException(rc); in GetValue()
236 else if (ERROR_SUCCESS != rc) in GetValue()
237 throw RegistryException(rc); in GetValue()
274 LONG rc = RegQueryValueExA( in GetValue() local
282 if (ERROR_FILE_NOT_FOUND == rc) in GetValue()
293 if (ERROR_ACCESS_DENIED == rc) in GetValue()
294 throw RegistryAccessDeniedException(rc); in GetValue()
295 else if (ERROR_SUCCESS != rc) in GetValue()
296 throw RegistryException(rc); in GetValue()
335 LONG rc = RegOpenKeyExA( in Open() local
342 if (ERROR_FILE_NOT_FOUND == rc) in Open()
343 throw RegistryKeyNotFoundException(rc); in Open()
344 else if (ERROR_ACCESS_DENIED == rc) in Open()
345 throw RegistryAccessDeniedException(rc); in Open()
346 else if (ERROR_SUCCESS != rc) in Open()
347 throw RegistryException(rc); in Open()
391 LONG rc = RegCreateKeyExA( in CreateSubKey() local
402 if (ERROR_INVALID_HANDLE == rc) in CreateSubKey()
403 throw RegistryIOException(rc); in CreateSubKey()
404 else if (ERROR_ACCESS_DENIED == rc) in CreateSubKey()
405 throw RegistryAccessDeniedException(rc); in CreateSubKey()
406 else if (ERROR_SUCCESS != rc) in CreateSubKey()
407 throw RegistryException(rc); in CreateSubKey()
437 LONG rc = RegDeleteKeyA(m_hSubKey, UnicodeToAnsiString(Name).c_str()); in DeleteSubKey() local
439 if (ERROR_INVALID_HANDLE == rc) in DeleteSubKey()
440 throw RegistryIOException(rc); in DeleteSubKey()
441 else if (ERROR_ACCESS_DENIED == rc) in DeleteSubKey()
442 throw RegistryAccessDeniedException(rc); in DeleteSubKey()
443 else if (ERROR_SUCCESS != rc) in DeleteSubKey()
444 throw RegistryException(rc); in DeleteSubKey()
459 LONG rc = RegDeleteKeyA(m_hSubKey, UnicodeToAnsiString(Name).c_str()); in DeleteSubKeyTree() local
461 if (ERROR_INVALID_HANDLE == rc) in DeleteSubKeyTree()
462 throw RegistryIOException(rc); in DeleteSubKeyTree()
463 else if (ERROR_ACCESS_DENIED == rc) in DeleteSubKeyTree()
464 throw RegistryAccessDeniedException(rc); in DeleteSubKeyTree()
465 else if (ERROR_SUCCESS != rc) in DeleteSubKeyTree()
466 throw RegistryException(rc); in DeleteSubKeyTree()
486 LONG rc = RegDeleteValueA( in DeleteValue() local
490 if (ERROR_INVALID_HANDLE == rc) in DeleteValue()
491 throw RegistryIOException(rc); in DeleteValue()
492 else if (ERROR_ACCESS_DENIED == rc) in DeleteValue()
493 throw RegistryNoWriteAccessException(rc); in DeleteValue()
494 else if (ERROR_FILE_NOT_FOUND == rc) in DeleteValue()
495 throw RegistryValueNotFoundException(rc); in DeleteValue()
496 else if (ERROR_SUCCESS != rc) in DeleteValue()
497 throw RegistryException(rc); in DeleteValue()
514 LONG rc = ERROR_SUCCESS; in SetValue() local
520 rc = RegSetValueExA( in SetValue()
530 rc = RegSetValueExA( in SetValue()
539 if (ERROR_INVALID_HANDLE == rc) in SetValue()
540 throw RegistryIOException(rc); in SetValue()
541 else if (ERROR_ACCESS_DENIED == rc) in SetValue()
542 throw RegistryAccessDeniedException(rc); in SetValue()
543 else if (ERROR_SUCCESS != rc) in SetValue()
544 throw RegistryException(rc); in SetValue()