| 39 | } |
| 40 | |
| 41 | void RegistryKey::Attach(HKEY hKey, bool own) { |
| 42 | Close(); |
| 43 | _hKey = hKey; |
| 44 | _own = own; |
| 45 | ATLASSERT(IsValid()); |
| 46 | CheckPredefinedKey(); |
| 47 | } |
| 48 | |
| 49 | bool RegistryKey::IsValid() const { |
| 50 | return Registry::IsKeyValid(_hKey); |
no outgoing calls
no test coverage detected