21#import "OFWindowsRegistryKey.h"
25OF_ASSUME_NONNULL_BEGIN
35 OFWindowsRegistryKey *_registryKey;
46@property (readonly, nonatomic) OFWindowsRegistryKey *
registryKey;
56@property OF_NULLABLE_PROPERTY (readonly, nonatomic)
OFData *
data;
61@property (readonly, nonatomic) DWORD
type;
66@property (readonly, nonatomic) LSTATUS
status;
79+ (instancetype)exceptionWithRegistryKey: (OFWindowsRegistryKey *)registryKey
80 valueName: (nullable
OFString *)valueName
81 data: (nullable
OFData *)data
83 status: (LSTATUS)status;
85- (instancetype)
init OF_UNAVAILABLE;
98- (instancetype)initWithRegistryKey: (OFWindowsRegistryKey *)registryKey
99 valueName: (nullable
OFString *)valueName
100 data: (nullable
OFData *)data
102 status: (LSTATUS)status OF_DESIGNATED_INITIALIZER;
A class for storing arbitrary data in an array.
Definition OFData.h:46
The base class for all exceptions in ObjFW.
Definition OFException.h:157
instancetype init()
Initializes an already allocated object.
Definition OFObject.m:696
An exception indicating that setting a Windows registry value failed.
Definition OFSetWindowsRegistryValueFailedException.h:34
OFData * data
The data to which the value could not be set.
Definition OFSetWindowsRegistryValueFailedException.h:56
OFWindowsRegistryKey * registryKey
The registry key on which setting the value failed.
Definition OFSetWindowsRegistryValueFailedException.h:46
LSTATUS status
The status returned by RegSetValueEx().
Definition OFSetWindowsRegistryValueFailedException.h:66
OFString * valueName
The name of the value which could not be set.
Definition OFSetWindowsRegistryValueFailedException.h:51
DWORD type
The type for the value that could not be set.
Definition OFSetWindowsRegistryValueFailedException.h:61
A class for handling strings.
Definition OFString.h:143