@@ -72,66 +72,43 @@ /** * @brief Opens the subkey at the specified path. * * @param path The path of the subkey to open - * @param securityAndAccessRights Please refer to the `RegOpenKeyEx()` - * documentation for `samDesired` - * @return The subkey with the specified path - */ -- (OFWindowsRegistryKey *)openSubkeyAtPath: (OFString *)path - securityAndAccessRights: (REGSAM)securityAndAccessRights; - -/** - * @brief Opens the subkey at the specified path. - * - * @param path The path of the subkey to open - * @param options Please refer to the `RegOpenKeyEx()` documentation for - * `ulOptions`. Usually 0. - * @param securityAndAccessRights Please refer to the `RegOpenKeyEx()` - * documentation for `samDesired` - * @return The subkey with the specified path - */ -- (OFWindowsRegistryKey *)openSubkeyAtPath: (OFString *)path - options: (DWORD)options - securityAndAccessRights: (REGSAM)securityAndAccessRights; - -/** - * @brief Creates a subkey at the specified path or opens it if it already - * exists. - * - * @param path The path of the subkey to create - * @param securityAndAccessRights Please refer to the `RegCreateKeyEx()` - * documentation for `samDesired` - * @return The subkey with the specified path - */ -- (OFWindowsRegistryKey *)createSubkeyAtPath: (OFString *)path - securityAndAccessRights: (REGSAM)securityAndAccessRights; - -/** - * @brief Creates a subkey at the specified path or opens it if it already - * exists. - * - * @param path The path of the subkey to create - * @param options Please refer to the `RegCreateKeyEx()` documentation. - * Usually 0. - * @param securityAndAccessRights Please refer to the `RegCreateKeyEx()` - * documentation for `samDesired` - * @param securityAttributes Please refer to the `RegCreateKeyEx()` - * documentation for `lpSecurityAttributes`. Usually - * NULL. - * @param disposition Whether the key was created or already existed. Please - * refer to the `RegCreateKeyEx()` documentation for - * `lpdwDisposition`. - * @return The subkey with the specified path - */ -- (OFWindowsRegistryKey *) - createSubkeyAtPath: (OFString *)path - options: (DWORD)options - securityAndAccessRights: (REGSAM)securityAndAccessRights - securityAttributes: (nullable SECURITY_ATTRIBUTES *)securityAttributes - disposition: (nullable DWORD *)disposition; + * @param accessRights Please refer to the `RegOpenKeyEx()` documentation for + * `samDesired` + * @param options Please refer to the `RegOpenKeyEx()` documentation for + * `ulOptions`. Usually 0. + * @return The subkey with the specified path + */ +- (OFWindowsRegistryKey *)openSubkeyAtPath: (OFString *)path + accessRights: (REGSAM)accessRights + options: (DWORD)options; +/** + * @brief Creates a subkey at the specified path or opens it if it already + * exists. + * + * @param path The path of the subkey to create + * @param accessRights Please refer to the `RegCreateKeyEx()` documentation for + * `samDesired` + * @param securityAttributes Please refer to the `RegCreateKeyEx()` + * documentation for `lpSecurityAttributes`. Usually + * NULL. + * @param options Please refer to the `RegCreateKeyEx()` documentation for + * `dwOptions`. Usually 0. + * @param disposition A pointer to a variable that will be set to whether the + * key was created or already existed, or `NULL`. Please + * refer to the `RegCreateKeyEx()` documentation for + * `lpdwDisposition`. + * @return The subkey with the specified path + */ +- (OFWindowsRegistryKey *) + createSubkeyAtPath: (OFString *)path + accessRights: (REGSAM)accessRights + securityAttributes: (nullable SECURITY_ATTRIBUTES *)securityAttributes + options: (DWORD)options + disposition: (nullable DWORD *)disposition; /** * @brief Returns the data for the specified value at the specified path. * * @param name The name of the value to return