Comment: | OFWindowsRegistryKey: Support for binary values |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
65b31518fcbb7e0d3f9a289d06a43d27 |
User & Date: | js on 2019-02-10 23:58:30 |
Other Links: | manifest | tags |
2019-02-17
| ||
03:05 | runtime/linklib: Use CONSTRUCTOR_P on MorphOS check-in: 98e5c779c8 user: js tags: trunk | |
2019-02-10
| ||
23:58 | OFWindowsRegistryKey: Support for binary values check-in: 65b31518fc user: js tags: trunk | |
2019-02-09
| ||
17:44 | OFASN1*: Add designated initializer check-in: c60933a59b user: js tags: trunk | |
Modified src/OFDNSResolver.m from [037adc045f] to [2303b7b240].
︙ | |||
1199 1200 1201 1202 1203 1204 1205 | 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 | - + | [self of_setDefaults]; #if defined(OF_WINDOWS) # ifdef OF_HAVE_FILES path = [[OFWindowsRegistryKey localMachineKey] stringForValue: @"DataBasePath" |
︙ |
Modified src/OFWindowsRegistryKey.h from [a97b607515] to [e752ad4a7b].
︙ | |||
18 19 20 21 22 23 24 25 26 27 28 29 30 31 | 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | + + | #import "OFObject.h" #import "OFString.h" #include <windows.h> OF_ASSUME_NONNULL_BEGIN @class OFData; /*! * @class OFWindowsRegistryKey \ * OFWindowsRegistryKey.h ObjFW/OFWindowsRegistryKey.h */ @interface OFWindowsRegistryKey: OFObject { HKEY _hKey; |
︙ | |||
66 67 68 69 70 71 72 | 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 | - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - - - + + + + | * @return The OFWindowsRegistryKey for the HKEY_USERS key */ + (instancetype)usersKey; - (instancetype)init OF_UNAVAILABLE; /*! |
Modified src/OFWindowsRegistryKey.m from [4590e9ff33] to [d4e7766886].
︙ | |||
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | + + | * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" #import "OFWindowsRegistryKey.h" #import "OFData.h" #include <windows.h> #import "OFCreateWindowsRegistryKeyFailedException.h" #import "OFInvalidFormatException.h" #import "OFOpenWindowsRegistryKeyFailedException.h" #import "OFReadWindowsRegistryValueFailedException.h" @interface OFWindowsRegistryKey () - (instancetype)of_initWithHKey: (HKEY)hKey close: (bool)close; @end |
︙ | |||
160 161 162 163 164 165 166 | 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 | - + + - - - - + + + + - - + - - - - - - - - + - - - - - - + - - - - + + + + - + - - + - - - - - - + - - - + + + + + + + - - - - + - - - - - - + + + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | return [[[OFWindowsRegistryKey alloc] of_initWithHKey: subKey close: true] autorelease]; } - (OFString *)stringForValue: (OFString *)value |
Modified src/exceptions/OFCreateWindowsRegistryKeyFailedException.h from [76ae84142f] to [3f883dcbc0].
︙ | |||
36 37 38 39 40 41 42 | 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | - + - + - + - + - + - - - + + + - + - - - + + + - + | DWORD _options; REGSAM _securityAndAccessRights; LPSECURITY_ATTRIBUTES _Nullable _securityAttributes; LSTATUS _status; } /*! |
︙ |
Modified src/exceptions/OFCreateWindowsRegistryKeyFailedException.m from [9fce5e80ec] to [26992d06a4].
︙ | |||
77 78 79 80 81 82 83 | 77 78 79 80 81 82 83 84 85 86 87 | - + | [super dealloc]; } - (OFString *)description { return [OFString stringWithFormat: |
Modified src/exceptions/OFOpenWindowsRegistryKeyFailedException.h from [32884eb323] to [3f6ec7bdbe].
︙ | |||
36 37 38 39 40 41 42 | 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | - + - + - + - + - - - + + + - - - + + + | DWORD _options; REGSAM _securityAndAccessRights; LPSECURITY_ATTRIBUTES _Nullable _securityAttributes; LSTATUS _status; } /*! |
︙ |
Modified src/exceptions/OFOpenWindowsRegistryKeyFailedException.m from [5b80fd3032] to [1c8f2244f2].
︙ | |||
73 74 75 76 77 78 79 | 73 74 75 76 77 78 79 80 81 82 83 | - + | [super dealloc]; } - (OFString *)description { return [OFString stringWithFormat: |
Modified src/exceptions/OFReadWindowsRegistryValueFailedException.h from [91824bda00] to [aa62c3dfb2].
︙ | |||
28 29 30 31 32 33 34 | 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | - + - + - - + - + - + - + - + - + | * ObjFW/OFReadWindowsRegistryValueFailedException.h * * @brief An exception indicating that reading a Windows registry value failed. */ @interface OFReadWindowsRegistryValueFailedException: OFException { OFWindowsRegistryKey *_registryKey; |
Modified src/exceptions/OFReadWindowsRegistryValueFailedException.m from [6e76beaab3] to [e8e1f7712a].
︙ | |||
17 18 19 20 21 22 23 | 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | - + - + - + - + - + - + - - + + | #include "config.h" #import "OFReadWindowsRegistryValueFailedException.h" @implementation OFReadWindowsRegistryValueFailedException @synthesize registryKey = _registryKey, value = _value; |