@@ -378,7 +378,8 @@ This module offers the following functions:
378378
379379.. function :: QueryValue(key, sub_key)
380380
381- Retrieves the unnamed value for a key, as a string.
381+ Retrieves the unnamed value for a key. This function only works with
382+ :const: `REG_SZ ` type values and always returns a :class: `str `.
382383
383384 *key * is an already open key, or one of the predefined
384385 :ref: `HKEY_* constants <hkey-constants >`.
@@ -389,8 +390,8 @@ This module offers the following functions:
389390
390391 Values in the registry have name, type, and data components. This method
391392 retrieves the data for a key's first value that has a ``NULL `` name. But the
392- underlying API call doesn't return the type, so always use
393- :func: `QueryValueEx ` if possible.
393+ underlying API call doesn't return the type and only supports :const: ` REG_SZ `,
394+ so always use :func: `QueryValueEx ` if possible.
394395
395396 .. audit-event :: winreg.QueryValue key,sub_key,value_name winreg.QueryValue
396397
@@ -410,11 +411,13 @@ This module offers the following functions:
410411 +-------+-----------------------------------------+
411412 | Index | Meaning |
412413 +=======+=========================================+
413- | ``0 `` | The value of the registry item. |
414+ | ``0 `` | The value of the registry item. The |
415+ | | type depends on the registry type (see |
416+ | | :ref: `Value Types <value-types >`). |
414417 +-------+-----------------------------------------+
415418 | ``1 `` | An integer giving the registry type for |
416- | | this value (see table in docs for |
417- | | :meth: ` SetValueEx `) |
419+ | | this value (see :ref: ` Value Types |
420+ | | <value-types>`). |
418421 +-------+-----------------------------------------+
419422
420423 .. audit-event :: winreg.QueryValue key,sub_key,value_name winreg.QueryValueEx
0 commit comments