py2docfx 0.1.15rc2025477__py3-none-any.whl → 0.1.16__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/docfx_yaml/process_doctree.py +21 -34
- py2docfx/docfx_yaml/tests/test_method_arguments.py +1 -7
- py2docfx/docfx_yaml/tests/test_process_doctree.py +120 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_core_metadata.py +21 -5
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/_msvccompiler.py +13 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/ccompiler.py +5 -2
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build.py +1 -6
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_clib.py +1 -9
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_ext.py +1 -8
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/check.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/config.py +0 -2
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install.py +8 -17
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compat/numpy.py +2 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/base.py +8 -5
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/msvc.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/unix.py +15 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/dist.py +2 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/sysconfig.py +0 -10
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/tests/test_build_ext.py +60 -5
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/unixccompiler.py +6 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/util.py +7 -6
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_normalization.py +29 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/__init__.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/_bdist_wheel.py +613 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/_setuptools_logging.py +2 -2
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/bdist_wheel.py +25 -594
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/cli/__init__.py +6 -6
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/cli/convert.py +282 -223
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/macosx_libfile.py +22 -9
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/metadata.py +16 -13
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/util.py +0 -9
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/wheelfile.py +40 -9
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/bdist_wheel.py +6 -2
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/config/_apply_pyprojecttoml.py +49 -11
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/config/_validate_pyproject/extra_validations.py +31 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/config/_validate_pyproject/fastjsonschema_validations.py +222 -129
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/config/_validate_pyproject/formats.py +30 -3
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/dist.py +168 -51
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/msvc.py +12 -3
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/config/test_apply_pyprojecttoml.py +246 -13
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/config/test_setupcfg.py +42 -29
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/integration/test_pip_install_sdist.py +1 -1
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_bdist_wheel.py +93 -8
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_build_meta.py +17 -4
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_core_metadata.py +45 -0
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_egg_info.py +24 -4
- py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_sdist.py +13 -1
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/__init__.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/any_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/api_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/compiler/plugin_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/descriptor_database.py +22 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/descriptor_pb2.py +82 -35
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/duration_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/empty_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/field_mask_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/builder.py +4 -3
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/containers.py +13 -0
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/decoder.py +62 -115
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/python_edition_defaults.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/python_message.py +15 -18
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/testing_refleaks.py +4 -1
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/type_checkers.py +5 -0
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/well_known_types.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/json_format.py +25 -9
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/message.py +26 -0
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/message_factory.py +0 -63
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/proto.py +38 -1
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/proto_text.py +129 -0
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/reflection.py +0 -49
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/runtime_version.py +3 -3
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/source_context_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/struct_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/symbol_database.py +0 -18
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/text_format.py +8 -3
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/timestamp_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/type_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/unknown_fields.py +3 -4
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/wrappers_pb2.py +4 -4
- py2docfx/venv/venv1/Lib/site-packages/msal/__init__.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/msal/application.py +51 -17
- py2docfx/venv/venv1/Lib/site-packages/msal/broker.py +18 -4
- py2docfx/venv/venv1/Lib/site-packages/msal/cloudshell.py +5 -1
- py2docfx/venv/venv1/Lib/site-packages/msal/managed_identity.py +5 -4
- py2docfx/venv/venv1/Lib/site-packages/msal/sku.py +6 -0
- py2docfx/venv/venv1/Lib/site-packages/msal/token_cache.py +31 -10
- py2docfx/venv/venv1/Lib/site-packages/msal_extensions/__init__.py +2 -3
- py2docfx/venv/venv1/Lib/site-packages/msal_extensions/cache_lock.py +4 -1
- py2docfx/venv/venv1/Lib/site-packages/msal_extensions/filelock.py +62 -0
- py2docfx/venv/venv1/Lib/site-packages/msal_extensions/libsecret.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/msal_extensions/token_cache.py +7 -1
- py2docfx/venv/venv1/Lib/site-packages/pyasn1_modules/__init__.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_core_metadata.py +21 -5
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/_msvccompiler.py +13 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/ccompiler.py +5 -2
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build.py +1 -6
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_clib.py +1 -9
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_ext.py +1 -8
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/check.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/config.py +0 -2
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install.py +8 -17
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compat/numpy.py +2 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/base.py +8 -5
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/msvc.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/unix.py +15 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/dist.py +2 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/sysconfig.py +0 -10
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/tests/test_build_ext.py +60 -5
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/unixccompiler.py +6 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/util.py +7 -6
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_normalization.py +29 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/__init__.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/_bdist_wheel.py +613 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/_setuptools_logging.py +2 -2
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/bdist_wheel.py +25 -594
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/cli/__init__.py +6 -6
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/cli/convert.py +282 -223
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/macosx_libfile.py +22 -9
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/metadata.py +16 -13
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/util.py +0 -9
- py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/wheelfile.py +40 -9
- py2docfx/venv/venv1/Lib/site-packages/setuptools/command/bdist_wheel.py +6 -2
- py2docfx/venv/venv1/Lib/site-packages/setuptools/config/_apply_pyprojecttoml.py +49 -11
- py2docfx/venv/venv1/Lib/site-packages/setuptools/config/_validate_pyproject/extra_validations.py +31 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/config/_validate_pyproject/fastjsonschema_validations.py +222 -129
- py2docfx/venv/venv1/Lib/site-packages/setuptools/config/_validate_pyproject/formats.py +30 -3
- py2docfx/venv/venv1/Lib/site-packages/setuptools/dist.py +168 -51
- py2docfx/venv/venv1/Lib/site-packages/setuptools/msvc.py +12 -3
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/config/test_apply_pyprojecttoml.py +246 -13
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/config/test_setupcfg.py +42 -29
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/integration/test_pip_install_sdist.py +1 -1
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_bdist_wheel.py +93 -8
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_build_meta.py +17 -4
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_core_metadata.py +45 -0
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_egg_info.py +24 -4
- py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_sdist.py +13 -1
- py2docfx/venv/venv1/Lib/site-packages/typing_extensions.py +999 -74
- {py2docfx-0.1.15rc2025477.dist-info → py2docfx-0.1.16.dist-info}/METADATA +1 -1
- {py2docfx-0.1.15rc2025477.dist-info → py2docfx-0.1.16.dist-info}/RECORD +141 -596
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/__init__.py +0 -82
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/ado_consts.py +0 -283
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/adodbapi.py +0 -1153
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/apibase.py +0 -723
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/examples/db_print.py +0 -72
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/examples/db_table_names.py +0 -21
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/examples/xls_read.py +0 -41
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/examples/xls_write.py +0 -41
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/is64bit.py +0 -34
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/process_connect_string.py +0 -137
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/schema_table.py +0 -16
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/setup.py +0 -68
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/adodbapitest.py +0 -1547
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/adodbapitestconfig.py +0 -184
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/dbapi20.py +0 -879
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/is64bit.py +0 -34
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/setuptestframework.py +0 -98
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/test_adodbapi_dbapi20.py +0 -195
- py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/tryconnection.py +0 -30
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/_parameterized.py +0 -420
- py2docfx/venv/venv1/Lib/site-packages/google/protobuf/service.py +0 -213
- py2docfx/venv/venv1/Lib/site-packages/isapi/__init__.py +0 -39
- py2docfx/venv/venv1/Lib/site-packages/isapi/install.py +0 -809
- py2docfx/venv/venv1/Lib/site-packages/isapi/isapicon.py +0 -121
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/advanced.py +0 -218
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector.py +0 -116
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector_asynch.py +0 -85
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector_with_filter.py +0 -162
- py2docfx/venv/venv1/Lib/site-packages/isapi/samples/test.py +0 -195
- py2docfx/venv/venv1/Lib/site-packages/isapi/simple.py +0 -73
- py2docfx/venv/venv1/Lib/site-packages/isapi/test/extension_simple.py +0 -114
- py2docfx/venv/venv1/Lib/site-packages/isapi/threaded_extension.py +0 -191
- py2docfx/venv/venv1/Lib/site-packages/portalocker/__about__.py +0 -6
- py2docfx/venv/venv1/Lib/site-packages/portalocker/__init__.py +0 -79
- py2docfx/venv/venv1/Lib/site-packages/portalocker/__main__.py +0 -122
- py2docfx/venv/venv1/Lib/site-packages/portalocker/constants.py +0 -59
- py2docfx/venv/venv1/Lib/site-packages/portalocker/exceptions.py +0 -27
- py2docfx/venv/venv1/Lib/site-packages/portalocker/portalocker.py +0 -154
- py2docfx/venv/venv1/Lib/site-packages/portalocker/redis.py +0 -236
- py2docfx/venv/venv1/Lib/site-packages/portalocker/utils.py +0 -569
- py2docfx/venv/venv1/Lib/site-packages/pythoncom.py +0 -4
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/basictimerapp.py +0 -258
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/customprint.py +0 -183
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/demoutils.py +0 -63
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/dlgappdemo.py +0 -51
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/dojobapp.py +0 -71
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/helloapp.py +0 -53
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/cmdserver.py +0 -113
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/createwin.py +0 -114
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/demoutils.py +0 -65
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/dibdemo.py +0 -73
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/dlgtest.py +0 -145
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/dyndlg.py +0 -104
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/fontdemo.py +0 -85
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/guidemo.py +0 -53
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/hiertest.py +0 -138
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/menutest.py +0 -13
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/objdoc.py +0 -57
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/demoutils.py +0 -63
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/flash.py +0 -95
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/msoffice.py +0 -159
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/ocxserialtest.py +0 -132
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/ocxtest.py +0 -243
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/webbrowser.py +0 -72
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/openGLDemo.py +0 -415
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/progressbar.py +0 -105
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/sliderdemo.py +0 -76
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/splittst.py +0 -79
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/threadedgui.py +0 -189
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/toolbar.py +0 -105
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/__init__.py +0 -3
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/__init__.py +0 -133
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/configui.py +0 -34
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/dbgcon.py +0 -31
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/dbgpyapp.py +0 -48
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/debugger.py +0 -1097
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/fail.py +0 -54
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/ideoptions.py +0 -136
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/list.py +0 -146
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/login.py +0 -155
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/status.py +0 -242
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/docking/DockingBar.py +0 -676
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/docking/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/app.py +0 -411
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/bitmap.py +0 -168
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/cmdline.py +0 -54
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/dbgcommands.py +0 -188
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/dlgappcore.py +0 -76
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/ModuleBrowser.py +0 -235
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/__init__.py +0 -105
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/color/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/color/coloreditor.py +0 -646
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/configui.py +0 -299
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/document.py +0 -379
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/editor.py +0 -511
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/frame.py +0 -74
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/template.py +0 -59
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/vss.py +0 -104
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/help.py +0 -173
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/interact.py +0 -995
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/intpyapp.py +0 -552
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/intpydde.py +0 -65
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/scriptutils.py +0 -684
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/sgrepmdi.py +0 -749
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/startup.py +0 -70
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/stdin.py +0 -172
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/toolmenu.py +0 -279
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/window.py +0 -14
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/winout.py +0 -589
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/AutoExpand.py +0 -95
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/AutoIndent.py +0 -536
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/CallTips.py +0 -216
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/FormatParagraph.py +0 -166
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/IdleHistory.py +0 -87
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/PyParse.py +0 -585
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/activex.py +0 -79
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/afxres.py +0 -501
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/dialog.py +0 -277
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/docview.py +0 -151
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/object.py +0 -66
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/thread.py +0 -25
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/window.py +0 -50
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/IDLEenvironment.py +0 -593
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/bindings.py +0 -180
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/config.py +0 -363
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/configui.py +0 -291
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/control.py +0 -565
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/document.py +0 -312
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/find.py +0 -511
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/formatter.py +0 -704
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/keycodes.py +0 -190
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/scintillacon.py +0 -3083
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/view.py +0 -841
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/TraceCollector.py +0 -79
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/browseProjects.py +0 -323
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/browser.py +0 -494
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/hierlist.py +0 -353
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/regedit.py +0 -382
- py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/regpy.py +0 -80
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/BackupRead_BackupWrite.py +0 -119
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/BackupSeek_streamheaders.py +0 -137
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/CopyFileEx.py +0 -57
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/CreateFileTransacted_MiniVersion.py +0 -122
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/EvtFormatMessage.py +0 -83
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/EvtSubscribe_pull.py +0 -28
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/EvtSubscribe_push.py +0 -32
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/FileSecurityTest.py +0 -137
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/GetSaveFileName.py +0 -43
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/NetValidatePasswordPolicy.py +0 -127
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/OpenEncryptedFileRaw.py +0 -66
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/RegCreateKeyTransacted.py +0 -60
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/RegRestoreKey.py +0 -71
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/SystemParametersInfo.py +0 -210
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/c_extension/setup.py +0 -26
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/dde/ddeclient.py +0 -18
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/dde/ddeserver.py +0 -42
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/desktopmanager.py +0 -246
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/eventLogDemo.py +0 -143
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/getfilever.py +0 -33
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/mmapfile_demo.py +0 -101
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/pipes/cat.py +0 -17
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/pipes/runproc.py +0 -114
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/print_desktop.py +0 -113
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/rastest.py +0 -166
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/GetTokenInformation.py +0 -110
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/account_rights.py +0 -49
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/explicit_entries.py +0 -170
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/get_policy_info.py +0 -39
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/list_rights.py +0 -35
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/localized_names.py +0 -70
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/lsaregevent.py +0 -14
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/lsastore.py +0 -12
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/query_information.py +0 -25
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/regsave_sa.py +0 -61
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/regsecurity.py +0 -36
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sa_inherit.py +0 -8
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/security_enums.py +0 -336
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_file_audit.py +0 -106
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_file_owner.py +0 -73
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_policy_info.py +0 -25
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setkernelobjectsecurity.py +0 -134
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setnamedsecurityinfo.py +0 -131
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setsecurityinfo.py +0 -131
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setuserobjectsecurity.py +0 -102
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/fetch_url.py +0 -158
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/simple_auth.py +0 -72
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/socket_server.py +0 -199
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/validate_password.py +0 -41
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/service/nativePipeTestService.py +0 -63
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/service/pipeTestService.py +0 -185
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/service/pipeTestServiceClient.py +0 -158
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/service/serviceEvents.py +0 -98
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/timer_demo.py +0 -72
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32clipboardDemo.py +0 -155
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32clipboard_bitmapdemo.py +0 -117
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32comport_demo.py +0 -174
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32console_demo.py +0 -132
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32cred_demo.py +0 -82
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32fileDemo.py +0 -41
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_demo.py +0 -177
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_devicenotify.py +0 -106
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_dialog.py +0 -445
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_menu.py +0 -464
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_taskbar.py +0 -136
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32netdemo.py +0 -272
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32rcparser_demo.py +0 -86
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32servicedemo.py +0 -23
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32ts_logoff_disconnected.py +0 -25
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32wnet/testwnet.py +0 -123
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32wnet/winnetwk.py +0 -100
- py2docfx/venv/venv1/Lib/site-packages/win32/Demos/winprocess.py +0 -230
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/_win32verstamp_pywin32ctypes.py +0 -164
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/afxres.py +0 -8
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/commctrl.py +0 -1551
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/mmsystem.py +0 -956
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/netbios.py +0 -293
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/ntsecuritycon.py +0 -731
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywin32_bootstrap.py +0 -21
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywin32_testutil.py +0 -291
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywintypes.py +0 -124
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/rasutil.py +0 -40
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/regcheck.py +0 -161
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/regutil.py +0 -395
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/sspi.py +0 -413
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/sspicon.py +0 -477
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win2kras.py +0 -14
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32con.py +0 -5064
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32cryptcon.py +0 -1922
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32evtlogutil.py +0 -225
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32gui_struct.py +0 -957
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32inetcon.py +0 -1086
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32netcon.py +0 -627
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32pdhquery.py +0 -570
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32pdhutil.py +0 -212
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32rcparser.py +0 -674
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32serviceutil.py +0 -1073
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32timezone.py +0 -1201
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32traceutil.py +0 -59
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32verstamp.py +0 -235
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/winerror.py +0 -7362
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/winioctlcon.py +0 -1079
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/winnt.py +0 -1347
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/winperf.py +0 -236
- py2docfx/venv/venv1/Lib/site-packages/win32/lib/winxptheme.py +0 -8
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/ControlService.py +0 -594
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/VersionStamp/BrandProject.py +0 -97
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/VersionStamp/bulkstamp.py +0 -156
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/VersionStamp/vssutil.py +0 -201
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/backupEventLog.py +0 -46
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/h2py.py +0 -194
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/killProcName.py +0 -62
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/pywin32_postinstall.py +0 -733
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/pywin32_testall.py +0 -120
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/rasutil.py +0 -98
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/regsetup.py +0 -607
- py2docfx/venv/venv1/Lib/site-packages/win32/scripts/setup_d.py +0 -111
- py2docfx/venv/venv1/Lib/site-packages/win32/test/handles.py +0 -175
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_clipboard.py +0 -137
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_exceptions.py +0 -213
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_odbc.py +0 -264
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_pywintypes.py +0 -111
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_security.py +0 -166
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_sspi.py +0 -229
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32api.py +0 -273
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32clipboard.py +0 -59
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32cred.py +0 -91
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32crypt.py +0 -144
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32event.py +0 -119
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32file.py +0 -1096
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32gui.py +0 -227
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32guistruct.py +0 -333
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32inet.py +0 -108
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32net.py +0 -23
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32pipe.py +0 -148
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32print.py +0 -24
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32profile.py +0 -19
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32rcparser.py +0 -70
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32timezone.py +0 -16
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32trace.py +0 -366
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32ts.py +0 -19
- py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32wnet.py +0 -174
- py2docfx/venv/venv1/Lib/site-packages/win32/test/testall.py +0 -223
- py2docfx/venv/venv1/Lib/site-packages/win32/winxpgui.py +0 -13
- py2docfx/venv/venv1/Lib/site-packages/win32com/__init__.py +0 -134
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/CLSIDToClass.py +0 -60
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/__init__.py +0 -717
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/build.py +0 -771
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/combrowse.py +0 -604
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/connect.py +0 -48
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/dynamic.py +0 -699
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/gencache.py +0 -825
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/genpy.py +0 -1350
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/makepy.py +0 -453
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/selecttlb.py +0 -182
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/tlbrowse.py +0 -277
- py2docfx/venv/venv1/Lib/site-packages/win32com/client/util.py +0 -103
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/connect.py +0 -96
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/dump_clipboard.py +0 -74
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/eventsApartmentThreaded.py +0 -98
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/eventsFreeThreaded.py +0 -92
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/excelAddin.py +0 -169
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/excelRTDServer.py +0 -434
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/iebutton.py +0 -214
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/ietoolbar.py +0 -368
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/outlookAddin.py +0 -135
- py2docfx/venv/venv1/Lib/site-packages/win32com/demos/trybag.py +0 -78
- py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegw.py +0 -618
- py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegwenum.py +0 -331
- py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegwparse.py +0 -1017
- py2docfx/venv/venv1/Lib/site-packages/win32com/olectl.py +0 -70
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/connect.py +0 -85
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/dispatcher.py +0 -239
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/exception.py +0 -99
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/factory.py +0 -26
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/localserver.py +0 -53
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/policy.py +0 -803
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/register.py +0 -677
- py2docfx/venv/venv1/Lib/site-packages/win32com/server/util.py +0 -229
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/PythonTools.py +0 -47
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/dictionary.py +0 -133
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/interp.py +0 -59
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/perfmon.py +0 -36
- py2docfx/venv/venv1/Lib/site-packages/win32com/servers/test_pycomtest.py +0 -181
- py2docfx/venv/venv1/Lib/site-packages/win32com/storagecon.py +0 -142
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/GenTestScripts.py +0 -95
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/daodump.py +0 -88
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/errorSemantics.py +0 -243
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/pippo_server.py +0 -96
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/policySemantics.py +0 -115
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testADOEvents.py +0 -100
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testAXScript.py +0 -44
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testAccess.py +0 -185
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testArrays.py +0 -99
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testClipboard.py +0 -169
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testCollections.py +0 -159
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testConversionErrors.py +0 -35
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testDCOM.py +0 -50
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testDates.py +0 -74
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testDictionary.py +0 -101
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testDynamic.py +0 -83
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testExchange.py +0 -121
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testExplorer.py +0 -139
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testGIT.py +0 -142
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testGatewayAddresses.py +0 -149
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testIterators.py +0 -140
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testMSOffice.py +0 -184
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testMSOfficeEvents.py +0 -138
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testMarshal.py +0 -160
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPersist.py +0 -227
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPippo.py +0 -80
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPyComTest.py +0 -918
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testROT.py +0 -29
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testServers.py +0 -51
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testShell.py +0 -272
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testStorage.py +0 -88
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testStreams.py +0 -147
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testWMI.py +0 -18
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testall.py +0 -320
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testmakepy.py +0 -54
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testvb.py +0 -583
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testvbscript_regexp.py +0 -40
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/testxslt.py +0 -34
- py2docfx/venv/venv1/Lib/site-packages/win32com/test/util.py +0 -262
- py2docfx/venv/venv1/Lib/site-packages/win32com/universal.py +0 -224
- py2docfx/venv/venv1/Lib/site-packages/win32com/util.py +0 -35
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/__init__.py +0 -113
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/adsicon.py +0 -340
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/demos/objectPicker.py +0 -68
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/demos/scp.py +0 -565
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/demos/search.py +0 -151
- py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/demos/test.py +0 -274
- py2docfx/venv/venv1/Lib/site-packages/win32comext/authorization/__init__.py +0 -6
- py2docfx/venv/venv1/Lib/site-packages/win32comext/authorization/demos/EditSecurity.py +0 -229
- py2docfx/venv/venv1/Lib/site-packages/win32comext/authorization/demos/EditServiceSecurity.py +0 -219
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axcontrol/__init__.py +0 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/__init__.py +0 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/adb.py +0 -467
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/codecontainer.py +0 -279
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/contexts.py +0 -58
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/debugger.py +0 -238
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/documents.py +0 -135
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/dump.py +0 -57
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/expressions.py +0 -212
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/gateways.py +0 -583
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/stackframe.py +0 -178
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/util.py +0 -98
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/__init__.py +0 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/asputil.py +0 -13
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/debug.py +0 -223
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/error.py +0 -262
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/framework.py +0 -1291
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/pydumper.py +0 -78
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/pyscript.py +0 -438
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/pyscript_rexec.py +0 -54
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/scriptdispatch.py +0 -103
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/server/__init__.py +0 -0
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/server/axsite.py +0 -145
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/test/leakTest.py +0 -185
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/test/testHost.py +0 -240
- py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/test/testHost4Dbg.py +0 -83
- py2docfx/venv/venv1/Lib/site-packages/win32comext/bits/__init__.py +0 -6
- py2docfx/venv/venv1/Lib/site-packages/win32comext/bits/test/show_all_jobs.py +0 -48
- py2docfx/venv/venv1/Lib/site-packages/win32comext/bits/test/test_bits.py +0 -119
- py2docfx/venv/venv1/Lib/site-packages/win32comext/directsound/__init__.py +0 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/directsound/test/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/directsound/test/ds_record.py +0 -60
- py2docfx/venv/venv1/Lib/site-packages/win32comext/directsound/test/ds_test.py +0 -402
- py2docfx/venv/venv1/Lib/site-packages/win32comext/ifilter/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/ifilter/demo/filterDemo.py +0 -300
- py2docfx/venv/venv1/Lib/site-packages/win32comext/ifilter/ifiltercon.py +0 -110
- py2docfx/venv/venv1/Lib/site-packages/win32comext/internet/__init__.py +0 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/internet/inetcon.py +0 -261
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/__init__.py +0 -21
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/demos/mapisend.py +0 -98
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/emsabtags.py +0 -875
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/mapitags.py +0 -1023
- py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/mapiutil.py +0 -211
- py2docfx/venv/venv1/Lib/site-packages/win32comext/propsys/__init__.py +0 -1
- py2docfx/venv/venv1/Lib/site-packages/win32comext/propsys/pscon.py +0 -838
- py2docfx/venv/venv1/Lib/site-packages/win32comext/propsys/test/testpropsys.py +0 -5
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/__init__.py +0 -4
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/IActiveDesktop.py +0 -83
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/IFileOperationProgressSink.py +0 -179
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/IShellLinkDataList.py +0 -67
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/ITransferAdviseSink.py +0 -93
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/IUniformResourceLocator.py +0 -56
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/browse_for_folder.py +0 -45
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/create_link.py +0 -73
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/dump_link.py +0 -58
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/explorer_browser.py +0 -143
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/column_provider.py +0 -125
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/context_menu.py +0 -122
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/copy_hook.py +0 -84
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/empty_volume_cache.py +0 -188
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/folder_view.py +0 -866
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/icon_handler.py +0 -81
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/shell_view.py +0 -971
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/shellexecuteex.py +0 -19
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/viewstate.py +0 -68
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/walk_shell_folders.py +0 -24
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/shellcon.py +0 -1615
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/test/testSHFileOperation.py +0 -75
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/test/testShellFolder.py +0 -21
- py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/test/testShellItem.py +0 -69
- py2docfx/venv/venv1/Lib/site-packages/win32comext/taskscheduler/__init__.py +0 -6
- py2docfx/venv/venv1/Lib/site-packages/win32comext/taskscheduler/test/test_addtask.py +0 -66
- py2docfx/venv/venv1/Lib/site-packages/win32comext/taskscheduler/test/test_addtask_1.py +0 -68
- py2docfx/venv/venv1/Lib/site-packages/win32comext/taskscheduler/test/test_addtask_2.py +0 -49
- py2docfx/venv/venv1/Lib/site-packages/win32comext/taskscheduler/test/test_localsystem.py +0 -3
- py2docfx/venv/venv1/Scripts/pywin32_postinstall.py +0 -733
- py2docfx/venv/venv1/Scripts/pywin32_testall.py +0 -120
- {py2docfx-0.1.15rc2025477.dist-info → py2docfx-0.1.16.dist-info}/WHEEL +0 -0
- {py2docfx-0.1.15rc2025477.dist-info → py2docfx-0.1.16.dist-info}/top_level.txt +0 -0
@@ -1,113 +0,0 @@
|
|
1
|
-
import pywintypes
|
2
|
-
import win32api
|
3
|
-
import win32con
|
4
|
-
import win32gui
|
5
|
-
import win32print
|
6
|
-
|
7
|
-
pname = win32print.GetDefaultPrinter()
|
8
|
-
print(pname)
|
9
|
-
p = win32print.OpenPrinter(pname)
|
10
|
-
print("Printer handle: ", p)
|
11
|
-
print_processor = win32print.GetPrinter(p, 2)["pPrintProcessor"]
|
12
|
-
## call with last parm set to 0 to get total size needed for printer's DEVMODE
|
13
|
-
dmsize = win32print.DocumentProperties(0, p, pname, None, None, 0)
|
14
|
-
## dmDriverExtra should be total size - fixed size
|
15
|
-
driverextra = (
|
16
|
-
dmsize - pywintypes.DEVMODEType().Size
|
17
|
-
) ## need a better way to get DEVMODE.dmSize
|
18
|
-
dm = pywintypes.DEVMODEType(driverextra)
|
19
|
-
dm.Fields = dm.Fields | win32con.DM_ORIENTATION | win32con.DM_COPIES
|
20
|
-
dm.Orientation = win32con.DMORIENT_LANDSCAPE
|
21
|
-
dm.Copies = 2
|
22
|
-
win32print.DocumentProperties(
|
23
|
-
0, p, pname, dm, dm, win32con.DM_IN_BUFFER | win32con.DM_OUT_BUFFER
|
24
|
-
)
|
25
|
-
|
26
|
-
pDC = win32gui.CreateDC(print_processor, pname, dm)
|
27
|
-
printerwidth = win32print.GetDeviceCaps(pDC, win32con.PHYSICALWIDTH)
|
28
|
-
printerheight = win32print.GetDeviceCaps(pDC, win32con.PHYSICALHEIGHT)
|
29
|
-
|
30
|
-
hwnd = win32gui.GetDesktopWindow()
|
31
|
-
l, t, r, b = win32gui.GetWindowRect(hwnd)
|
32
|
-
desktopheight = b - t
|
33
|
-
desktopwidth = r - l
|
34
|
-
dDC = win32gui.GetWindowDC(hwnd)
|
35
|
-
|
36
|
-
dcDC = win32gui.CreateCompatibleDC(dDC)
|
37
|
-
dcBM = win32gui.CreateCompatibleBitmap(dDC, desktopwidth, desktopheight)
|
38
|
-
win32gui.SelectObject(dcDC, dcBM)
|
39
|
-
win32gui.StretchBlt(
|
40
|
-
dcDC,
|
41
|
-
0,
|
42
|
-
0,
|
43
|
-
desktopwidth,
|
44
|
-
desktopheight,
|
45
|
-
dDC,
|
46
|
-
0,
|
47
|
-
0,
|
48
|
-
desktopwidth,
|
49
|
-
desktopheight,
|
50
|
-
win32con.SRCCOPY,
|
51
|
-
)
|
52
|
-
|
53
|
-
pcDC = win32gui.CreateCompatibleDC(pDC)
|
54
|
-
pcBM = win32gui.CreateCompatibleBitmap(pDC, printerwidth, printerheight)
|
55
|
-
win32gui.SelectObject(pcDC, pcBM)
|
56
|
-
win32gui.StretchBlt(
|
57
|
-
pcDC,
|
58
|
-
0,
|
59
|
-
0,
|
60
|
-
printerwidth,
|
61
|
-
printerheight,
|
62
|
-
dcDC,
|
63
|
-
0,
|
64
|
-
0,
|
65
|
-
desktopwidth,
|
66
|
-
desktopheight,
|
67
|
-
win32con.SRCCOPY,
|
68
|
-
)
|
69
|
-
|
70
|
-
win32print.StartDoc(pDC, ("desktop.bmp", None, None, 0))
|
71
|
-
win32print.StartPage(pDC)
|
72
|
-
win32gui.StretchBlt(
|
73
|
-
pDC,
|
74
|
-
0,
|
75
|
-
0,
|
76
|
-
int(printerwidth * 0.9),
|
77
|
-
int(printerheight * 0.9),
|
78
|
-
pcDC,
|
79
|
-
0,
|
80
|
-
0,
|
81
|
-
printerwidth,
|
82
|
-
printerheight,
|
83
|
-
win32con.SRCCOPY,
|
84
|
-
)
|
85
|
-
|
86
|
-
font = win32gui.LOGFONT()
|
87
|
-
font.lfHeight = int(printerheight / 20)
|
88
|
-
font.lfWidth = font.lfHeight
|
89
|
-
font.lfWeight = 150
|
90
|
-
font.lfItalic = 1
|
91
|
-
font.lfUnderline = 1
|
92
|
-
hf = win32gui.CreateFontIndirect(font)
|
93
|
-
win32gui.SelectObject(pDC, hf)
|
94
|
-
win32gui.SetBkMode(pDC, win32con.TRANSPARENT)
|
95
|
-
win32gui.SetTextColor(pDC, win32api.RGB(0, 255, 0))
|
96
|
-
win32gui.DrawText(
|
97
|
-
pDC,
|
98
|
-
"Printed by Python!",
|
99
|
-
-1,
|
100
|
-
(0, 0, int(printerwidth * 0.9), int(printerheight * 0.9)),
|
101
|
-
win32con.DT_RIGHT | win32con.DT_BOTTOM | win32con.DT_SINGLELINE,
|
102
|
-
)
|
103
|
-
win32print.EndPage(pDC)
|
104
|
-
win32print.EndDoc(pDC)
|
105
|
-
|
106
|
-
win32print.ClosePrinter(p)
|
107
|
-
win32gui.DeleteObject(dcBM)
|
108
|
-
win32gui.DeleteObject(pcBM)
|
109
|
-
win32gui.DeleteObject(hf)
|
110
|
-
win32gui.DeleteDC(dDC)
|
111
|
-
win32gui.DeleteDC(dcDC)
|
112
|
-
win32gui.DeleteDC(pDC)
|
113
|
-
win32gui.DeleteDC(pcDC)
|
@@ -1,166 +0,0 @@
|
|
1
|
-
# rastest.py - test/demonstrate the win32ras module.
|
2
|
-
# Much of the code here contributed by Jethro Wright.
|
3
|
-
|
4
|
-
import os
|
5
|
-
import sys
|
6
|
-
|
7
|
-
import win32event
|
8
|
-
import win32ras
|
9
|
-
|
10
|
-
# Build a little dictionary of RAS states to decent strings.
|
11
|
-
# eg win32ras.RASCS_OpenPort -> "OpenPort"
|
12
|
-
stateMap = {
|
13
|
-
val: name[6:] for name, val in win32ras.__dict__.items() if name[:6] == "RASCS_"
|
14
|
-
}
|
15
|
-
|
16
|
-
# Use a lock so the callback can tell the main thread when it is finished.
|
17
|
-
callbackEvent = win32event.CreateEvent(None, 0, 0, None)
|
18
|
-
|
19
|
-
|
20
|
-
def Callback(hras, msg, state, error, exterror):
|
21
|
-
# print("Callback called with ", hras, msg, state, error, exterror)
|
22
|
-
stateName = stateMap.get(state, "Unknown state?")
|
23
|
-
print("Status is %s (%04lx), error code is %d" % (stateName, state, error))
|
24
|
-
finished = state in [win32ras.RASCS_Connected]
|
25
|
-
if finished:
|
26
|
-
win32event.SetEvent(callbackEvent)
|
27
|
-
if error != 0 or int(state) == win32ras.RASCS_Disconnected:
|
28
|
-
# we know for sure this is a good place to hangup....
|
29
|
-
print("Detected call failure: %s" % win32ras.GetErrorString(error))
|
30
|
-
HangUp(hras)
|
31
|
-
win32event.SetEvent(callbackEvent)
|
32
|
-
|
33
|
-
|
34
|
-
def ShowConnections():
|
35
|
-
print("All phone-book entries:")
|
36
|
-
for (name,) in win32ras.EnumEntries():
|
37
|
-
print(" ", name)
|
38
|
-
print("Current Connections:")
|
39
|
-
for con in win32ras.EnumConnections():
|
40
|
-
print(" ", con)
|
41
|
-
|
42
|
-
|
43
|
-
def EditEntry(entryName):
|
44
|
-
try:
|
45
|
-
win32ras.EditPhonebookEntry(0, None, entryName)
|
46
|
-
except win32ras.error as xxx_todo_changeme:
|
47
|
-
(rc, function, msg) = xxx_todo_changeme.args
|
48
|
-
print("Can not edit/find the RAS entry -", msg)
|
49
|
-
|
50
|
-
|
51
|
-
def HangUp(hras):
|
52
|
-
# trap potential, irrelevant errors from win32ras....
|
53
|
-
try:
|
54
|
-
win32ras.HangUp(hras)
|
55
|
-
except:
|
56
|
-
print("Tried to hang up gracefully on error, but didn't work....")
|
57
|
-
return None
|
58
|
-
|
59
|
-
|
60
|
-
def Connect(entryName, bUseCallback):
|
61
|
-
if bUseCallback:
|
62
|
-
theCallback = Callback
|
63
|
-
win32event.ResetEvent(callbackEvent)
|
64
|
-
else:
|
65
|
-
theCallback = None
|
66
|
-
# in order to *use* the username/password of a particular dun entry, one must
|
67
|
-
# explicitly get those params under win95....
|
68
|
-
try:
|
69
|
-
dp, b = win32ras.GetEntryDialParams(None, entryName)
|
70
|
-
except:
|
71
|
-
print("Couldn't find DUN entry: %s" % entryName)
|
72
|
-
else:
|
73
|
-
hras, rc = win32ras.Dial(
|
74
|
-
None, None, (entryName, "", "", dp[3], dp[4], ""), theCallback
|
75
|
-
)
|
76
|
-
# hras, rc = win32ras.Dial(None, None, (entryName, ),theCallback)
|
77
|
-
# print(hras, rc)
|
78
|
-
if not bUseCallback and rc != 0:
|
79
|
-
print("Could not dial the RAS connection:", win32ras.GetErrorString(rc))
|
80
|
-
hras = HangUp(hras)
|
81
|
-
# don't wait here if there's no need to....
|
82
|
-
elif (
|
83
|
-
bUseCallback
|
84
|
-
and win32event.WaitForSingleObject(callbackEvent, 60000)
|
85
|
-
!= win32event.WAIT_OBJECT_0
|
86
|
-
):
|
87
|
-
print("Gave up waiting for the process to complete!")
|
88
|
-
# sdk docs state one must explcitly hangup, even if there's an error....
|
89
|
-
try:
|
90
|
-
cs = win32ras.GetConnectStatus(hras)
|
91
|
-
except:
|
92
|
-
# on error, attempt a hang up anyway....
|
93
|
-
hras = HangUp(hras)
|
94
|
-
else:
|
95
|
-
if int(cs[0]) == win32ras.RASCS_Disconnected:
|
96
|
-
hras = HangUp(hras)
|
97
|
-
return hras, rc
|
98
|
-
|
99
|
-
|
100
|
-
def Disconnect(rasEntry):
|
101
|
-
# Need to find the entry
|
102
|
-
name = rasEntry.lower()
|
103
|
-
for hcon, entryName, devName, devType in win32ras.EnumConnections():
|
104
|
-
if entryName.lower() == name:
|
105
|
-
win32ras.HangUp(hcon)
|
106
|
-
print("Disconnected from", rasEntry)
|
107
|
-
break
|
108
|
-
else:
|
109
|
-
print("Could not find an open connection to", entryName)
|
110
|
-
|
111
|
-
|
112
|
-
usage = """
|
113
|
-
Usage: %s [-s] [-l] [-c connection] [-d connection]
|
114
|
-
-l : List phone-book entries and current connections.
|
115
|
-
-s : Show status while connecting/disconnecting (uses callbacks)
|
116
|
-
-c : Connect to the specified phonebook name.
|
117
|
-
-d : Disconnect from the specified phonebook name.
|
118
|
-
-e : Edit the specified phonebook entry.
|
119
|
-
"""
|
120
|
-
|
121
|
-
|
122
|
-
def main():
|
123
|
-
import getopt
|
124
|
-
|
125
|
-
try:
|
126
|
-
opts, args = getopt.getopt(sys.argv[1:], "slc:d:e:")
|
127
|
-
except getopt.error as why:
|
128
|
-
print(why)
|
129
|
-
print(
|
130
|
-
usage
|
131
|
-
% (
|
132
|
-
os.path.basename(
|
133
|
-
sys.argv[0],
|
134
|
-
)
|
135
|
-
)
|
136
|
-
)
|
137
|
-
return
|
138
|
-
|
139
|
-
bCallback = 0
|
140
|
-
if args or not opts:
|
141
|
-
print(
|
142
|
-
usage
|
143
|
-
% (
|
144
|
-
os.path.basename(
|
145
|
-
sys.argv[0],
|
146
|
-
)
|
147
|
-
)
|
148
|
-
)
|
149
|
-
return
|
150
|
-
for opt, val in opts:
|
151
|
-
if opt == "-s":
|
152
|
-
bCallback = 1
|
153
|
-
if opt == "-l":
|
154
|
-
ShowConnections()
|
155
|
-
if opt == "-c":
|
156
|
-
hras, rc = Connect(val, bCallback)
|
157
|
-
if hras is not None:
|
158
|
-
print(f"hras: 0x{hras:8x}, rc: 0x{rc:04x}")
|
159
|
-
if opt == "-d":
|
160
|
-
Disconnect(val)
|
161
|
-
if opt == "-e":
|
162
|
-
EditEntry(val)
|
163
|
-
|
164
|
-
|
165
|
-
if __name__ == "__main__":
|
166
|
-
main()
|
@@ -1,110 +0,0 @@
|
|
1
|
-
"""Lists various types of information about current user's access token,
|
2
|
-
including UAC status on Vista
|
3
|
-
"""
|
4
|
-
|
5
|
-
import pywintypes
|
6
|
-
import win32api
|
7
|
-
import win32con
|
8
|
-
import win32security
|
9
|
-
import winerror
|
10
|
-
from security_enums import (
|
11
|
-
SECURITY_IMPERSONATION_LEVEL,
|
12
|
-
TOKEN_ELEVATION_TYPE,
|
13
|
-
TOKEN_GROUP_ATTRIBUTES,
|
14
|
-
TOKEN_PRIVILEGE_ATTRIBUTES,
|
15
|
-
TOKEN_TYPE,
|
16
|
-
)
|
17
|
-
|
18
|
-
|
19
|
-
def dump_token(th):
|
20
|
-
token_type = win32security.GetTokenInformation(th, win32security.TokenType)
|
21
|
-
print("TokenType:", token_type, TOKEN_TYPE.lookup_name(token_type))
|
22
|
-
if token_type == win32security.TokenImpersonation:
|
23
|
-
imp_lvl = win32security.GetTokenInformation(
|
24
|
-
th, win32security.TokenImpersonationLevel
|
25
|
-
)
|
26
|
-
print(
|
27
|
-
"TokenImpersonationLevel:",
|
28
|
-
imp_lvl,
|
29
|
-
SECURITY_IMPERSONATION_LEVEL.lookup_name(imp_lvl),
|
30
|
-
)
|
31
|
-
|
32
|
-
print(
|
33
|
-
"TokenSessionId:",
|
34
|
-
win32security.GetTokenInformation(th, win32security.TokenSessionId),
|
35
|
-
)
|
36
|
-
|
37
|
-
privs = win32security.GetTokenInformation(th, win32security.TokenPrivileges)
|
38
|
-
print("TokenPrivileges:")
|
39
|
-
for priv_luid, priv_flags in privs:
|
40
|
-
flag_names, unk = TOKEN_PRIVILEGE_ATTRIBUTES.lookup_flags(priv_flags)
|
41
|
-
flag_desc = " ".join(flag_names)
|
42
|
-
if unk:
|
43
|
-
flag_desc += f"({unk})"
|
44
|
-
|
45
|
-
priv_name = win32security.LookupPrivilegeName("", priv_luid)
|
46
|
-
priv_desc = win32security.LookupPrivilegeDisplayName("", priv_name)
|
47
|
-
print("\t", priv_name, priv_desc, priv_flags, flag_desc)
|
48
|
-
|
49
|
-
print("TokenGroups:")
|
50
|
-
groups = win32security.GetTokenInformation(th, win32security.TokenGroups)
|
51
|
-
for group_sid, group_attr in groups:
|
52
|
-
flag_names, unk = TOKEN_GROUP_ATTRIBUTES.lookup_flags(group_attr)
|
53
|
-
flag_desc = " ".join(flag_names)
|
54
|
-
if unk:
|
55
|
-
flag_desc += f"({unk})"
|
56
|
-
if group_attr & TOKEN_GROUP_ATTRIBUTES.SE_GROUP_LOGON_ID:
|
57
|
-
sid_desc = "Logon sid"
|
58
|
-
else:
|
59
|
-
sid_desc = win32security.LookupAccountSid("", group_sid)
|
60
|
-
print("\t", group_sid, sid_desc, group_attr, flag_desc)
|
61
|
-
|
62
|
-
## Vista token information types, will throw (87, 'GetTokenInformation', 'The parameter is incorrect.') on earier OS
|
63
|
-
try:
|
64
|
-
is_elevated = win32security.GetTokenInformation(
|
65
|
-
th, win32security.TokenElevation
|
66
|
-
)
|
67
|
-
print("TokenElevation:", is_elevated)
|
68
|
-
except pywintypes.error as details:
|
69
|
-
if details.winerror != winerror.ERROR_INVALID_PARAMETER:
|
70
|
-
raise
|
71
|
-
return None
|
72
|
-
print(
|
73
|
-
"TokenHasRestrictions:",
|
74
|
-
win32security.GetTokenInformation(th, win32security.TokenHasRestrictions),
|
75
|
-
)
|
76
|
-
print(
|
77
|
-
"TokenMandatoryPolicy",
|
78
|
-
win32security.GetTokenInformation(th, win32security.TokenMandatoryPolicy),
|
79
|
-
)
|
80
|
-
print(
|
81
|
-
"TokenVirtualizationAllowed:",
|
82
|
-
win32security.GetTokenInformation(th, win32security.TokenVirtualizationAllowed),
|
83
|
-
)
|
84
|
-
print(
|
85
|
-
"TokenVirtualizationEnabled:",
|
86
|
-
win32security.GetTokenInformation(th, win32security.TokenVirtualizationEnabled),
|
87
|
-
)
|
88
|
-
|
89
|
-
elevation_type = win32security.GetTokenInformation(
|
90
|
-
th, win32security.TokenElevationType
|
91
|
-
)
|
92
|
-
print(
|
93
|
-
"TokenElevationType:",
|
94
|
-
elevation_type,
|
95
|
-
TOKEN_ELEVATION_TYPE.lookup_name(elevation_type),
|
96
|
-
)
|
97
|
-
if elevation_type != win32security.TokenElevationTypeDefault:
|
98
|
-
lt = win32security.GetTokenInformation(th, win32security.TokenLinkedToken)
|
99
|
-
print("TokenLinkedToken:", lt)
|
100
|
-
else:
|
101
|
-
lt = None
|
102
|
-
return lt
|
103
|
-
|
104
|
-
|
105
|
-
ph = win32api.GetCurrentProcess()
|
106
|
-
th = win32security.OpenProcessToken(ph, win32con.MAXIMUM_ALLOWED)
|
107
|
-
lt = dump_token(th)
|
108
|
-
if lt:
|
109
|
-
print("\n\nlinked token info:")
|
110
|
-
dump_token(lt)
|
@@ -1,49 +0,0 @@
|
|
1
|
-
import ntsecuritycon
|
2
|
-
import win32api
|
3
|
-
import win32con
|
4
|
-
import win32security
|
5
|
-
|
6
|
-
new_privs = (
|
7
|
-
(
|
8
|
-
win32security.LookupPrivilegeValue("", ntsecuritycon.SE_SECURITY_NAME),
|
9
|
-
win32con.SE_PRIVILEGE_ENABLED,
|
10
|
-
),
|
11
|
-
(
|
12
|
-
win32security.LookupPrivilegeValue("", ntsecuritycon.SE_CREATE_PERMANENT_NAME),
|
13
|
-
win32con.SE_PRIVILEGE_ENABLED,
|
14
|
-
),
|
15
|
-
(
|
16
|
-
win32security.LookupPrivilegeValue("", "SeEnableDelegationPrivilege"),
|
17
|
-
win32con.SE_PRIVILEGE_ENABLED,
|
18
|
-
), ##doesn't seem to be in ntsecuritycon.py ?
|
19
|
-
)
|
20
|
-
|
21
|
-
ph = win32api.GetCurrentProcess()
|
22
|
-
th = win32security.OpenProcessToken(
|
23
|
-
ph, win32security.TOKEN_ALL_ACCESS
|
24
|
-
) ##win32con.TOKEN_ADJUST_PRIVILEGES)
|
25
|
-
win32security.AdjustTokenPrivileges(th, 0, new_privs)
|
26
|
-
|
27
|
-
policy_handle = win32security.GetPolicyHandle("", win32security.POLICY_ALL_ACCESS)
|
28
|
-
tmp_sid = win32security.LookupAccountName("", "tmp")[0]
|
29
|
-
|
30
|
-
privs = [
|
31
|
-
ntsecuritycon.SE_DEBUG_NAME,
|
32
|
-
ntsecuritycon.SE_TCB_NAME,
|
33
|
-
ntsecuritycon.SE_RESTORE_NAME,
|
34
|
-
ntsecuritycon.SE_REMOTE_SHUTDOWN_NAME,
|
35
|
-
]
|
36
|
-
win32security.LsaAddAccountRights(policy_handle, tmp_sid, privs)
|
37
|
-
|
38
|
-
privlist = win32security.LsaEnumerateAccountRights(policy_handle, tmp_sid)
|
39
|
-
for priv in privlist:
|
40
|
-
print(priv)
|
41
|
-
|
42
|
-
privs = [ntsecuritycon.SE_DEBUG_NAME, ntsecuritycon.SE_TCB_NAME]
|
43
|
-
win32security.LsaRemoveAccountRights(policy_handle, tmp_sid, 0, privs)
|
44
|
-
|
45
|
-
privlist = win32security.LsaEnumerateAccountRights(policy_handle, tmp_sid)
|
46
|
-
for priv in privlist:
|
47
|
-
print(priv)
|
48
|
-
|
49
|
-
win32security.LsaClose(policy_handle)
|
@@ -1,170 +0,0 @@
|
|
1
|
-
import os
|
2
|
-
|
3
|
-
import ntsecuritycon
|
4
|
-
import win32api
|
5
|
-
import win32con
|
6
|
-
import win32security
|
7
|
-
from security_enums import ACCESS_MODE, ACE_FLAGS, TRUSTEE_FORM, TRUSTEE_TYPE
|
8
|
-
|
9
|
-
fname = os.path.join(win32api.GetTempPath(), "win32security_test.txt")
|
10
|
-
f = open(fname, "w")
|
11
|
-
f.write("Hello from Python\n")
|
12
|
-
f.close()
|
13
|
-
print("Testing on file", fname)
|
14
|
-
|
15
|
-
new_privs = (
|
16
|
-
(
|
17
|
-
win32security.LookupPrivilegeValue("", ntsecuritycon.SE_SECURITY_NAME),
|
18
|
-
win32con.SE_PRIVILEGE_ENABLED,
|
19
|
-
),
|
20
|
-
(
|
21
|
-
win32security.LookupPrivilegeValue("", ntsecuritycon.SE_SHUTDOWN_NAME),
|
22
|
-
win32con.SE_PRIVILEGE_ENABLED,
|
23
|
-
),
|
24
|
-
(
|
25
|
-
win32security.LookupPrivilegeValue("", ntsecuritycon.SE_RESTORE_NAME),
|
26
|
-
win32con.SE_PRIVILEGE_ENABLED,
|
27
|
-
),
|
28
|
-
(
|
29
|
-
win32security.LookupPrivilegeValue("", ntsecuritycon.SE_TAKE_OWNERSHIP_NAME),
|
30
|
-
win32con.SE_PRIVILEGE_ENABLED,
|
31
|
-
),
|
32
|
-
(
|
33
|
-
win32security.LookupPrivilegeValue("", ntsecuritycon.SE_CREATE_PERMANENT_NAME),
|
34
|
-
win32con.SE_PRIVILEGE_ENABLED,
|
35
|
-
),
|
36
|
-
(
|
37
|
-
win32security.LookupPrivilegeValue("", "SeEnableDelegationPrivilege"),
|
38
|
-
win32con.SE_PRIVILEGE_ENABLED,
|
39
|
-
), ##doesn't seem to be in ntsecuritycon.py ?
|
40
|
-
)
|
41
|
-
|
42
|
-
ph = win32api.GetCurrentProcess()
|
43
|
-
th = win32security.OpenProcessToken(
|
44
|
-
ph, win32security.TOKEN_ALL_ACCESS
|
45
|
-
) ##win32con.TOKEN_ADJUST_PRIVILEGES)
|
46
|
-
win32security.AdjustTokenPrivileges(th, 0, new_privs)
|
47
|
-
|
48
|
-
all_security_info = (
|
49
|
-
win32security.OWNER_SECURITY_INFORMATION
|
50
|
-
| win32security.GROUP_SECURITY_INFORMATION
|
51
|
-
| win32security.DACL_SECURITY_INFORMATION
|
52
|
-
| win32security.SACL_SECURITY_INFORMATION
|
53
|
-
)
|
54
|
-
|
55
|
-
sd = win32security.GetFileSecurity(fname, all_security_info)
|
56
|
-
|
57
|
-
old_sacl = sd.GetSecurityDescriptorSacl()
|
58
|
-
if old_sacl is None:
|
59
|
-
old_sacl = win32security.ACL()
|
60
|
-
old_dacl = sd.GetSecurityDescriptorDacl()
|
61
|
-
if old_dacl is None:
|
62
|
-
old_dacl = win32security.ACL()
|
63
|
-
|
64
|
-
my_sid = win32security.GetTokenInformation(th, ntsecuritycon.TokenUser)[0]
|
65
|
-
tmp_sid = win32security.LookupAccountName("", "tmp")[0]
|
66
|
-
pwr_sid = win32security.LookupAccountName("", "Power Users")[0]
|
67
|
-
|
68
|
-
|
69
|
-
## MultipleTrustee,MultipleTrusteeOperation,TrusteeForm,TrusteeType,Identifier
|
70
|
-
## first two are ignored
|
71
|
-
my_trustee = {}
|
72
|
-
my_trustee["MultipleTrustee"] = None
|
73
|
-
my_trustee["MultipleTrusteeOperation"] = 0
|
74
|
-
my_trustee["TrusteeForm"] = TRUSTEE_FORM.TRUSTEE_IS_SID
|
75
|
-
my_trustee["TrusteeType"] = TRUSTEE_TYPE.TRUSTEE_IS_USER
|
76
|
-
my_trustee["Identifier"] = my_sid
|
77
|
-
|
78
|
-
tmp_trustee = {}
|
79
|
-
tmp_trustee["MultipleTrustee"] = None
|
80
|
-
tmp_trustee["MultipleTrusteeOperation"] = 0
|
81
|
-
tmp_trustee["TrusteeForm"] = TRUSTEE_FORM.TRUSTEE_IS_NAME
|
82
|
-
tmp_trustee["TrusteeType"] = TRUSTEE_TYPE.TRUSTEE_IS_USER
|
83
|
-
tmp_trustee["Identifier"] = "rupole\\tmp"
|
84
|
-
|
85
|
-
pwr_trustee = {}
|
86
|
-
pwr_trustee["MultipleTrustee"] = None
|
87
|
-
pwr_trustee["MultipleTrusteeOperation"] = 0
|
88
|
-
pwr_trustee["TrusteeForm"] = TRUSTEE_FORM.TRUSTEE_IS_SID
|
89
|
-
pwr_trustee["TrusteeType"] = TRUSTEE_TYPE.TRUSTEE_IS_USER
|
90
|
-
pwr_trustee["Identifier"] = pwr_sid
|
91
|
-
|
92
|
-
expl_list = []
|
93
|
-
expl_list.append(
|
94
|
-
{
|
95
|
-
"Trustee": my_trustee,
|
96
|
-
"Inheritance": ACE_FLAGS.NO_INHERITANCE,
|
97
|
-
"AccessMode": ACCESS_MODE.SET_AUDIT_SUCCESS, ##|ACCESS_MODE.SET_AUDIT_FAILURE,
|
98
|
-
"AccessPermissions": win32con.GENERIC_ALL,
|
99
|
-
}
|
100
|
-
)
|
101
|
-
|
102
|
-
expl_list.append(
|
103
|
-
{
|
104
|
-
"Trustee": my_trustee,
|
105
|
-
"Inheritance": ACE_FLAGS.NO_INHERITANCE,
|
106
|
-
"AccessMode": ACCESS_MODE.SET_AUDIT_FAILURE,
|
107
|
-
"AccessPermissions": win32con.GENERIC_ALL,
|
108
|
-
}
|
109
|
-
)
|
110
|
-
|
111
|
-
expl_list.append(
|
112
|
-
{
|
113
|
-
"Trustee": tmp_trustee,
|
114
|
-
"Inheritance": ACE_FLAGS.NO_INHERITANCE,
|
115
|
-
"AccessMode": ACCESS_MODE.SET_AUDIT_SUCCESS,
|
116
|
-
"AccessPermissions": win32con.GENERIC_ALL,
|
117
|
-
}
|
118
|
-
)
|
119
|
-
|
120
|
-
expl_list.append(
|
121
|
-
{
|
122
|
-
"Trustee": tmp_trustee,
|
123
|
-
"Inheritance": ACE_FLAGS.NO_INHERITANCE,
|
124
|
-
"AccessMode": ACCESS_MODE.SET_AUDIT_FAILURE,
|
125
|
-
"AccessPermissions": win32con.GENERIC_ALL,
|
126
|
-
}
|
127
|
-
)
|
128
|
-
old_sacl.SetEntriesInAcl(expl_list)
|
129
|
-
|
130
|
-
expl_list = []
|
131
|
-
expl_list.append(
|
132
|
-
{
|
133
|
-
"Trustee": tmp_trustee,
|
134
|
-
"Inheritance": ACE_FLAGS.NO_INHERITANCE,
|
135
|
-
"AccessMode": ACCESS_MODE.DENY_ACCESS,
|
136
|
-
"AccessPermissions": win32con.DELETE,
|
137
|
-
}
|
138
|
-
)
|
139
|
-
|
140
|
-
expl_list.append(
|
141
|
-
{
|
142
|
-
"Trustee": tmp_trustee,
|
143
|
-
"Inheritance": ACE_FLAGS.NO_INHERITANCE,
|
144
|
-
"AccessMode": ACCESS_MODE.GRANT_ACCESS,
|
145
|
-
"AccessPermissions": win32con.WRITE_OWNER,
|
146
|
-
}
|
147
|
-
)
|
148
|
-
expl_list.append(
|
149
|
-
{
|
150
|
-
"Trustee": pwr_trustee,
|
151
|
-
"Inheritance": ACE_FLAGS.NO_INHERITANCE,
|
152
|
-
"AccessMode": ACCESS_MODE.GRANT_ACCESS,
|
153
|
-
"AccessPermissions": win32con.GENERIC_READ,
|
154
|
-
}
|
155
|
-
)
|
156
|
-
expl_list.append(
|
157
|
-
{
|
158
|
-
"Trustee": my_trustee,
|
159
|
-
"Inheritance": ACE_FLAGS.NO_INHERITANCE,
|
160
|
-
"AccessMode": ACCESS_MODE.GRANT_ACCESS,
|
161
|
-
"AccessPermissions": win32con.GENERIC_ALL,
|
162
|
-
}
|
163
|
-
)
|
164
|
-
|
165
|
-
old_dacl.SetEntriesInAcl(expl_list)
|
166
|
-
sd.SetSecurityDescriptorSacl(1, old_sacl, 1)
|
167
|
-
sd.SetSecurityDescriptorDacl(1, old_dacl, 1)
|
168
|
-
sd.SetSecurityDescriptorOwner(pwr_sid, 1)
|
169
|
-
|
170
|
-
win32security.SetFileSecurity(fname, all_security_info, sd)
|
@@ -1,39 +0,0 @@
|
|
1
|
-
import win32security
|
2
|
-
|
3
|
-
policy_handle = win32security.GetPolicyHandle("rupole", win32security.POLICY_ALL_ACCESS)
|
4
|
-
|
5
|
-
# mod_nbr, mod_time = win32security.LsaQueryInformationPolicy(policy_handle,win32security.PolicyModificationInformation)
|
6
|
-
# print(mod_nbr, mod_time)
|
7
|
-
|
8
|
-
(
|
9
|
-
domain_name,
|
10
|
-
dns_domain_name,
|
11
|
-
dns_forest_name,
|
12
|
-
domain_guid,
|
13
|
-
domain_sid,
|
14
|
-
) = win32security.LsaQueryInformationPolicy(
|
15
|
-
policy_handle, win32security.PolicyDnsDomainInformation
|
16
|
-
)
|
17
|
-
print(domain_name, dns_domain_name, dns_forest_name, domain_guid, domain_sid)
|
18
|
-
|
19
|
-
event_audit_info = win32security.LsaQueryInformationPolicy(
|
20
|
-
policy_handle, win32security.PolicyAuditEventsInformation
|
21
|
-
)
|
22
|
-
print(event_audit_info)
|
23
|
-
|
24
|
-
domain_name, sid = win32security.LsaQueryInformationPolicy(
|
25
|
-
policy_handle, win32security.PolicyPrimaryDomainInformation
|
26
|
-
)
|
27
|
-
print(domain_name, sid)
|
28
|
-
|
29
|
-
domain_name, sid = win32security.LsaQueryInformationPolicy(
|
30
|
-
policy_handle, win32security.PolicyAccountDomainInformation
|
31
|
-
)
|
32
|
-
print(domain_name, sid)
|
33
|
-
|
34
|
-
server_role = win32security.LsaQueryInformationPolicy(
|
35
|
-
policy_handle, win32security.PolicyLsaServerRoleInformation
|
36
|
-
)
|
37
|
-
print("server role: ", server_role)
|
38
|
-
|
39
|
-
win32security.LsaClose(policy_handle)
|
@@ -1,35 +0,0 @@
|
|
1
|
-
import ntsecuritycon
|
2
|
-
import win32api
|
3
|
-
import win32con
|
4
|
-
import win32security
|
5
|
-
|
6
|
-
new_privs = (
|
7
|
-
(
|
8
|
-
win32security.LookupPrivilegeValue("", ntsecuritycon.SE_SECURITY_NAME),
|
9
|
-
win32con.SE_PRIVILEGE_ENABLED,
|
10
|
-
),
|
11
|
-
(
|
12
|
-
win32security.LookupPrivilegeValue("", ntsecuritycon.SE_CREATE_PERMANENT_NAME),
|
13
|
-
win32con.SE_PRIVILEGE_ENABLED,
|
14
|
-
),
|
15
|
-
(
|
16
|
-
win32security.LookupPrivilegeValue("", "SeEnableDelegationPrivilege"),
|
17
|
-
win32con.SE_PRIVILEGE_ENABLED,
|
18
|
-
), ##doesn't seem to be in ntsecuritycon.py ?
|
19
|
-
)
|
20
|
-
|
21
|
-
ph = win32api.GetCurrentProcess()
|
22
|
-
th = win32security.OpenProcessToken(
|
23
|
-
ph, win32security.TOKEN_ALL_ACCESS
|
24
|
-
) ##win32con.TOKEN_ADJUST_PRIVILEGES)
|
25
|
-
win32security.AdjustTokenPrivileges(th, 0, new_privs)
|
26
|
-
|
27
|
-
policy_handle = win32security.GetPolicyHandle("", win32security.POLICY_ALL_ACCESS)
|
28
|
-
|
29
|
-
sidlist = win32security.LsaEnumerateAccountsWithUserRight(
|
30
|
-
policy_handle, ntsecuritycon.SE_RESTORE_NAME
|
31
|
-
)
|
32
|
-
for sid in sidlist:
|
33
|
-
print(win32security.LookupAccountSid("", sid))
|
34
|
-
|
35
|
-
win32security.LsaClose(policy_handle)
|