py2docfx 0.1.13.dev2016838__py3-none-any.whl → 0.1.13.dev2021865__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/_modified.py +26 -4
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/_msvccompiler.py +2 -603
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/archive_util.py +48 -18
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/ccompiler.py +17 -1257
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/cmd.py +133 -41
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/bdist.py +19 -8
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/bdist_dumb.py +2 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/bdist_rpm.py +6 -5
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build.py +8 -4
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_clib.py +8 -7
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_ext.py +32 -13
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_py.py +10 -9
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_scripts.py +3 -14
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/check.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/clean.py +2 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/config.py +1 -8
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install.py +22 -19
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install_data.py +4 -3
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install_headers.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install_lib.py +11 -7
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install_scripts.py +4 -3
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/sdist.py +22 -16
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compat/__init__.py +6 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/base.py +1391 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/cygwin.py +340 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/errors.py +24 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/msvc.py +614 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/{tests/test_ccompiler.py → compilers/C/tests/test_base.py} +9 -19
- py2docfx/venv/{venv1/Lib/site-packages/setuptools/_distutils/tests/test_cygwinccompiler.py → basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/tests/test_cygwin.py} +7 -12
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/{tests/test_mingwccompiler.py → compilers/C/tests/test_mingw.py} +12 -20
- py2docfx/venv/{venv1/Lib/site-packages/setuptools/_distutils/tests/test_msvccompiler.py → basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/tests/test_msvc.py} +11 -12
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/{tests/test_unixccompiler.py → compilers/C/tests/test_unix.py} +5 -5
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/unix.py +409 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/zos.py +230 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/cygwinccompiler.py +20 -328
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/dist.py +148 -80
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/errors.py +11 -27
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/extension.py +19 -16
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/filelist.py +80 -15
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/spawn.py +22 -5
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/sysconfig.py +32 -7
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/tests/test_build_ext.py +13 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/tests/test_sdist.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/unixccompiler.py +2 -401
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/util.py +38 -23
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/zosccompiler.py +2 -228
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_static.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/editable_wheel.py +3 -3
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/install.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/config/test_setupcfg.py +2 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_build_py.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/unicode_utils.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/__init__.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/ado_consts.py +3 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/adodbapi.py +22 -26
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/apibase.py +3 -4
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/examples/db_print.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/examples/db_table_names.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/process_connect_string.py +7 -7
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/setup.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/adodbapitest.py +21 -73
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/adodbapitestconfig.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/dbapi20.py +11 -17
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/setuptestframework.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/isapi/install.py +8 -11
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector_asynch.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector_with_filter.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/isapi/simple.py +1 -0
- py2docfx/venv/venv1/Lib/site-packages/isapi/threaded_extension.py +1 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/basictimerapp.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/customprint.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/demoutils.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/cmdserver.py +2 -5
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/guidemo.py +14 -41
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/objdoc.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/demoutils.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/flash.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/ocxserialtest.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/ocxtest.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/webbrowser.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/openGLDemo.py +57 -12
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/toolbar.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/configui.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/dbgcon.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/debugger.py +7 -8
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/fail.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/ideoptions.py +7 -10
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/list.py +11 -8
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/login.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/docking/DockingBar.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/app.py +19 -22
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/dbgcommands.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/ModuleBrowser.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/__init__.py +3 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/document.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/editor.py +6 -6
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/vss.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/help.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/interact.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/intpyapp.py +5 -7
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/intpydde.py +7 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/scriptutils.py +4 -6
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/sgrepmdi.py +13 -22
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/startup.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/stdin.py +1 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/toolmenu.py +0 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/AutoIndent.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/CallTips.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/activex.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/dialog.py +7 -10
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/IDLEenvironment.py +1 -5
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/bindings.py +4 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/config.py +3 -5
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/configui.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/document.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/formatter.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/keycodes.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/scintillacon.py +1178 -78
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/view.py +17 -21
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/browser.py +6 -18
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/hierlist.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/_modified.py +26 -4
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/_msvccompiler.py +2 -603
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/archive_util.py +48 -18
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/ccompiler.py +17 -1257
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/cmd.py +133 -41
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/bdist.py +19 -8
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/bdist_dumb.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/bdist_rpm.py +6 -5
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build.py +8 -4
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_clib.py +8 -7
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_ext.py +32 -13
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_py.py +10 -9
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_scripts.py +3 -14
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/check.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/clean.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/config.py +1 -8
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install.py +22 -19
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install_data.py +4 -3
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install_headers.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install_lib.py +11 -7
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install_scripts.py +4 -3
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/sdist.py +22 -16
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compat/__init__.py +6 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/base.py +1391 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/cygwin.py +340 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/errors.py +24 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/msvc.py +614 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/{tests/test_ccompiler.py → compilers/C/tests/test_base.py} +9 -19
- py2docfx/venv/{basevenv/Lib/site-packages/setuptools/_distutils/tests/test_cygwinccompiler.py → venv1/Lib/site-packages/setuptools/_distutils/compilers/C/tests/test_cygwin.py} +7 -12
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/{tests/test_mingwccompiler.py → compilers/C/tests/test_mingw.py} +12 -20
- py2docfx/venv/{basevenv/Lib/site-packages/setuptools/_distutils/tests/test_msvccompiler.py → venv1/Lib/site-packages/setuptools/_distutils/compilers/C/tests/test_msvc.py} +11 -12
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/{tests/test_unixccompiler.py → compilers/C/tests/test_unix.py} +5 -5
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/unix.py +409 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/zos.py +230 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/cygwinccompiler.py +20 -328
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/dist.py +148 -80
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/errors.py +11 -27
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/extension.py +19 -16
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/filelist.py +80 -15
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/spawn.py +22 -5
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/sysconfig.py +32 -7
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/tests/test_build_ext.py +13 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/tests/test_sdist.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/unixccompiler.py +2 -401
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/util.py +38 -23
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/zosccompiler.py +2 -228
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_static.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/editable_wheel.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/install.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/config/test_setupcfg.py +2 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_build_py.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/unicode_utils.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/EvtFormatMessage.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/EvtSubscribe_push.py +8 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/GetSaveFileName.py +8 -8
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/c_extension/setup.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/dde/ddeclient.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/dde/ddeserver.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/getfilever.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/pipes/runproc.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/rastest.py +4 -6
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/GetTokenInformation.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/account_rights.py +0 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/explicit_entries.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/get_policy_info.py +0 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/list_rights.py +0 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/localized_names.py +7 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/query_information.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_file_audit.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_file_owner.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_policy_info.py +0 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setkernelobjectsecurity.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setsecurityinfo.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setuserobjectsecurity.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/fetch_url.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/simple_auth.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/socket_server.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/service/pipeTestService.py +10 -9
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/service/pipeTestServiceClient.py +6 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32clipboardDemo.py +17 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32comport_demo.py +32 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32console_demo.py +1 -4
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_devicenotify.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_menu.py +60 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_taskbar.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32netdemo.py +2 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32ts_logoff_disconnected.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32wnet/testwnet.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/commctrl.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/netbios.py +8 -10
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywin32_bootstrap.py +2 -10
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywin32_testutil.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywintypes.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/regutil.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/sspi.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win2kras.py +14 -7
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32con.py +16 -35
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32cryptcon.py +1 -4
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32evtlogutil.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32gui_struct.py +6 -6
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32pdhquery.py +10 -11
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32pdhutil.py +5 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32rcparser.py +1 -0
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32serviceutil.py +4 -6
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32timezone.py +304 -121
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32verstamp.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/winerror.py +4926 -604
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/winxptheme.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/h2py.py +194 -0
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/pywin32_postinstall.py +733 -0
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/pywin32_testall.py +120 -0
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/regsetup.py +4 -7
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/setup_d.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/handles.py +13 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_clipboard.py +12 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_sspi.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32api.py +8 -4
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32clipboard.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32cred.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32crypt.py +16 -3
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32file.py +24 -8
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32gui.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32guistruct.py +2 -5
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32inet.py +23 -6
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32net.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32ts.py +19 -0
- py2docfx/venv/venv1/Lib/site-packages/win32/winxpgui.py +3 -11
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/CLSIDToClass.py +3 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/__init__.py +97 -65
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/build.py +24 -24
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/combrowse.py +17 -33
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/dynamic.py +14 -14
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/gencache.py +30 -12
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/genpy.py +50 -98
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/makepy.py +12 -8
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/selecttlb.py +3 -4
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/util.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/dump_clipboard.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/excelAddin.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/excelRTDServer.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/iebutton.py +0 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/ietoolbar.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/outlookAddin.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegw.py +48 -56
- py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegwenum.py +2 -6
- py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegwparse.py +9 -11
- py2docfx/venv/venv1/Lib/site-packages/win32com/olectl.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/connect.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/dispatcher.py +20 -24
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/exception.py +8 -8
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/policy.py +4 -18
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/register.py +5 -6
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/dictionary.py +2 -5
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/interp.py +7 -7
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/test_pycomtest.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/GenTestScripts.py +2 -4
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/errorSemantics.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/pippo_server.py +1 -4
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testADOEvents.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testAXScript.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testDictionary.py +4 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testDynamic.py +3 -5
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testExchange.py +2 -7
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testGatewayAddresses.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testIterators.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testMSOffice.py +40 -57
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testMSOfficeEvents.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPersist.py +7 -7
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPippo.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPyComTest.py +143 -7
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testServers.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testall.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testmakepy.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testvb.py +12 -8
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/util.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/universal.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/win32com/util.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/demos/scp.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/demos/search.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/authorization/demos/EditSecurity.py +1 -24
- py2docfx/venv/venv1/Lib/site-packages/win32comext/authorization/demos/EditServiceSecurity.py +0 -20
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/adb.py +2 -8
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/codecontainer.py +16 -12
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/contexts.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/debugger.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/documents.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/dump.py +2 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/expressions.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/util.py +7 -14
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/debug.py +2 -14
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/error.py +4 -5
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/framework.py +5 -5
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/pydumper.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/pyscript.py +5 -10
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/scriptdispatch.py +3 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/server/axsite.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/test/leakTest.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/test/testHost4Dbg.py +0 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/bits/test/test_bits.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/ifilter/demo/filterDemo.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/demos/mapisend.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/emsabtags.py +1 -0
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/mapitags.py +1 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/mapiutil.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/propsys/test/testpropsys.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/IFileOperationProgressSink.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/ITransferAdviseSink.py +5 -3
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/column_provider.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/copy_hook.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/empty_volume_cache.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/folder_view.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/icon_handler.py +1 -2
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/shell_view.py +4 -5
- py2docfx/venv/venv1/Lib/site-packages/win32comext/taskscheduler/test/test_addtask_2.py +0 -1
- py2docfx/venv/venv1/Scripts/pywin32_postinstall.py +77 -122
- py2docfx/venv/venv1/Scripts/pywin32_testall.py +4 -9
- {py2docfx-0.1.13.dev2016838.dist-info → py2docfx-0.1.13.dev2021865.dist-info}/METADATA +1 -1
- {py2docfx-0.1.13.dev2016838.dist-info → py2docfx-0.1.13.dev2021865.dist-info}/RECORD +342 -330
- py2docfx/venv/venv1/Lib/site-packages/docs/conf.py +0 -384
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/mdi_pychecker.py +0 -850
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testNetscape.py +0 -24
- {py2docfx-0.1.13.dev2016838.dist-info → py2docfx-0.1.13.dev2021865.dist-info}/WHEEL +0 -0
- {py2docfx-0.1.13.dev2016838.dist-info → py2docfx-0.1.13.dev2021865.dist-info}/top_level.txt +0 -0
@@ -27,7 +27,6 @@ import traceback
|
|
27
27
|
|
28
28
|
import sspi
|
29
29
|
import win32api
|
30
|
-
import win32security
|
31
30
|
|
32
31
|
options = None # set to optparse object.
|
33
32
|
|
@@ -96,7 +95,7 @@ class SSPISocketServer(socketserver.TCPServer):
|
|
96
95
|
if data is None or key is None:
|
97
96
|
break
|
98
97
|
data = self.sa.decrypt(data, key)
|
99
|
-
print("Client sent:
|
98
|
+
print(f"Client sent: {data!r}")
|
100
99
|
finally:
|
101
100
|
self.sa.ctxt.RevertSecurityContext()
|
102
101
|
self.close_request(request)
|
@@ -11,23 +11,24 @@
|
|
11
11
|
import _thread
|
12
12
|
import traceback
|
13
13
|
|
14
|
-
# Old versions of the service framework would not let you import this
|
15
|
-
# module at the top-level. Now you can, and can check 'Debugging()' and
|
16
|
-
# 'RunningAsService()' to check your context.
|
17
14
|
import pywintypes
|
15
|
+
|
16
|
+
# Old versions of the service framework would not let you import this
|
17
|
+
# module at the top-level. Now you can, and can check 'servicemanager.Debugging()'
|
18
|
+
# and 'servicemanager.RunningAsService()' to check your context.
|
18
19
|
import servicemanager
|
19
20
|
import win32con
|
20
21
|
import win32service
|
21
22
|
import win32serviceutil
|
22
23
|
import winerror
|
23
|
-
from ntsecuritycon import *
|
24
|
-
from win32api import *
|
25
24
|
|
26
|
-
# Use "import *" to keep this looking as much as a "normal" service
|
25
|
+
# # Use "import *" to keep this looking as much as a "normal" service
|
27
26
|
# as possible. Real code shouldn't do this.
|
28
|
-
from
|
29
|
-
from
|
30
|
-
from
|
27
|
+
from ntsecuritycon import * # nopycln: import
|
28
|
+
from win32api import * # nopycln: import
|
29
|
+
from win32event import * # nopycln: import
|
30
|
+
from win32file import * # nopycln: import
|
31
|
+
from win32pipe import * # nopycln: import
|
31
32
|
|
32
33
|
|
33
34
|
def ApplyIgnoreError(fn, args):
|
@@ -13,9 +13,12 @@ import traceback
|
|
13
13
|
import pywintypes
|
14
14
|
import win32api
|
15
15
|
import winerror
|
16
|
-
|
17
|
-
|
18
|
-
|
16
|
+
|
17
|
+
# # Use "import *" to keep this looking as much as a "normal" service
|
18
|
+
# as possible. Real code shouldn't do this.
|
19
|
+
from win32event import * # nopycln: import
|
20
|
+
from win32file import * # nopycln: import
|
21
|
+
from win32pipe import * # nopycln: import
|
19
22
|
|
20
23
|
verbose = 0
|
21
24
|
|
@@ -2,17 +2,29 @@
|
|
2
2
|
#
|
3
3
|
# Demo/test of the win32clipboard module.
|
4
4
|
import win32con
|
5
|
-
from win32clipboard import
|
5
|
+
from win32clipboard import (
|
6
|
+
CloseClipboard,
|
7
|
+
EmptyClipboard,
|
8
|
+
EnumClipboardFormats,
|
9
|
+
GetClipboardData,
|
10
|
+
GetClipboardFormatName,
|
11
|
+
IsClipboardFormatAvailable,
|
12
|
+
OpenClipboard,
|
13
|
+
RegisterClipboardFormat,
|
14
|
+
SetClipboardData,
|
15
|
+
SetClipboardText,
|
16
|
+
)
|
6
17
|
|
7
18
|
if not __debug__:
|
8
19
|
print("WARNING: The test code in this module uses assert")
|
9
20
|
print("This instance of Python has asserts disabled, so many tests will be skipped")
|
10
21
|
|
11
|
-
cf_names = {}
|
12
22
|
# Build map of CF_* constants to names.
|
13
|
-
|
14
|
-
|
15
|
-
|
23
|
+
cf_names = {
|
24
|
+
val: name
|
25
|
+
for name, val in win32con.__dict__.items()
|
26
|
+
if name[:3] == "CF_" and name != "CF_SCREENFONTS" # CF_SCREEN_FONTS==CF_TEXT!?!?
|
27
|
+
}
|
16
28
|
|
17
29
|
|
18
30
|
def TestEmptyClipboard():
|
@@ -18,8 +18,38 @@ import sys
|
|
18
18
|
import threading
|
19
19
|
|
20
20
|
import win32con # constants.
|
21
|
-
from win32event import
|
22
|
-
|
21
|
+
from win32event import ( # We use events and the WaitFor[Multiple]Objects functions.
|
22
|
+
INFINITE,
|
23
|
+
WAIT_OBJECT_0,
|
24
|
+
CreateEvent,
|
25
|
+
SetEvent,
|
26
|
+
WaitForMultipleObjects,
|
27
|
+
WaitForSingleObject,
|
28
|
+
)
|
29
|
+
from win32file import ( # The base COM port and file IO functions.
|
30
|
+
CBR_115200,
|
31
|
+
EV_RXCHAR,
|
32
|
+
NOPARITY,
|
33
|
+
ONESTOPBIT,
|
34
|
+
OVERLAPPED,
|
35
|
+
PURGE_RXABORT,
|
36
|
+
PURGE_RXCLEAR,
|
37
|
+
PURGE_TXABORT,
|
38
|
+
PURGE_TXCLEAR,
|
39
|
+
ClearCommError,
|
40
|
+
CreateFile,
|
41
|
+
GetCommModemStatus,
|
42
|
+
GetCommState,
|
43
|
+
PurgeComm,
|
44
|
+
ReadFile,
|
45
|
+
SetCommMask,
|
46
|
+
SetCommState,
|
47
|
+
SetCommTimeouts,
|
48
|
+
SetupComm,
|
49
|
+
WaitCommEvent,
|
50
|
+
WriteFile,
|
51
|
+
error,
|
52
|
+
)
|
23
53
|
|
24
54
|
|
25
55
|
def FindModem():
|
@@ -3,10 +3,7 @@ import time
|
|
3
3
|
import win32con
|
4
4
|
import win32console
|
5
5
|
|
6
|
-
virtual_keys = {}
|
7
|
-
for k, v in list(win32con.__dict__.items()):
|
8
|
-
if k.startswith("VK_"):
|
9
|
-
virtual_keys[v] = k
|
6
|
+
virtual_keys = {k: v for k, v in win32con.__dict__.items() if k.startswith("VK_")}
|
10
7
|
|
11
8
|
free_console = True
|
12
9
|
try:
|
@@ -14,9 +14,64 @@ import struct
|
|
14
14
|
import sys
|
15
15
|
|
16
16
|
import win32con
|
17
|
-
from win32api import
|
18
|
-
from win32gui import
|
19
|
-
|
17
|
+
from win32api import GetSystemDirectory, GetSystemMetrics
|
18
|
+
from win32gui import (
|
19
|
+
LOWORD,
|
20
|
+
NIF_ICON,
|
21
|
+
NIF_MESSAGE,
|
22
|
+
NIF_TIP,
|
23
|
+
NIM_ADD,
|
24
|
+
NIM_DELETE,
|
25
|
+
WNDCLASS,
|
26
|
+
CheckMenuItem,
|
27
|
+
CheckMenuRadioItem,
|
28
|
+
CreateCompatibleBitmap,
|
29
|
+
CreateCompatibleDC,
|
30
|
+
CreateFontIndirect,
|
31
|
+
CreatePopupMenu,
|
32
|
+
CreateWindow,
|
33
|
+
DeleteDC,
|
34
|
+
DestroyIcon,
|
35
|
+
DestroyWindow,
|
36
|
+
DrawIconEx,
|
37
|
+
ExtTextOut,
|
38
|
+
FillRect,
|
39
|
+
GetCursorPos,
|
40
|
+
GetDC,
|
41
|
+
GetMenuDefaultItem,
|
42
|
+
GetMenuState,
|
43
|
+
GetModuleHandle,
|
44
|
+
GetSysColor,
|
45
|
+
GetSysColorBrush,
|
46
|
+
GetTextExtentPoint32,
|
47
|
+
InsertMenu,
|
48
|
+
InsertMenuItem,
|
49
|
+
LoadIcon,
|
50
|
+
LoadImage,
|
51
|
+
PostMessage,
|
52
|
+
PostQuitMessage,
|
53
|
+
PumpMessages,
|
54
|
+
PyGetMemory,
|
55
|
+
PyMakeBuffer,
|
56
|
+
PySetMemory,
|
57
|
+
RegisterClass,
|
58
|
+
ReleaseDC,
|
59
|
+
SelectObject,
|
60
|
+
SetBkColor,
|
61
|
+
SetBkMode,
|
62
|
+
SetForegroundWindow,
|
63
|
+
SetMenuDefaultItem,
|
64
|
+
SetTextColor,
|
65
|
+
Shell_NotifyIcon,
|
66
|
+
SystemParametersInfo,
|
67
|
+
TrackPopupMenu,
|
68
|
+
UpdateWindow,
|
69
|
+
)
|
70
|
+
from win32gui_struct import (
|
71
|
+
EmptyMENUITEMINFO,
|
72
|
+
PackMENUITEMINFO,
|
73
|
+
UnpackMENUITEMINFO,
|
74
|
+
)
|
20
75
|
|
21
76
|
this_dir = os.path.split(sys.argv[0])[0]
|
22
77
|
|
@@ -122,9 +177,9 @@ class MainWindow:
|
|
122
177
|
InsertMenuItem(menu, 0, 1, item)
|
123
178
|
|
124
179
|
# Owner-draw menus mainly from:
|
125
|
-
#
|
180
|
+
# https://learn.microsoft.com/en-ca/windows/win32/menurc/using-menus
|
126
181
|
# and:
|
127
|
-
#
|
182
|
+
# https://www.codeguru.com/cplusplus/owner-drawn-menu-with-icons/
|
128
183
|
|
129
184
|
# Create one with an icon - this is *lots* more work - we do it
|
130
185
|
# owner-draw! The primary reason is to handle transparency better -
|
@@ -104,7 +104,7 @@ class MainWindow:
|
|
104
104
|
win32gui.AppendMenu(menu, win32con.MF_STRING, 1024, "Say Hello")
|
105
105
|
win32gui.AppendMenu(menu, win32con.MF_STRING, 1025, "Exit program")
|
106
106
|
pos = win32gui.GetCursorPos()
|
107
|
-
# See
|
107
|
+
# See https://learn.microsoft.com/en-us/windows/win32/api/_menurc/
|
108
108
|
win32gui.SetForegroundWindow(self.hwnd)
|
109
109
|
win32gui.TrackPopupMenu(
|
110
110
|
menu, win32con.TPM_LEFTALIGN, pos[0], pos[1], 0, self.hwnd, None
|
@@ -184,7 +184,7 @@ def GetInfo(userName=None):
|
|
184
184
|
userName = win32api.GetUserName()
|
185
185
|
print("Dumping level 3 information about user")
|
186
186
|
info = win32net.NetUserGetInfo(server, userName, 3)
|
187
|
-
for key, val in
|
187
|
+
for key, val in info.items():
|
188
188
|
verbose(f"{key}={val}")
|
189
189
|
|
190
190
|
|
@@ -228,10 +228,7 @@ def usage(tests):
|
|
228
228
|
|
229
229
|
|
230
230
|
def main():
|
231
|
-
tests = []
|
232
|
-
for ob in list(globals().values()):
|
233
|
-
if isinstance(ob, Callable) and ob.__doc__:
|
234
|
-
tests.append(ob)
|
231
|
+
tests = [ob for ob in globals().values() if isinstance(ob, Callable) and ob.__doc__]
|
235
232
|
opts, args = getopt.getopt(sys.argv[1:], "s:hvc")
|
236
233
|
create_user = False
|
237
234
|
for opt, val in opts:
|
@@ -113,7 +113,7 @@ def TestConnection():
|
|
113
113
|
|
114
114
|
def TestGetUser():
|
115
115
|
u = win32wnet.WNetGetUser()
|
116
|
-
print("Current global user is
|
116
|
+
print(f"Current global user is {u!r}")
|
117
117
|
if u != win32wnet.WNetGetUser(None):
|
118
118
|
raise RuntimeError("Default value didn't seem to work!")
|
119
119
|
|
@@ -1,4 +1,7 @@
|
|
1
|
+
from __future__ import annotations
|
2
|
+
|
1
3
|
import struct
|
4
|
+
from collections.abc import Iterable
|
2
5
|
|
3
6
|
import win32wnet
|
4
7
|
|
@@ -191,7 +194,7 @@ def Netbios(ncb):
|
|
191
194
|
|
192
195
|
|
193
196
|
class NCBStruct:
|
194
|
-
def __init__(self, items):
|
197
|
+
def __init__(self, items: Iterable[tuple[str, str]]) -> None:
|
195
198
|
self._format = "".join([item[0] for item in items])
|
196
199
|
self._items = items
|
197
200
|
self._buffer_ = win32wnet.NCBBuffer(struct.calcsize(self._format))
|
@@ -199,23 +202,18 @@ class NCBStruct:
|
|
199
202
|
for format, name in self._items:
|
200
203
|
if len(format) == 1:
|
201
204
|
if format == "c":
|
202
|
-
val = "\0"
|
205
|
+
val: bytes | int = b"\0"
|
203
206
|
else:
|
204
207
|
val = 0
|
205
208
|
else:
|
206
209
|
l = int(format[:-1])
|
207
|
-
val = "\0" * l
|
210
|
+
val = b"\0" * l
|
208
211
|
self.__dict__[name] = val
|
209
212
|
|
210
213
|
def _pack(self):
|
211
|
-
vals = []
|
212
|
-
for format, name in self._items:
|
213
|
-
try:
|
214
|
-
vals.append(self.__dict__[name])
|
215
|
-
except KeyError:
|
216
|
-
vals.append(None)
|
214
|
+
vals = [self.__dict__.get(name) for format, name in self._items]
|
217
215
|
|
218
|
-
self._buffer_[:] = struct.pack(
|
216
|
+
self._buffer_[:] = struct.pack(self._format, *vals)
|
219
217
|
|
220
218
|
def _unpack(self):
|
221
219
|
items = struct.unpack(self._format, self._buffer_)
|
@@ -4,8 +4,6 @@
|
|
4
4
|
# In short, there's a directory installed by pywin32 named 'pywin32_system32'
|
5
5
|
# with some important DLLs which need to be found by Python when some pywin32
|
6
6
|
# modules are imported.
|
7
|
-
# If Python has `os.add_dll_directory()`, we need to call it with this path.
|
8
|
-
# Otherwise, we add this path to PATH.
|
9
7
|
|
10
8
|
|
11
9
|
try:
|
@@ -16,14 +14,8 @@ else:
|
|
16
14
|
import os
|
17
15
|
|
18
16
|
# We're guaranteed only that __path__: Iterable[str]
|
19
|
-
# https://docs.python.org/3/reference/import.html#
|
17
|
+
# https://docs.python.org/3/reference/import.html#path-attributes-on-modules
|
20
18
|
for path in pywin32_system32.__path__:
|
21
19
|
if os.path.isdir(path):
|
22
|
-
|
23
|
-
os.add_dll_directory(path)
|
24
|
-
# This is to ensure the pywin32 path is in the beginning to find the
|
25
|
-
# pywin32 DLLs first and prevent other PATH entries to shadow them
|
26
|
-
elif not os.environ["PATH"].startswith(path):
|
27
|
-
os.environ["PATH"] = os.environ["PATH"].replace(os.pathsep + path, "")
|
28
|
-
os.environ["PATH"] = path + os.pathsep + os.environ["PATH"]
|
20
|
+
os.add_dll_directory(path)
|
29
21
|
break
|
@@ -273,7 +273,7 @@ class TestRunner(unittest.TextTestRunner):
|
|
273
273
|
return TestResult(self.stream, self.descriptions, self.verbosity)
|
274
274
|
|
275
275
|
|
276
|
-
#
|
276
|
+
# TestProgram subclass necessary just to get our TestRunner hooked up,
|
277
277
|
# which is necessary to get our TestResult hooked up *sob*
|
278
278
|
class TestProgram(unittest.TestProgram):
|
279
279
|
def runTests(self):
|
@@ -282,7 +282,7 @@ class TestProgram(unittest.TestProgram):
|
|
282
282
|
unittest.TestProgram.runTests(self)
|
283
283
|
|
284
284
|
|
285
|
-
# A convenient entry-point - if used, 'SKIPPED' exceptions will be
|
285
|
+
# A convenient entry-point - if used, 'SKIPPED' exceptions will be suppressed.
|
286
286
|
def testmain(*args, **kw):
|
287
287
|
new_kw = kw.copy()
|
288
288
|
if "testLoader" not in new_kw:
|
@@ -83,7 +83,7 @@ def __import_pywin32_system_module__(modname, globs):
|
|
83
83
|
|
84
84
|
# There are 2 site-packages directories - one "global" and one "user".
|
85
85
|
# We could be in either, or both (but with different versions!). Factors include
|
86
|
-
# virtualenvs, post-install script being run or not, `
|
86
|
+
# virtualenvs, post-install script being run or not, `pip install` flags, etc.
|
87
87
|
|
88
88
|
# In a worst-case, it means, say 'python -c "import win32api"'
|
89
89
|
# will not work but 'python -c "import pywintypes, win32api"' will,
|
@@ -49,7 +49,7 @@ def SetRegistryDefaultValue(subKey, value, rootkey=None):
|
|
49
49
|
elif isinstance(value, int):
|
50
50
|
typeId = win32con.REG_DWORD
|
51
51
|
else:
|
52
|
-
raise TypeError("Value must be string or integer - was passed "
|
52
|
+
raise TypeError(f"Value must be string or integer - was passed {value!r}")
|
53
53
|
|
54
54
|
win32api.RegSetValue(rootkey, subKey, typeId, value)
|
55
55
|
|
@@ -26,7 +26,7 @@ class _BaseAuth:
|
|
26
26
|
|
27
27
|
def reset(self):
|
28
28
|
"""Reset everything to an unauthorized state"""
|
29
|
-
self.ctxt = None
|
29
|
+
self.ctxt: win32security.PyCtxtHandleType | None = None
|
30
30
|
self.authenticated = False
|
31
31
|
self.initiator_name = None
|
32
32
|
self.service_name = None
|
@@ -100,7 +100,7 @@ class _BaseAuth:
|
|
100
100
|
def unwrap(self, token):
|
101
101
|
"""
|
102
102
|
GSSAPI's unwrap with SSPI.
|
103
|
-
https://
|
103
|
+
https://learn.microsoft.com/en-us/windows/win32/secauthn/sspi-kerberos-interoperability-with-gssapi
|
104
104
|
|
105
105
|
Usable mainly with Kerberos SSPI package, but this is not enforced.
|
106
106
|
|
@@ -125,7 +125,7 @@ class _BaseAuth:
|
|
125
125
|
def wrap(self, msg, encrypt=False):
|
126
126
|
"""
|
127
127
|
GSSAPI's wrap with SSPI.
|
128
|
-
https://
|
128
|
+
https://learn.microsoft.com/en-us/windows/win32/secauthn/sspi-kerberos-interoperability-with-gssapi
|
129
129
|
|
130
130
|
Usable mainly with Kerberos SSPI package, but this is not enforced.
|
131
131
|
|
@@ -1,7 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
"""\
|
2
|
+
win2kras used to be an extension module with wrapped the "new" RAS functions \
|
3
|
+
in Windows 2000, so win32ras could still be used on NT/etc.
|
4
|
+
I think in 2021 we can be confident pywin32 is not used on earlier OSs, so \
|
5
|
+
that functionality is now in win32ras.
|
6
|
+
|
7
|
+
This exists just to avoid breaking old scripts.\
|
8
|
+
"""
|
9
|
+
|
10
|
+
import warnings
|
11
|
+
|
12
|
+
from win32ras import * # nopycln: import
|
13
|
+
|
14
|
+
warnings.warn(str(__doc__), category=DeprecationWarning)
|
@@ -1069,9 +1069,6 @@ VK_NONAME = 252
|
|
1069
1069
|
VK_PA1 = 253
|
1070
1070
|
VK_OEM_CLEAR = 254
|
1071
1071
|
# multi-media related "keys"
|
1072
|
-
MOUSEEVENTF_XDOWN = 0x0080
|
1073
|
-
MOUSEEVENTF_XUP = 0x0100
|
1074
|
-
MOUSEEVENTF_WHEEL = 0x0800
|
1075
1072
|
VK_XBUTTON1 = 0x05
|
1076
1073
|
VK_XBUTTON2 = 0x06
|
1077
1074
|
VK_VOLUME_MUTE = 0xAD
|
@@ -1268,7 +1265,6 @@ PWR_SUSPENDRESUME = 2
|
|
1268
1265
|
PWR_CRITICALRESUME = 3
|
1269
1266
|
WM_COPYDATA = 74
|
1270
1267
|
WM_CANCELJOURNAL = 75
|
1271
|
-
WM_NOTIFY = 78
|
1272
1268
|
WM_INPUTLANGCHANGEREQUEST = 80
|
1273
1269
|
WM_INPUTLANGCHANGE = 81
|
1274
1270
|
WM_TCARD = 82
|
@@ -1279,7 +1275,6 @@ NFR_ANSI = 1
|
|
1279
1275
|
NFR_UNICODE = 2
|
1280
1276
|
NF_QUERY = 3
|
1281
1277
|
NF_REQUERY = 4
|
1282
|
-
WM_CONTEXTMENU = 123
|
1283
1278
|
WM_STYLECHANGING = 124
|
1284
1279
|
WM_STYLECHANGED = 125
|
1285
1280
|
WM_DISPLAYCHANGE = 126
|
@@ -1379,7 +1374,6 @@ PBT_APMBATTERYLOW = 9
|
|
1379
1374
|
PBT_APMPOWERSTATUSCHANGE = 10
|
1380
1375
|
PBT_APMOEMEVENT = 11
|
1381
1376
|
PBT_APMRESUMEAUTOMATIC = 18
|
1382
|
-
WM_DEVICECHANGE = 537
|
1383
1377
|
WM_MDICREATE = 544
|
1384
1378
|
WM_MDIDESTROY = 545
|
1385
1379
|
WM_MDIACTIVATE = 546
|
@@ -1426,7 +1420,6 @@ WM_PALETTEISCHANGING = 784
|
|
1426
1420
|
WM_PALETTECHANGED = 785
|
1427
1421
|
WM_HOTKEY = 786
|
1428
1422
|
WM_PRINT = 791
|
1429
|
-
WM_PRINTCLIENT = 792
|
1430
1423
|
WM_HANDHELDFIRST = 856
|
1431
1424
|
WM_HANDHELDLAST = 863
|
1432
1425
|
WM_AFXFIRST = 864
|
@@ -2047,12 +2040,7 @@ def SUBLANGID(lgid):
|
|
2047
2040
|
NLS_VALID_LOCALE_MASK = 1048575
|
2048
2041
|
CONTEXT_PORTABLE_32BIT = 1048576
|
2049
2042
|
CONTEXT_ALPHA = 131072
|
2050
|
-
CONTEXT_CONTROL = CONTEXT_ALPHA | 1
|
2051
|
-
CONTEXT_FLOATING_POINT = CONTEXT_ALPHA | 2
|
2052
|
-
CONTEXT_INTEGER = CONTEXT_ALPHA | 4
|
2053
|
-
CONTEXT_FULL = CONTEXT_CONTROL | CONTEXT_FLOATING_POINT | CONTEXT_INTEGER
|
2054
2043
|
SIZE_OF_80387_REGISTERS = 80
|
2055
|
-
CONTEXT_FULL = CONTEXT_CONTROL | CONTEXT_FLOATING_POINT | CONTEXT_INTEGER
|
2056
2044
|
CONTEXT_CONTROL = 1
|
2057
2045
|
CONTEXT_FLOATING_POINT = 2
|
2058
2046
|
CONTEXT_INTEGER = 4
|
@@ -2165,8 +2153,6 @@ FILE_NOTIFY_CHANGE_LAST_WRITE = 16
|
|
2165
2153
|
FILE_NOTIFY_CHANGE_SECURITY = 256
|
2166
2154
|
FILE_CASE_SENSITIVE_SEARCH = 1
|
2167
2155
|
FILE_CASE_PRESERVED_NAMES = 2
|
2168
|
-
FILE_UNICODE_ON_DISK = 4
|
2169
|
-
FILE_PERSISTENT_ACLS = 8
|
2170
2156
|
FILE_FILE_COMPRESSION = 16
|
2171
2157
|
FILE_NAMED_STREAMS = 262144
|
2172
2158
|
FILE_PERSISTENT_ACLS = 0x00000008
|
@@ -2182,7 +2168,6 @@ FILE_SUPPORTS_SPARSE_FILES = 0x00000040
|
|
2182
2168
|
FILE_SUPPORTS_TRANSACTIONS = 0x00200000
|
2183
2169
|
FILE_SUPPORTS_USN_JOURNAL = 0x02000000
|
2184
2170
|
FILE_UNICODE_ON_DISK = 0x00000004
|
2185
|
-
FILE_VOLUME_IS_COMPRESSED = 0x00008000
|
2186
2171
|
FILE_VOLUME_QUOTAS = 0x00000020
|
2187
2172
|
FILE_VOLUME_IS_COMPRESSED = 32768
|
2188
2173
|
IO_COMPLETION_MODIFY_STATE = 2
|
@@ -2335,7 +2320,6 @@ KEY_ALL_ACCESS = (
|
|
2335
2320
|
) & (~SYNCHRONIZE)
|
2336
2321
|
REG_NOTIFY_CHANGE_ATTRIBUTES = 2
|
2337
2322
|
REG_NOTIFY_CHANGE_SECURITY = 8
|
2338
|
-
REG_RESOURCE_REQUIREMENTS_LIST = 10
|
2339
2323
|
REG_NONE = 0 # No value type
|
2340
2324
|
REG_SZ = 1 # Unicode nul terminated string
|
2341
2325
|
REG_EXPAND_SZ = 2 # Unicode nul terminated string
|
@@ -2910,7 +2894,6 @@ CBM_CREATEDIB = 2
|
|
2910
2894
|
CBM_INIT = 4
|
2911
2895
|
FLOODFILLBORDER = 0
|
2912
2896
|
FLOODFILLSURFACE = 1
|
2913
|
-
CCHDEVICENAME = 32
|
2914
2897
|
CCHFORMNAME = 32
|
2915
2898
|
# Generated by h2py from \msvcnt\include\wingdi.h
|
2916
2899
|
# hacked and split manually by mhammond.
|
@@ -4197,6 +4180,7 @@ MOD_ALT = 1
|
|
4197
4180
|
MOD_CONTROL = 2
|
4198
4181
|
MOD_SHIFT = 4
|
4199
4182
|
MOD_WIN = 8
|
4183
|
+
MOD_NOREPEAT = 16384
|
4200
4184
|
IDHOT_SNAPWINDOW = -1
|
4201
4185
|
IDHOT_SNAPDESKTOP = -2
|
4202
4186
|
# EW_RESTARTWINDOWS = 0x0042
|
@@ -4209,19 +4193,7 @@ EWX_REBOOT = 2
|
|
4209
4193
|
EWX_FORCE = 4
|
4210
4194
|
EWX_POWEROFF = 8
|
4211
4195
|
EWX_FORCEIFHUNG = 16
|
4212
|
-
BSM_ALLCOMPONENTS = 0
|
4213
|
-
BSM_VXDS = 1
|
4214
|
-
BSM_NETDRIVER = 2
|
4215
|
-
BSM_INSTALLABLEDRIVERS = 4
|
4216
|
-
BSM_APPLICATIONS = 8
|
4217
4196
|
BSM_ALLDESKTOPS = 16
|
4218
|
-
BSF_QUERY = 1
|
4219
|
-
BSF_IGNORECURRENTTASK = 2
|
4220
|
-
BSF_FLUSHDISK = 4
|
4221
|
-
BSF_NOHANG = 8
|
4222
|
-
BSF_POSTMESSAGE = 16
|
4223
|
-
BSF_FORCEIFHUNG = 32
|
4224
|
-
BSF_NOTIMEOUTIFNOTHUNG = 64
|
4225
4197
|
BROADCAST_QUERY_DENY = 1112363332 # Return this value to deny a query.
|
4226
4198
|
|
4227
4199
|
DBWF_LPARAMPOINTER = 32768
|
@@ -4247,10 +4219,8 @@ DLGWINDOWEXTRA = 30
|
|
4247
4219
|
# winuser.h line 4249
|
4248
4220
|
KEYEVENTF_EXTENDEDKEY = 1
|
4249
4221
|
KEYEVENTF_KEYUP = 2
|
4250
|
-
# if(_WIN32_WINNT >= 0x0500)
|
4251
4222
|
KEYEVENTF_UNICODE = 4
|
4252
4223
|
KEYEVENTF_SCANCODE = 8
|
4253
|
-
# endif /* _WIN32_WINNT >= 0x0500 */
|
4254
4224
|
MOUSEEVENTF_MOVE = 1
|
4255
4225
|
MOUSEEVENTF_LEFTDOWN = 2
|
4256
4226
|
MOUSEEVENTF_LEFTUP = 4
|
@@ -4261,12 +4231,8 @@ MOUSEEVENTF_MIDDLEUP = 64
|
|
4261
4231
|
MOUSEEVENTF_XDOWN = 128
|
4262
4232
|
MOUSEEVENTF_XUP = 256
|
4263
4233
|
MOUSEEVENTF_WHEEL = 2048
|
4264
|
-
# if (_WIN32_WINNT >= 0x0600)
|
4265
4234
|
MOUSEEVENTF_HWHEEL = 4096
|
4266
|
-
# endif
|
4267
|
-
# if(WINVER >= 0x0600)
|
4268
4235
|
MOUSEEVENTF_MOVE_NOCOALESCE = 8192
|
4269
|
-
# endif /* WINVER >= 0x0600 */
|
4270
4236
|
MOUSEEVENTF_VIRTUALDESK = 16384
|
4271
4237
|
MOUSEEVENTF_ABSOLUTE = 32768
|
4272
4238
|
INPUT_MOUSE = 0
|
@@ -5081,3 +5047,18 @@ DBTF_XPORT = 0x00000002
|
|
5081
5047
|
DBTF_SLOWNET = 0x00000004
|
5082
5048
|
DBT_VPOWERDAPI = 0x8100
|
5083
5049
|
DBT_USERDEFINED = 0xFFFF
|
5050
|
+
|
5051
|
+
# From ime_cmodes.h
|
5052
|
+
# bit field for conversion mode
|
5053
|
+
IME_CMODE_ALPHANUMERIC = 0x0000
|
5054
|
+
IME_CMODE_NATIVE = 0x0001
|
5055
|
+
IME_CMODE_CHINESE = IME_CMODE_NATIVE
|
5056
|
+
IME_CMODE_HANGUL = IME_CMODE_NATIVE
|
5057
|
+
IME_CMODE_JAPANESE = IME_CMODE_NATIVE
|
5058
|
+
IME_CMODE_KATAKANA = 0x0002 # only effect under IME_CMODE_NATIVE
|
5059
|
+
IME_CMODE_LANGUAGE = 0x0003
|
5060
|
+
IME_CMODE_FULLSHAPE = 0x0008
|
5061
|
+
IME_CMODE_ROMAN = 0x0010
|
5062
|
+
IME_CMODE_CHARCODE = 0x0020
|
5063
|
+
IME_CMODE_HANJACONVERT = 0x0040
|
5064
|
+
IME_CMODE_NATIVESYMBOL = 0x0080
|
@@ -972,7 +972,7 @@ CMC_FAIL_BAD_MESSAGE_CHECK = 1
|
|
972
972
|
CMC_FAIL_BAD_REQUEST = 2
|
973
973
|
CMC_FAIL_BAD_TIME = 3
|
974
974
|
CMC_FAIL_BAD_CERT_ID = 4
|
975
|
-
CMC_FAIL_UNSUPORTED_EXT = 5
|
975
|
+
CMC_FAIL_UNSUPORTED_EXT = 5 # Yes Microsoft made a typo in "UNSUPPORTED"
|
976
976
|
CMC_FAIL_MUST_ARCHIVE_KEYS = 6
|
977
977
|
CMC_FAIL_BAD_IDENTITY = 7
|
978
978
|
CMC_FAIL_POP_REQUIRED = 8
|
@@ -1333,9 +1333,6 @@ CERT_TRUST_PUB_ALLOW_ENTERPRISE_ADMIN_TRUST = 0x00000002
|
|
1333
1333
|
CERT_TRUST_PUB_CHECK_PUBLISHER_REV_FLAG = 0x00000100
|
1334
1334
|
CERT_TRUST_PUB_CHECK_TIMESTAMP_REV_FLAG = 0x00000200
|
1335
1335
|
|
1336
|
-
CERT_AUTH_ROOT_AUTO_UPDATE_LOCAL_MACHINE_REGPATH = (
|
1337
|
-
r"Software\Microsoft\SystemCertificates\AuthRoot\AutoUpdate"
|
1338
|
-
)
|
1339
1336
|
CERT_AUTH_ROOT_AUTO_UPDATE_DISABLE_UNTRUSTED_ROOT_LOGGING_FLAG = 0x1
|
1340
1337
|
CERT_AUTH_ROOT_AUTO_UPDATE_DISABLE_PARTIAL_CHAIN_LOGGING_FLAG = 0x2
|
1341
1338
|
CERT_AUTH_ROOT_AUTO_UPDATE_ROOT_DIR_URL_VALUE_NAME = "RootDirUrl"
|