Lines Matching refs:rc

104 	LONG rc = RegQueryInfoKeyW(  in GetSubValueCount()  local
108 if (ERROR_INVALID_HANDLE == rc) in GetSubValueCount()
109 throw RegistryIOException(rc); in GetSubValueCount()
110 else if (ERROR_SUCCESS != rc) in GetSubValueCount()
111 throw RegistryException(rc); in GetSubValueCount()
129 LONG rc = RegQueryInfoKeyA( in GetSubKeyCount() local
133 if (ERROR_INVALID_HANDLE == rc) in GetSubKeyCount()
134 throw RegistryIOException(rc); in GetSubKeyCount()
135 else if (ERROR_SUCCESS != rc) in GetSubKeyCount()
136 throw RegistryException(rc); in GetSubKeyCount()
154 LONG rc = ERROR_SUCCESS; in GetSubKeyNames() local
158 rc = RegEnumKeyExW( in GetSubKeyNames()
162 if (ERROR_SUCCESS != rc && in GetSubKeyNames()
163 ERROR_MORE_DATA != rc) in GetSubKeyNames()
171 if (ERROR_INVALID_HANDLE == rc) in GetSubKeyNames()
172 throw RegistryIOException(rc); in GetSubKeyNames()
173 else if (ERROR_NO_MORE_ITEMS != rc && ERROR_SUCCESS != rc) in GetSubKeyNames()
174 throw RegistryException(rc); in GetSubKeyNames()
195 LONG rc = ERROR_SUCCESS; in GetSubValueNames() local
199 rc = RegEnumValueW( in GetSubValueNames()
203 if (ERROR_SUCCESS != rc && in GetSubValueNames()
204 ERROR_MORE_DATA != rc) in GetSubValueNames()
212 if (ERROR_INVALID_HANDLE == rc) in GetSubValueNames()
213 throw RegistryIOException(rc); in GetSubValueNames()
214 else if (ERROR_NO_MORE_ITEMS != rc && ERROR_SUCCESS != rc) in GetSubValueNames()
215 throw RegistryException(rc); in GetSubValueNames()
237 LONG rc = RegQueryValueExW( in GetValue() local
245 if (ERROR_FILE_NOT_FOUND == rc) in GetValue()
246 throw RegistryValueNotFoundException(rc); in GetValue()
247 else if (ERROR_ACCESS_DENIED == rc) in GetValue()
248 throw RegistryAccessDeniedException(rc); in GetValue()
249 else if (ERROR_SUCCESS != rc) in GetValue()
250 throw RegistryException(rc); in GetValue()
287 LONG rc = RegQueryValueExW( in GetValue() local
295 if (ERROR_FILE_NOT_FOUND == rc) in GetValue()
306 if (ERROR_ACCESS_DENIED == rc) in GetValue()
307 throw RegistryAccessDeniedException(rc); in GetValue()
308 else if (ERROR_SUCCESS != rc) in GetValue()
309 throw RegistryException(rc); in GetValue()
348 LONG rc = RegOpenKeyExW( in Open() local
355 if (ERROR_FILE_NOT_FOUND == rc) in Open()
356 throw RegistryKeyNotFoundException(rc); in Open()
357 else if (ERROR_ACCESS_DENIED == rc) in Open()
358 throw RegistryAccessDeniedException(rc); in Open()
359 else if (ERROR_SUCCESS != rc) in Open()
360 throw RegistryException(rc); in Open()
404 LONG rc = RegCreateKeyExW( in CreateSubKey() local
415 if (ERROR_INVALID_HANDLE == rc) in CreateSubKey()
416 throw RegistryIOException(rc); in CreateSubKey()
417 else if (ERROR_ACCESS_DENIED == rc) in CreateSubKey()
418 throw RegistryAccessDeniedException(rc); in CreateSubKey()
419 else if (ERROR_SUCCESS != rc) in CreateSubKey()
420 throw RegistryException(rc); in CreateSubKey()
450 LONG rc = RegDeleteKeyW(m_hSubKey, Name.c_str()); in DeleteSubKey() local
452 if (ERROR_INVALID_HANDLE == rc) in DeleteSubKey()
453 throw RegistryIOException(rc); in DeleteSubKey()
454 else if (ERROR_ACCESS_DENIED == rc) in DeleteSubKey()
455 throw RegistryAccessDeniedException(rc); in DeleteSubKey()
456 else if (ERROR_SUCCESS != rc) in DeleteSubKey()
457 throw RegistryException(rc); in DeleteSubKey()
491 LONG rc = RegOpenKeyExW( in ImplDeleteSubKeyTree() local
498 if (ERROR_SUCCESS == rc) in ImplDeleteSubKeyTree()
503 rc = RegQueryInfoKeyW( in ImplDeleteSubKeyTree()
513 while (ERROR_SUCCESS == rc) in ImplDeleteSubKeyTree()
517 rc = RegEnumKeyExW( in ImplDeleteSubKeyTree()
524 if (ERROR_NO_MORE_ITEMS == rc) in ImplDeleteSubKeyTree()
526 rc = RegDeleteKeyW(RootKey, Name.c_str()); in ImplDeleteSubKeyTree()
529 else if (rc == ERROR_SUCCESS) in ImplDeleteSubKeyTree()
531 rc = ImplDeleteSubKeyTree(hKey, lpSubKey); in ImplDeleteSubKeyTree()
540 if (ERROR_INVALID_HANDLE == rc) in ImplDeleteSubKeyTree()
541 throw RegistryIOException(rc); in ImplDeleteSubKeyTree()
542 else if (ERROR_ACCESS_DENIED == rc) in ImplDeleteSubKeyTree()
543 throw RegistryAccessDeniedException(rc); in ImplDeleteSubKeyTree()
544 else if (ERROR_FILE_NOT_FOUND == rc) in ImplDeleteSubKeyTree()
545 throw RegistryKeyNotFoundException(rc); in ImplDeleteSubKeyTree()
546 else if (ERROR_SUCCESS != rc) in ImplDeleteSubKeyTree()
547 throw RegistryException(rc); in ImplDeleteSubKeyTree()
549 return rc; in ImplDeleteSubKeyTree()
569 LONG rc = RegDeleteValueW( in DeleteValue() local
573 if (ERROR_INVALID_HANDLE == rc) in DeleteValue()
574 throw RegistryIOException(rc); in DeleteValue()
575 else if (ERROR_ACCESS_DENIED == rc) in DeleteValue()
576 throw RegistryNoWriteAccessException(rc); in DeleteValue()
577 else if (ERROR_FILE_NOT_FOUND == rc) in DeleteValue()
578 throw RegistryValueNotFoundException(rc); in DeleteValue()
579 else if (ERROR_SUCCESS != rc) in DeleteValue()
580 throw RegistryException(rc); in DeleteValue()
597 LONG rc = RegSetValueExW( in SetValue() local
605 if (ERROR_INVALID_HANDLE == rc) in SetValue()
606 throw RegistryIOException(rc); in SetValue()
607 else if (ERROR_ACCESS_DENIED == rc) in SetValue()
608 throw RegistryAccessDeniedException(rc); in SetValue()
609 else if (ERROR_SUCCESS != rc) in SetValue()
610 throw RegistryException(rc); in SetValue()