@@ -53,6 +53,8 @@ This module offers the following functions:
5353 The return value is the handle of the opened key. If the function fails, an
5454 :exc: `OSError ` exception is raised.
5555
56+ .. audit-event :: winreg.ConnectRegistry computer_name,key winreg.ConnectRegistry
57+
5658 .. versionchanged :: 3.3
5759 See :ref: `above <exception-changed >`.
5860
@@ -75,6 +77,10 @@ This module offers the following functions:
7577 The return value is the handle of the opened key. If the function fails, an
7678 :exc: `OSError ` exception is raised.
7779
80+ .. audit-event :: winreg.CreateKey key,sub_key,access winreg.CreateKey
81+
82+ .. audit-event :: winreg.OpenKey/result key winreg.CreateKey
83+
7884 .. versionchanged :: 3.3
7985 See :ref: `above <exception-changed >`.
8086
@@ -103,6 +109,10 @@ This module offers the following functions:
103109 The return value is the handle of the opened key. If the function fails, an
104110 :exc: `OSError ` exception is raised.
105111
112+ .. audit-event :: winreg.CreateKey key,sub_key,access winreg.CreateKeyEx
113+
114+ .. audit-event :: winreg.OpenKey/result key winreg.CreateKeyEx
115+
106116 .. versionadded :: 3.2
107117
108118 .. versionchanged :: 3.3
@@ -124,6 +134,8 @@ This module offers the following functions:
124134 If the method succeeds, the entire key, including all of its values, is removed.
125135 If the method fails, an :exc: `OSError ` exception is raised.
126136
137+ .. audit-event :: winreg.DeleteKey key,sub_key,access winreg.DeleteKey
138+
127139 .. versionchanged :: 3.3
128140 See :ref: `above <exception-changed >`.
129141
@@ -158,6 +170,8 @@ This module offers the following functions:
158170
159171 On unsupported Windows versions, :exc: `NotImplementedError ` is raised.
160172
173+ .. audit-event :: winreg.DeleteKey key,sub_key,access winreg.DeleteKeyEx
174+
161175 .. versionadded :: 3.2
162176
163177 .. versionchanged :: 3.3
@@ -173,6 +187,8 @@ This module offers the following functions:
173187
174188 *value * is a string that identifies the value to remove.
175189
190+ .. audit-event :: winreg.DeleteValue key,value winreg.DeleteValue
191+
176192
177193.. function :: EnumKey(key, index)
178194
@@ -187,6 +203,8 @@ This module offers the following functions:
187203 typically called repeatedly until an :exc: `OSError ` exception is
188204 raised, indicating, no more values are available.
189205
206+ .. audit-event :: winreg.EnumKey key,index winreg.EnumKey
207+
190208 .. versionchanged :: 3.3
191209 See :ref: `above <exception-changed >`.
192210
@@ -220,6 +238,8 @@ This module offers the following functions:
220238 | | :meth: `SetValueEx `) |
221239 +-------+--------------------------------------------+
222240
241+ .. audit-event :: winreg.EnumValue key,index winreg.EnumValue
242+
223243 .. versionchanged :: 3.3
224244 See :ref: `above <exception-changed >`.
225245
@@ -235,6 +255,8 @@ This module offers the following functions:
235255 >>> ExpandEnvironmentStrings('%windir%')
236256 'C:\\Windows'
237257
258+ .. audit-event :: winreg.ExpandEnvironmentStrings str winreg.ExpandEnvironmentStrings
259+
238260
239261.. function :: FlushKey(key)
240262
@@ -279,6 +301,8 @@ This module offers the following functions:
279301 If *key * is a handle returned by :func: `ConnectRegistry `, then the path
280302 specified in *file_name * is relative to the remote computer.
281303
304+ .. audit-event :: winreg.LoadKey key,sub_key,file_name winreg.LoadKey
305+
282306
283307.. function :: OpenKey(key, sub_key, reserved=0, access=KEY_READ)
284308 OpenKeyEx(key, sub_key, reserved=0, access=KEY_READ)
@@ -300,6 +324,10 @@ This module offers the following functions:
300324
301325 If the function fails, :exc: `OSError ` is raised.
302326
327+ .. audit-event :: winreg.OpenKey key,sub_key,access winreg.OpenKey
328+
329+ .. audit-event :: winreg.OpenKey/result key winreg.OpenKey
330+
303331 .. versionchanged :: 3.2
304332 Allow the use of named arguments.
305333
@@ -330,6 +358,8 @@ This module offers the following functions:
330358 | | nanoseconds since Jan 1, 1601. |
331359 +-------+---------------------------------------------+
332360
361+ .. audit-event :: winreg.QueryInfoKey key winreg.QueryInfoKey
362+
333363
334364.. function :: QueryValue(key, sub_key)
335365
@@ -347,6 +377,8 @@ This module offers the following functions:
347377 underlying API call doesn't return the type, so always use
348378 :func: `QueryValueEx ` if possible.
349379
380+ .. audit-event :: winreg.QueryValue key,sub_key,value_name winreg.QueryValue
381+
350382
351383.. function :: QueryValueEx(key, value_name)
352384
@@ -370,6 +402,8 @@ This module offers the following functions:
370402 | | :meth: `SetValueEx `) |
371403 +-------+-----------------------------------------+
372404
405+ .. audit-event :: winreg.QueryValue key,sub_key,value_name winreg.QueryValueEx
406+
373407
374408.. function :: SaveKey(key, file_name)
375409
@@ -393,6 +427,8 @@ This module offers the following functions:
393427
394428 This function passes ``NULL `` for *security_attributes * to the API.
395429
430+ .. audit-event :: winreg.SaveKey key,file_name winreg.SaveKey
431+
396432
397433.. function :: SetValue(key, sub_key, type, value)
398434
@@ -419,6 +455,8 @@ This module offers the following functions:
419455 The key identified by the *key * parameter must have been opened with
420456 :const: `KEY_SET_VALUE ` access.
421457
458+ .. audit-event :: winreg.SetValue key,sub_key,type,value winreg.SetValue
459+
422460
423461.. function :: SetValueEx(key, value_name, reserved, type, value)
424462
@@ -447,6 +485,8 @@ This module offers the following functions:
447485 bytes) should be stored as files with the filenames stored in the configuration
448486 registry. This helps the registry perform efficiently.
449487
488+ .. audit-event :: winreg.SetValue key,sub_key,type,value winreg.SetValueEx
489+
450490
451491.. function :: DisableReflectionKey(key)
452492
@@ -463,6 +503,8 @@ This module offers the following functions:
463503 effect. Disabling reflection for a key does not affect reflection of any
464504 subkeys.
465505
506+ .. audit-event :: winreg.DisableReflectionKey key winreg.DisableReflectionKey
507+
466508
467509.. function :: EnableReflectionKey(key)
468510
@@ -476,6 +518,8 @@ This module offers the following functions:
476518
477519 Restoring reflection for a key does not affect reflection of any subkeys.
478520
521+ .. audit-event :: winreg.EnableReflectionKey key winreg.EnableReflectionKey
522+
479523
480524.. function :: QueryReflectionKey(key)
481525
@@ -489,6 +533,8 @@ This module offers the following functions:
489533 Will generally raise :exc: `NotImplementedError ` if executed on a 32-bit
490534 operating system.
491535
536+ .. audit-event :: winreg.QueryReflectionKey key winreg.QueryReflectionKey
537+
492538
493539.. _constants :
494540
@@ -741,6 +787,9 @@ integer handle, and also disconnect the Windows handle from the handle object.
741787 handle is not closed. You would call this function when you need the
742788 underlying Win32 handle to exist beyond the lifetime of the handle object.
743789
790+ .. audit-event :: winreg.PyHKEY.Detach key winreg.PyHKEY.Detach
791+
792+
744793.. method :: PyHKEY.__enter__()
745794 PyHKEY.__exit__(\* exc_info)
746795
0 commit comments