@@ -82,10 +82,18 @@ if (_close) RegCloseKey(_hKey); [super dealloc]; } + +- (OFWindowsRegistryKey *)openSubKeyWithPath: (OFString *)path + securityAndAccessRights: (REGSAM)securityAndAccessRights +{ + return [self openSubKeyWithPath: path + options: 0 + securityAndAccessRights: securityAndAccessRights]; +} - (OFWindowsRegistryKey *)openSubKeyWithPath: (OFString *)path options: (DWORD)options securityAndAccessRights: (REGSAM)securityAndAccessRights { @@ -112,10 +120,21 @@ return [[[OFWindowsRegistryKey alloc] of_initWithHKey: subKey close: true] autorelease]; } + +- (OFWindowsRegistryKey *) + createSubKeyWithPath: (OFString *)path + securityAndAccessRights: (REGSAM)securityAndAccessRights +{ + return [self createSubKeyWithPath: path + options: 0 + securityAndAccessRights: securityAndAccessRights + securityAttributes: NULL + disposition: NULL]; +} - (OFWindowsRegistryKey *) createSubKeyWithPath: (OFString *)path options: (DWORD)options securityAndAccessRights: (REGSAM)securityAndAccessRights @@ -141,10 +160,19 @@ return [[[OFWindowsRegistryKey alloc] of_initWithHKey: subKey close: true] autorelease]; } + +- (OFString *)stringForValue: (OFString *)value + subKeyPath: (OFString *)subKeyPath +{ + return [self stringForValue: value + subKeyPath: subKeyPath + flags: 0 + type: NULL]; +} - (OFString *)stringForValue: (OFString *)value subKeyPath: (OFString *)subKeyPath flags: (DWORD)flags type: (LPDWORD)type