21#import "OFWindowsRegistryKey.h"
25OF_ASSUME_NONNULL_BEGIN
35 OFWindowsRegistryKey *_registryKey;
38 LPSECURITY_ATTRIBUTES _Nullable _securityAttributes;
47@property (readonly, nonatomic) OFWindowsRegistryKey *
registryKey;
62@property (readonly, nonatomic) DWORD
options;
67@property (readonly, nonatomic) LSTATUS
status;
81+ (instancetype)exceptionWithRegistryKey: (OFWindowsRegistryKey *)registryKey
83 accessRights: (REGSAM)accessRights
84 options: (DWORD)options
85 status: (LSTATUS)status;
101- (instancetype)initWithRegistryKey: (OFWindowsRegistryKey *)registryKey
103 accessRights: (REGSAM)accessRights
104 options: (DWORD)options
105 status: (LSTATUS)status OF_DESIGNATED_INITIALIZER;
107- (instancetype)
init OF_UNAVAILABLE;
The base class for all exceptions in ObjFW.
Definition OFException.h:157
instancetype exception()
Creates a new, autoreleased exception.
Definition OFException.m:283
instancetype init()
Initializes an already allocated object.
Definition OFObject.m:696
An exception indicating that opening a Windows registry key failed.
Definition OFOpenWindowsRegistryKeyFailedException.h:34
OFWindowsRegistryKey * registryKey
The registry key on which opening the subkey failed.
Definition OFOpenWindowsRegistryKeyFailedException.h:47
REGSAM accessRights
The access rights for the subkey that could not be opened.
Definition OFOpenWindowsRegistryKeyFailedException.h:57
LSTATUS status
The status returned by RegOpenKeyEx().
Definition OFOpenWindowsRegistryKeyFailedException.h:67
DWORD options
The options for the subkey that could not be opened.
Definition OFOpenWindowsRegistryKeyFailedException.h:62
OFString * path
The path for the subkey that could not be opened.
Definition OFOpenWindowsRegistryKeyFailedException.h:52
A class for handling strings.
Definition OFString.h:143