1818
1919#include <windows.h>
2020
21+ #define MS_WINDOWS_GAMES // TODO(aisk): DELETE THIS
2122#if defined(MS_WINDOWS_DESKTOP ) || defined(MS_WINDOWS_SYSTEM ) || defined(MS_WINDOWS_GAMES )
2223
2324typedef struct {
@@ -1411,7 +1412,9 @@ winreg.OpenKey -> HKEY
14111412 sub_key: Py_UNICODE(accept={str, NoneType})
14121413 A string that identifies the sub_key to open.
14131414 reserved: int = 0
1414- A reserved integer that must be zero. Default is zero.
1415+ A reserved integer that be should zero. If it is not zero,
1416+ it will be used as the options parameter in OpenKeyEx.
1417+ You should use OpenKeyEx directly in this case.
14151418 access: REGSAM(c_default='KEY_READ') = winreg.KEY_READ
14161419 An integer that specifies an access mask that describes the desired
14171420 security access for the key. Default is KEY_READ.
@@ -1425,9 +1428,9 @@ If the function fails, an OSError exception is raised.
14251428static HKEY
14261429winreg_OpenKey_impl (PyObject * module , HKEY key , const wchar_t * sub_key ,
14271430 int reserved , REGSAM access )
1428- /*[clinic end generated code: output=5efbad23b3ffe2e7 input=a2fb7586bbed3b01 ]*/
1431+ /*[clinic end generated code: output=5efbad23b3ffe2e7 input=8bafb91546317c8e ]*/
14291432{
1430- return winreg_OpenKeyEx_impl (module , key , sub_key , reserved , access , 0 );
1433+ return winreg_OpenKeyEx_impl (module , key , sub_key , 0 , access , reserved );
14311434}
14321435
14331436/*[clinic input]
0 commit comments