@@ -53,6 +53,8 @@ This module offers the following functions:
53
53
The return value is the handle of the opened key. If the function fails, an
54
54
:exc: `OSError ` exception is raised.
55
55
56
+ .. audit-event :: winreg.ConnectRegistry computer_name,key winreg.ConnectRegistry
57
+
56
58
.. versionchanged :: 3.3
57
59
See :ref: `above <exception-changed >`.
58
60
@@ -75,6 +77,10 @@ This module offers the following functions:
75
77
The return value is the handle of the opened key. If the function fails, an
76
78
:exc: `OSError ` exception is raised.
77
79
80
+ .. audit-event :: winreg.CreateKey key,sub_key,access winreg.CreateKey
81
+
82
+ .. audit-event :: winreg.OpenKey/result key winreg.CreateKey
83
+
78
84
.. versionchanged :: 3.3
79
85
See :ref: `above <exception-changed >`.
80
86
@@ -103,6 +109,10 @@ This module offers the following functions:
103
109
The return value is the handle of the opened key. If the function fails, an
104
110
:exc: `OSError ` exception is raised.
105
111
112
+ .. audit-event :: winreg.CreateKey key,sub_key,access winreg.CreateKeyEx
113
+
114
+ .. audit-event :: winreg.OpenKey/result key winreg.CreateKeyEx
115
+
106
116
.. versionadded :: 3.2
107
117
108
118
.. versionchanged :: 3.3
@@ -124,6 +134,8 @@ This module offers the following functions:
124
134
If the method succeeds, the entire key, including all of its values, is removed.
125
135
If the method fails, an :exc: `OSError ` exception is raised.
126
136
137
+ .. audit-event :: winreg.DeleteKey key,sub_key,access winreg.DeleteKey
138
+
127
139
.. versionchanged :: 3.3
128
140
See :ref: `above <exception-changed >`.
129
141
@@ -158,6 +170,8 @@ This module offers the following functions:
158
170
159
171
On unsupported Windows versions, :exc: `NotImplementedError ` is raised.
160
172
173
+ .. audit-event :: winreg.DeleteKey key,sub_key,access winreg.DeleteKeyEx
174
+
161
175
.. versionadded :: 3.2
162
176
163
177
.. versionchanged :: 3.3
@@ -173,6 +187,8 @@ This module offers the following functions:
173
187
174
188
*value * is a string that identifies the value to remove.
175
189
190
+ .. audit-event :: winreg.DeleteValue key,value winreg.DeleteValue
191
+
176
192
177
193
.. function :: EnumKey(key, index)
178
194
@@ -187,6 +203,8 @@ This module offers the following functions:
187
203
typically called repeatedly until an :exc: `OSError ` exception is
188
204
raised, indicating, no more values are available.
189
205
206
+ .. audit-event :: winreg.EnumKey key,index winreg.EnumKey
207
+
190
208
.. versionchanged :: 3.3
191
209
See :ref: `above <exception-changed >`.
192
210
@@ -220,6 +238,8 @@ This module offers the following functions:
220
238
| | :meth: `SetValueEx `) |
221
239
+-------+--------------------------------------------+
222
240
241
+ .. audit-event :: winreg.EnumValue key,index winreg.EnumValue
242
+
223
243
.. versionchanged :: 3.3
224
244
See :ref: `above <exception-changed >`.
225
245
@@ -235,6 +255,8 @@ This module offers the following functions:
235
255
>>> ExpandEnvironmentStrings('%windir%')
236
256
'C:\\Windows'
237
257
258
+ .. audit-event :: winreg.ExpandEnvironmentStrings str winreg.ExpandEnvironmentStrings
259
+
238
260
239
261
.. function :: FlushKey(key)
240
262
@@ -279,6 +301,8 @@ This module offers the following functions:
279
301
If *key * is a handle returned by :func: `ConnectRegistry `, then the path
280
302
specified in *file_name * is relative to the remote computer.
281
303
304
+ .. audit-event :: winreg.LoadKey key,sub_key,file_name winreg.LoadKey
305
+
282
306
283
307
.. function :: OpenKey(key, sub_key, reserved=0, access=KEY_READ)
284
308
OpenKeyEx(key, sub_key, reserved=0, access=KEY_READ)
@@ -300,6 +324,10 @@ This module offers the following functions:
300
324
301
325
If the function fails, :exc: `OSError ` is raised.
302
326
327
+ .. audit-event :: winreg.OpenKey key,sub_key,access winreg.OpenKey
328
+
329
+ .. audit-event :: winreg.OpenKey/result key winreg.OpenKey
330
+
303
331
.. versionchanged :: 3.2
304
332
Allow the use of named arguments.
305
333
@@ -330,6 +358,8 @@ This module offers the following functions:
330
358
| | nanoseconds since Jan 1, 1601. |
331
359
+-------+---------------------------------------------+
332
360
361
+ .. audit-event :: winreg.QueryInfoKey key winreg.QueryInfoKey
362
+
333
363
334
364
.. function :: QueryValue(key, sub_key)
335
365
@@ -347,6 +377,8 @@ This module offers the following functions:
347
377
underlying API call doesn't return the type, so always use
348
378
:func: `QueryValueEx ` if possible.
349
379
380
+ .. audit-event :: winreg.QueryValue key,sub_key,value_name winreg.QueryValue
381
+
350
382
351
383
.. function :: QueryValueEx(key, value_name)
352
384
@@ -370,6 +402,8 @@ This module offers the following functions:
370
402
| | :meth: `SetValueEx `) |
371
403
+-------+-----------------------------------------+
372
404
405
+ .. audit-event :: winreg.QueryValue key,sub_key,value_name winreg.QueryValueEx
406
+
373
407
374
408
.. function :: SaveKey(key, file_name)
375
409
@@ -393,6 +427,8 @@ This module offers the following functions:
393
427
394
428
This function passes ``NULL `` for *security_attributes * to the API.
395
429
430
+ .. audit-event :: winreg.SaveKey key,file_name winreg.SaveKey
431
+
396
432
397
433
.. function :: SetValue(key, sub_key, type, value)
398
434
@@ -419,6 +455,8 @@ This module offers the following functions:
419
455
The key identified by the *key * parameter must have been opened with
420
456
:const: `KEY_SET_VALUE ` access.
421
457
458
+ .. audit-event :: winreg.SetValue key,sub_key,type,value winreg.SetValue
459
+
422
460
423
461
.. function :: SetValueEx(key, value_name, reserved, type, value)
424
462
@@ -447,6 +485,8 @@ This module offers the following functions:
447
485
bytes) should be stored as files with the filenames stored in the configuration
448
486
registry. This helps the registry perform efficiently.
449
487
488
+ .. audit-event :: winreg.SetValue key,sub_key,type,value winreg.SetValueEx
489
+
450
490
451
491
.. function :: DisableReflectionKey(key)
452
492
@@ -463,6 +503,8 @@ This module offers the following functions:
463
503
effect. Disabling reflection for a key does not affect reflection of any
464
504
subkeys.
465
505
506
+ .. audit-event :: winreg.DisableReflectionKey key winreg.DisableReflectionKey
507
+
466
508
467
509
.. function :: EnableReflectionKey(key)
468
510
@@ -476,6 +518,8 @@ This module offers the following functions:
476
518
477
519
Restoring reflection for a key does not affect reflection of any subkeys.
478
520
521
+ .. audit-event :: winreg.EnableReflectionKey key winreg.EnableReflectionKey
522
+
479
523
480
524
.. function :: QueryReflectionKey(key)
481
525
@@ -489,6 +533,8 @@ This module offers the following functions:
489
533
Will generally raise :exc: `NotImplementedError ` if executed on a 32-bit
490
534
operating system.
491
535
536
+ .. audit-event :: winreg.QueryReflectionKey key winreg.QueryReflectionKey
537
+
492
538
493
539
.. _constants :
494
540
@@ -741,6 +787,9 @@ integer handle, and also disconnect the Windows handle from the handle object.
741
787
handle is not closed. You would call this function when you need the
742
788
underlying Win32 handle to exist beyond the lifetime of the handle object.
743
789
790
+ .. audit-event :: winreg.PyHKEY.Detach key winreg.PyHKEY.Detach
791
+
792
+
744
793
.. method :: PyHKEY.__enter__()
745
794
PyHKEY.__exit__(\* exc_info)
746
795
0 commit comments