py2docfx 0.1.15rc2025477__py3-none-any.whl → 0.1.16.dev2052678__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.
Files changed (604) hide show
  1. py2docfx/docfx_yaml/process_doctree.py +21 -34
  2. py2docfx/docfx_yaml/tests/test_method_arguments.py +1 -7
  3. py2docfx/docfx_yaml/tests/test_process_doctree.py +120 -0
  4. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_core_metadata.py +21 -5
  5. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/_msvccompiler.py +13 -0
  6. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/ccompiler.py +5 -2
  7. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build.py +1 -6
  8. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_clib.py +1 -9
  9. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_ext.py +1 -8
  10. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/check.py +1 -1
  11. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/config.py +0 -2
  12. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install.py +8 -17
  13. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compat/numpy.py +2 -0
  14. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/base.py +8 -5
  15. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/msvc.py +1 -1
  16. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/unix.py +15 -1
  17. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/dist.py +2 -1
  18. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/sysconfig.py +0 -10
  19. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/tests/test_build_ext.py +60 -5
  20. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/unixccompiler.py +6 -0
  21. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/util.py +7 -6
  22. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_normalization.py +29 -0
  23. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/__init__.py +1 -1
  24. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/_bdist_wheel.py +613 -0
  25. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/_setuptools_logging.py +2 -2
  26. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/bdist_wheel.py +25 -594
  27. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/cli/__init__.py +6 -6
  28. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/cli/convert.py +282 -223
  29. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/macosx_libfile.py +22 -9
  30. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/metadata.py +16 -13
  31. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/util.py +0 -9
  32. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_vendor/wheel/wheelfile.py +40 -9
  33. py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/bdist_wheel.py +6 -2
  34. py2docfx/venv/basevenv/Lib/site-packages/setuptools/config/_apply_pyprojecttoml.py +49 -11
  35. py2docfx/venv/basevenv/Lib/site-packages/setuptools/config/_validate_pyproject/extra_validations.py +31 -1
  36. py2docfx/venv/basevenv/Lib/site-packages/setuptools/config/_validate_pyproject/fastjsonschema_validations.py +222 -129
  37. py2docfx/venv/basevenv/Lib/site-packages/setuptools/config/_validate_pyproject/formats.py +30 -3
  38. py2docfx/venv/basevenv/Lib/site-packages/setuptools/dist.py +168 -51
  39. py2docfx/venv/basevenv/Lib/site-packages/setuptools/msvc.py +12 -3
  40. py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/config/test_apply_pyprojecttoml.py +246 -13
  41. py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/config/test_setupcfg.py +42 -29
  42. py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/integration/test_pip_install_sdist.py +1 -1
  43. py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_bdist_wheel.py +93 -8
  44. py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_build_meta.py +17 -4
  45. py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_core_metadata.py +45 -0
  46. py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_egg_info.py +24 -4
  47. py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_sdist.py +13 -1
  48. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/__init__.py +1 -1
  49. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/any_pb2.py +4 -4
  50. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/api_pb2.py +4 -4
  51. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/compiler/plugin_pb2.py +4 -4
  52. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/descriptor_database.py +22 -4
  53. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/descriptor_pb2.py +82 -35
  54. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/duration_pb2.py +4 -4
  55. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/empty_pb2.py +4 -4
  56. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/field_mask_pb2.py +4 -4
  57. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/builder.py +4 -3
  58. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/containers.py +13 -0
  59. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/decoder.py +62 -115
  60. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/python_edition_defaults.py +1 -1
  61. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/python_message.py +15 -18
  62. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/testing_refleaks.py +4 -1
  63. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/type_checkers.py +5 -0
  64. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/well_known_types.py +3 -3
  65. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/json_format.py +25 -9
  66. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/message.py +26 -0
  67. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/message_factory.py +0 -63
  68. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/proto.py +38 -1
  69. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/proto_text.py +129 -0
  70. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/reflection.py +0 -49
  71. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/runtime_version.py +3 -3
  72. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/source_context_pb2.py +4 -4
  73. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/struct_pb2.py +4 -4
  74. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/symbol_database.py +0 -18
  75. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/text_format.py +8 -3
  76. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/timestamp_pb2.py +4 -4
  77. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/type_pb2.py +4 -4
  78. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/unknown_fields.py +3 -4
  79. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/wrappers_pb2.py +4 -4
  80. py2docfx/venv/venv1/Lib/site-packages/msal/__init__.py +1 -1
  81. py2docfx/venv/venv1/Lib/site-packages/msal/application.py +51 -17
  82. py2docfx/venv/venv1/Lib/site-packages/msal/broker.py +18 -4
  83. py2docfx/venv/venv1/Lib/site-packages/msal/cloudshell.py +5 -1
  84. py2docfx/venv/venv1/Lib/site-packages/msal/managed_identity.py +5 -4
  85. py2docfx/venv/venv1/Lib/site-packages/msal/sku.py +6 -0
  86. py2docfx/venv/venv1/Lib/site-packages/msal/token_cache.py +31 -10
  87. py2docfx/venv/venv1/Lib/site-packages/msal_extensions/__init__.py +2 -3
  88. py2docfx/venv/venv1/Lib/site-packages/msal_extensions/cache_lock.py +4 -1
  89. py2docfx/venv/venv1/Lib/site-packages/msal_extensions/filelock.py +62 -0
  90. py2docfx/venv/venv1/Lib/site-packages/msal_extensions/libsecret.py +1 -1
  91. py2docfx/venv/venv1/Lib/site-packages/msal_extensions/token_cache.py +7 -1
  92. py2docfx/venv/venv1/Lib/site-packages/pyasn1_modules/__init__.py +1 -1
  93. py2docfx/venv/venv1/Lib/site-packages/setuptools/_core_metadata.py +21 -5
  94. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/_msvccompiler.py +13 -0
  95. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/ccompiler.py +5 -2
  96. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build.py +1 -6
  97. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_clib.py +1 -9
  98. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_ext.py +1 -8
  99. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/check.py +1 -1
  100. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/config.py +0 -2
  101. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install.py +8 -17
  102. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compat/numpy.py +2 -0
  103. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/base.py +8 -5
  104. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/msvc.py +1 -1
  105. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/unix.py +15 -1
  106. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/dist.py +2 -1
  107. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/sysconfig.py +0 -10
  108. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/tests/test_build_ext.py +60 -5
  109. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/unixccompiler.py +6 -0
  110. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/util.py +7 -6
  111. py2docfx/venv/venv1/Lib/site-packages/setuptools/_normalization.py +29 -0
  112. py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/__init__.py +1 -1
  113. py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/_bdist_wheel.py +613 -0
  114. py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/_setuptools_logging.py +2 -2
  115. py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/bdist_wheel.py +25 -594
  116. py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/cli/__init__.py +6 -6
  117. py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/cli/convert.py +282 -223
  118. py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/macosx_libfile.py +22 -9
  119. py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/metadata.py +16 -13
  120. py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/util.py +0 -9
  121. py2docfx/venv/venv1/Lib/site-packages/setuptools/_vendor/wheel/wheelfile.py +40 -9
  122. py2docfx/venv/venv1/Lib/site-packages/setuptools/command/bdist_wheel.py +6 -2
  123. py2docfx/venv/venv1/Lib/site-packages/setuptools/config/_apply_pyprojecttoml.py +49 -11
  124. py2docfx/venv/venv1/Lib/site-packages/setuptools/config/_validate_pyproject/extra_validations.py +31 -1
  125. py2docfx/venv/venv1/Lib/site-packages/setuptools/config/_validate_pyproject/fastjsonschema_validations.py +222 -129
  126. py2docfx/venv/venv1/Lib/site-packages/setuptools/config/_validate_pyproject/formats.py +30 -3
  127. py2docfx/venv/venv1/Lib/site-packages/setuptools/dist.py +168 -51
  128. py2docfx/venv/venv1/Lib/site-packages/setuptools/msvc.py +12 -3
  129. py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/config/test_apply_pyprojecttoml.py +246 -13
  130. py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/config/test_setupcfg.py +42 -29
  131. py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/integration/test_pip_install_sdist.py +1 -1
  132. py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_bdist_wheel.py +93 -8
  133. py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_build_meta.py +17 -4
  134. py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_core_metadata.py +45 -0
  135. py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_egg_info.py +24 -4
  136. py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_sdist.py +13 -1
  137. py2docfx/venv/venv1/Lib/site-packages/typing_extensions.py +999 -74
  138. {py2docfx-0.1.15rc2025477.dist-info → py2docfx-0.1.16.dev2052678.dist-info}/METADATA +1 -1
  139. {py2docfx-0.1.15rc2025477.dist-info → py2docfx-0.1.16.dev2052678.dist-info}/RECORD +141 -596
  140. py2docfx/venv/venv1/Lib/site-packages/adodbapi/__init__.py +0 -82
  141. py2docfx/venv/venv1/Lib/site-packages/adodbapi/ado_consts.py +0 -283
  142. py2docfx/venv/venv1/Lib/site-packages/adodbapi/adodbapi.py +0 -1153
  143. py2docfx/venv/venv1/Lib/site-packages/adodbapi/apibase.py +0 -723
  144. py2docfx/venv/venv1/Lib/site-packages/adodbapi/examples/db_print.py +0 -72
  145. py2docfx/venv/venv1/Lib/site-packages/adodbapi/examples/db_table_names.py +0 -21
  146. py2docfx/venv/venv1/Lib/site-packages/adodbapi/examples/xls_read.py +0 -41
  147. py2docfx/venv/venv1/Lib/site-packages/adodbapi/examples/xls_write.py +0 -41
  148. py2docfx/venv/venv1/Lib/site-packages/adodbapi/is64bit.py +0 -34
  149. py2docfx/venv/venv1/Lib/site-packages/adodbapi/process_connect_string.py +0 -137
  150. py2docfx/venv/venv1/Lib/site-packages/adodbapi/schema_table.py +0 -16
  151. py2docfx/venv/venv1/Lib/site-packages/adodbapi/setup.py +0 -68
  152. py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/adodbapitest.py +0 -1547
  153. py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/adodbapitestconfig.py +0 -184
  154. py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/dbapi20.py +0 -879
  155. py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/is64bit.py +0 -34
  156. py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/setuptestframework.py +0 -98
  157. py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/test_adodbapi_dbapi20.py +0 -195
  158. py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/tryconnection.py +0 -30
  159. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/_parameterized.py +0 -420
  160. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/service.py +0 -213
  161. py2docfx/venv/venv1/Lib/site-packages/isapi/__init__.py +0 -39
  162. py2docfx/venv/venv1/Lib/site-packages/isapi/install.py +0 -809
  163. py2docfx/venv/venv1/Lib/site-packages/isapi/isapicon.py +0 -121
  164. py2docfx/venv/venv1/Lib/site-packages/isapi/samples/advanced.py +0 -218
  165. py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector.py +0 -116
  166. py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector_asynch.py +0 -85
  167. py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector_with_filter.py +0 -162
  168. py2docfx/venv/venv1/Lib/site-packages/isapi/samples/test.py +0 -195
  169. py2docfx/venv/venv1/Lib/site-packages/isapi/simple.py +0 -73
  170. py2docfx/venv/venv1/Lib/site-packages/isapi/test/extension_simple.py +0 -114
  171. py2docfx/venv/venv1/Lib/site-packages/isapi/threaded_extension.py +0 -191
  172. py2docfx/venv/venv1/Lib/site-packages/portalocker/__about__.py +0 -6
  173. py2docfx/venv/venv1/Lib/site-packages/portalocker/__init__.py +0 -79
  174. py2docfx/venv/venv1/Lib/site-packages/portalocker/__main__.py +0 -122
  175. py2docfx/venv/venv1/Lib/site-packages/portalocker/constants.py +0 -59
  176. py2docfx/venv/venv1/Lib/site-packages/portalocker/exceptions.py +0 -27
  177. py2docfx/venv/venv1/Lib/site-packages/portalocker/portalocker.py +0 -154
  178. py2docfx/venv/venv1/Lib/site-packages/portalocker/redis.py +0 -236
  179. py2docfx/venv/venv1/Lib/site-packages/portalocker/utils.py +0 -569
  180. py2docfx/venv/venv1/Lib/site-packages/pythoncom.py +0 -4
  181. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/basictimerapp.py +0 -258
  182. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/customprint.py +0 -183
  183. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/demoutils.py +0 -63
  184. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/dlgappdemo.py +0 -51
  185. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/dojobapp.py +0 -71
  186. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/helloapp.py +0 -53
  187. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/cmdserver.py +0 -113
  188. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/createwin.py +0 -114
  189. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/demoutils.py +0 -65
  190. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/dibdemo.py +0 -73
  191. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/dlgtest.py +0 -145
  192. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/dyndlg.py +0 -104
  193. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/fontdemo.py +0 -85
  194. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/guidemo.py +0 -53
  195. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/hiertest.py +0 -138
  196. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/menutest.py +0 -13
  197. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/objdoc.py +0 -57
  198. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/demoutils.py +0 -63
  199. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/flash.py +0 -95
  200. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/msoffice.py +0 -159
  201. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/ocxserialtest.py +0 -132
  202. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/ocxtest.py +0 -243
  203. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/webbrowser.py +0 -72
  204. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/openGLDemo.py +0 -415
  205. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/progressbar.py +0 -105
  206. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/sliderdemo.py +0 -76
  207. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/splittst.py +0 -79
  208. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/threadedgui.py +0 -189
  209. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/toolbar.py +0 -105
  210. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/__init__.py +0 -3
  211. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/__init__.py +0 -133
  212. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/configui.py +0 -34
  213. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/dbgcon.py +0 -31
  214. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/dbgpyapp.py +0 -48
  215. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/debugger.py +0 -1097
  216. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/fail.py +0 -54
  217. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/__init__.py +0 -0
  218. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/ideoptions.py +0 -136
  219. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/list.py +0 -146
  220. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/login.py +0 -155
  221. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/status.py +0 -242
  222. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/docking/DockingBar.py +0 -676
  223. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/docking/__init__.py +0 -0
  224. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/__init__.py +0 -0
  225. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/app.py +0 -411
  226. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/bitmap.py +0 -168
  227. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/cmdline.py +0 -54
  228. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/dbgcommands.py +0 -188
  229. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/dlgappcore.py +0 -76
  230. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/ModuleBrowser.py +0 -235
  231. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/__init__.py +0 -105
  232. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/color/__init__.py +0 -0
  233. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/color/coloreditor.py +0 -646
  234. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/configui.py +0 -299
  235. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/document.py +0 -379
  236. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/editor.py +0 -511
  237. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/frame.py +0 -74
  238. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/template.py +0 -59
  239. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/vss.py +0 -104
  240. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/help.py +0 -173
  241. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/interact.py +0 -995
  242. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/intpyapp.py +0 -552
  243. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/intpydde.py +0 -65
  244. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/scriptutils.py +0 -684
  245. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/sgrepmdi.py +0 -749
  246. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/startup.py +0 -70
  247. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/stdin.py +0 -172
  248. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/toolmenu.py +0 -279
  249. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/window.py +0 -14
  250. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/winout.py +0 -589
  251. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/AutoExpand.py +0 -95
  252. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/AutoIndent.py +0 -536
  253. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/CallTips.py +0 -216
  254. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/FormatParagraph.py +0 -166
  255. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/IdleHistory.py +0 -87
  256. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/PyParse.py +0 -585
  257. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/__init__.py +0 -1
  258. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/__init__.py +0 -0
  259. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/activex.py +0 -79
  260. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/afxres.py +0 -501
  261. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/dialog.py +0 -277
  262. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/docview.py +0 -151
  263. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/object.py +0 -66
  264. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/thread.py +0 -25
  265. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/window.py +0 -50
  266. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/IDLEenvironment.py +0 -593
  267. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/__init__.py +0 -1
  268. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/bindings.py +0 -180
  269. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/config.py +0 -363
  270. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/configui.py +0 -291
  271. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/control.py +0 -565
  272. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/document.py +0 -312
  273. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/find.py +0 -511
  274. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/formatter.py +0 -704
  275. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/keycodes.py +0 -190
  276. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/scintillacon.py +0 -3083
  277. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/view.py +0 -841
  278. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/TraceCollector.py +0 -79
  279. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/__init__.py +0 -0
  280. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/browseProjects.py +0 -323
  281. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/browser.py +0 -494
  282. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/hierlist.py +0 -353
  283. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/regedit.py +0 -382
  284. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/regpy.py +0 -80
  285. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/BackupRead_BackupWrite.py +0 -119
  286. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/BackupSeek_streamheaders.py +0 -137
  287. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/CopyFileEx.py +0 -57
  288. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/CreateFileTransacted_MiniVersion.py +0 -122
  289. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/EvtFormatMessage.py +0 -83
  290. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/EvtSubscribe_pull.py +0 -28
  291. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/EvtSubscribe_push.py +0 -32
  292. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/FileSecurityTest.py +0 -137
  293. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/GetSaveFileName.py +0 -43
  294. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/NetValidatePasswordPolicy.py +0 -127
  295. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/OpenEncryptedFileRaw.py +0 -66
  296. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/RegCreateKeyTransacted.py +0 -60
  297. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/RegRestoreKey.py +0 -71
  298. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/SystemParametersInfo.py +0 -210
  299. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/c_extension/setup.py +0 -26
  300. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/dde/ddeclient.py +0 -18
  301. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/dde/ddeserver.py +0 -42
  302. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/desktopmanager.py +0 -246
  303. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/eventLogDemo.py +0 -143
  304. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/getfilever.py +0 -33
  305. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/mmapfile_demo.py +0 -101
  306. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/pipes/cat.py +0 -17
  307. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/pipes/runproc.py +0 -114
  308. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/print_desktop.py +0 -113
  309. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/rastest.py +0 -166
  310. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/GetTokenInformation.py +0 -110
  311. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/account_rights.py +0 -49
  312. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/explicit_entries.py +0 -170
  313. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/get_policy_info.py +0 -39
  314. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/list_rights.py +0 -35
  315. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/localized_names.py +0 -70
  316. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/lsaregevent.py +0 -14
  317. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/lsastore.py +0 -12
  318. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/query_information.py +0 -25
  319. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/regsave_sa.py +0 -61
  320. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/regsecurity.py +0 -36
  321. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sa_inherit.py +0 -8
  322. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/security_enums.py +0 -336
  323. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_file_audit.py +0 -106
  324. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_file_owner.py +0 -73
  325. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_policy_info.py +0 -25
  326. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setkernelobjectsecurity.py +0 -134
  327. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setnamedsecurityinfo.py +0 -131
  328. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setsecurityinfo.py +0 -131
  329. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setuserobjectsecurity.py +0 -102
  330. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/fetch_url.py +0 -158
  331. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/simple_auth.py +0 -72
  332. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/socket_server.py +0 -199
  333. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/validate_password.py +0 -41
  334. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/service/nativePipeTestService.py +0 -63
  335. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/service/pipeTestService.py +0 -185
  336. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/service/pipeTestServiceClient.py +0 -158
  337. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/service/serviceEvents.py +0 -98
  338. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/timer_demo.py +0 -72
  339. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32clipboardDemo.py +0 -155
  340. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32clipboard_bitmapdemo.py +0 -117
  341. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32comport_demo.py +0 -174
  342. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32console_demo.py +0 -132
  343. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32cred_demo.py +0 -82
  344. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32fileDemo.py +0 -41
  345. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_demo.py +0 -177
  346. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_devicenotify.py +0 -106
  347. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_dialog.py +0 -445
  348. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_menu.py +0 -464
  349. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_taskbar.py +0 -136
  350. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32netdemo.py +0 -272
  351. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32rcparser_demo.py +0 -86
  352. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32servicedemo.py +0 -23
  353. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32ts_logoff_disconnected.py +0 -25
  354. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32wnet/testwnet.py +0 -123
  355. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32wnet/winnetwk.py +0 -100
  356. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/winprocess.py +0 -230
  357. py2docfx/venv/venv1/Lib/site-packages/win32/lib/_win32verstamp_pywin32ctypes.py +0 -164
  358. py2docfx/venv/venv1/Lib/site-packages/win32/lib/afxres.py +0 -8
  359. py2docfx/venv/venv1/Lib/site-packages/win32/lib/commctrl.py +0 -1551
  360. py2docfx/venv/venv1/Lib/site-packages/win32/lib/mmsystem.py +0 -956
  361. py2docfx/venv/venv1/Lib/site-packages/win32/lib/netbios.py +0 -293
  362. py2docfx/venv/venv1/Lib/site-packages/win32/lib/ntsecuritycon.py +0 -731
  363. py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywin32_bootstrap.py +0 -21
  364. py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywin32_testutil.py +0 -291
  365. py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywintypes.py +0 -124
  366. py2docfx/venv/venv1/Lib/site-packages/win32/lib/rasutil.py +0 -40
  367. py2docfx/venv/venv1/Lib/site-packages/win32/lib/regcheck.py +0 -161
  368. py2docfx/venv/venv1/Lib/site-packages/win32/lib/regutil.py +0 -395
  369. py2docfx/venv/venv1/Lib/site-packages/win32/lib/sspi.py +0 -413
  370. py2docfx/venv/venv1/Lib/site-packages/win32/lib/sspicon.py +0 -477
  371. py2docfx/venv/venv1/Lib/site-packages/win32/lib/win2kras.py +0 -14
  372. py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32con.py +0 -5064
  373. py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32cryptcon.py +0 -1922
  374. py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32evtlogutil.py +0 -225
  375. py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32gui_struct.py +0 -957
  376. py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32inetcon.py +0 -1086
  377. py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32netcon.py +0 -627
  378. py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32pdhquery.py +0 -570
  379. py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32pdhutil.py +0 -212
  380. py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32rcparser.py +0 -674
  381. py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32serviceutil.py +0 -1073
  382. py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32timezone.py +0 -1201
  383. py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32traceutil.py +0 -59
  384. py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32verstamp.py +0 -235
  385. py2docfx/venv/venv1/Lib/site-packages/win32/lib/winerror.py +0 -7362
  386. py2docfx/venv/venv1/Lib/site-packages/win32/lib/winioctlcon.py +0 -1079
  387. py2docfx/venv/venv1/Lib/site-packages/win32/lib/winnt.py +0 -1347
  388. py2docfx/venv/venv1/Lib/site-packages/win32/lib/winperf.py +0 -236
  389. py2docfx/venv/venv1/Lib/site-packages/win32/lib/winxptheme.py +0 -8
  390. py2docfx/venv/venv1/Lib/site-packages/win32/scripts/ControlService.py +0 -594
  391. py2docfx/venv/venv1/Lib/site-packages/win32/scripts/VersionStamp/BrandProject.py +0 -97
  392. py2docfx/venv/venv1/Lib/site-packages/win32/scripts/VersionStamp/bulkstamp.py +0 -156
  393. py2docfx/venv/venv1/Lib/site-packages/win32/scripts/VersionStamp/vssutil.py +0 -201
  394. py2docfx/venv/venv1/Lib/site-packages/win32/scripts/backupEventLog.py +0 -46
  395. py2docfx/venv/venv1/Lib/site-packages/win32/scripts/h2py.py +0 -194
  396. py2docfx/venv/venv1/Lib/site-packages/win32/scripts/killProcName.py +0 -62
  397. py2docfx/venv/venv1/Lib/site-packages/win32/scripts/pywin32_postinstall.py +0 -733
  398. py2docfx/venv/venv1/Lib/site-packages/win32/scripts/pywin32_testall.py +0 -120
  399. py2docfx/venv/venv1/Lib/site-packages/win32/scripts/rasutil.py +0 -98
  400. py2docfx/venv/venv1/Lib/site-packages/win32/scripts/regsetup.py +0 -607
  401. py2docfx/venv/venv1/Lib/site-packages/win32/scripts/setup_d.py +0 -111
  402. py2docfx/venv/venv1/Lib/site-packages/win32/test/handles.py +0 -175
  403. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_clipboard.py +0 -137
  404. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_exceptions.py +0 -213
  405. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_odbc.py +0 -264
  406. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_pywintypes.py +0 -111
  407. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_security.py +0 -166
  408. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_sspi.py +0 -229
  409. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32api.py +0 -273
  410. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32clipboard.py +0 -59
  411. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32cred.py +0 -91
  412. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32crypt.py +0 -144
  413. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32event.py +0 -119
  414. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32file.py +0 -1096
  415. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32gui.py +0 -227
  416. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32guistruct.py +0 -333
  417. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32inet.py +0 -108
  418. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32net.py +0 -23
  419. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32pipe.py +0 -148
  420. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32print.py +0 -24
  421. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32profile.py +0 -19
  422. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32rcparser.py +0 -70
  423. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32timezone.py +0 -16
  424. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32trace.py +0 -366
  425. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32ts.py +0 -19
  426. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32wnet.py +0 -174
  427. py2docfx/venv/venv1/Lib/site-packages/win32/test/testall.py +0 -223
  428. py2docfx/venv/venv1/Lib/site-packages/win32/winxpgui.py +0 -13
  429. py2docfx/venv/venv1/Lib/site-packages/win32com/__init__.py +0 -134
  430. py2docfx/venv/venv1/Lib/site-packages/win32com/client/CLSIDToClass.py +0 -60
  431. py2docfx/venv/venv1/Lib/site-packages/win32com/client/__init__.py +0 -717
  432. py2docfx/venv/venv1/Lib/site-packages/win32com/client/build.py +0 -771
  433. py2docfx/venv/venv1/Lib/site-packages/win32com/client/combrowse.py +0 -604
  434. py2docfx/venv/venv1/Lib/site-packages/win32com/client/connect.py +0 -48
  435. py2docfx/venv/venv1/Lib/site-packages/win32com/client/dynamic.py +0 -699
  436. py2docfx/venv/venv1/Lib/site-packages/win32com/client/gencache.py +0 -825
  437. py2docfx/venv/venv1/Lib/site-packages/win32com/client/genpy.py +0 -1350
  438. py2docfx/venv/venv1/Lib/site-packages/win32com/client/makepy.py +0 -453
  439. py2docfx/venv/venv1/Lib/site-packages/win32com/client/selecttlb.py +0 -182
  440. py2docfx/venv/venv1/Lib/site-packages/win32com/client/tlbrowse.py +0 -277
  441. py2docfx/venv/venv1/Lib/site-packages/win32com/client/util.py +0 -103
  442. py2docfx/venv/venv1/Lib/site-packages/win32com/demos/__init__.py +0 -0
  443. py2docfx/venv/venv1/Lib/site-packages/win32com/demos/connect.py +0 -96
  444. py2docfx/venv/venv1/Lib/site-packages/win32com/demos/dump_clipboard.py +0 -74
  445. py2docfx/venv/venv1/Lib/site-packages/win32com/demos/eventsApartmentThreaded.py +0 -98
  446. py2docfx/venv/venv1/Lib/site-packages/win32com/demos/eventsFreeThreaded.py +0 -92
  447. py2docfx/venv/venv1/Lib/site-packages/win32com/demos/excelAddin.py +0 -169
  448. py2docfx/venv/venv1/Lib/site-packages/win32com/demos/excelRTDServer.py +0 -434
  449. py2docfx/venv/venv1/Lib/site-packages/win32com/demos/iebutton.py +0 -214
  450. py2docfx/venv/venv1/Lib/site-packages/win32com/demos/ietoolbar.py +0 -368
  451. py2docfx/venv/venv1/Lib/site-packages/win32com/demos/outlookAddin.py +0 -135
  452. py2docfx/venv/venv1/Lib/site-packages/win32com/demos/trybag.py +0 -78
  453. py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/__init__.py +0 -1
  454. py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegw.py +0 -618
  455. py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegwenum.py +0 -331
  456. py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegwparse.py +0 -1017
  457. py2docfx/venv/venv1/Lib/site-packages/win32com/olectl.py +0 -70
  458. py2docfx/venv/venv1/Lib/site-packages/win32com/server/__init__.py +0 -1
  459. py2docfx/venv/venv1/Lib/site-packages/win32com/server/connect.py +0 -85
  460. py2docfx/venv/venv1/Lib/site-packages/win32com/server/dispatcher.py +0 -239
  461. py2docfx/venv/venv1/Lib/site-packages/win32com/server/exception.py +0 -99
  462. py2docfx/venv/venv1/Lib/site-packages/win32com/server/factory.py +0 -26
  463. py2docfx/venv/venv1/Lib/site-packages/win32com/server/localserver.py +0 -53
  464. py2docfx/venv/venv1/Lib/site-packages/win32com/server/policy.py +0 -803
  465. py2docfx/venv/venv1/Lib/site-packages/win32com/server/register.py +0 -677
  466. py2docfx/venv/venv1/Lib/site-packages/win32com/server/util.py +0 -229
  467. py2docfx/venv/venv1/Lib/site-packages/win32com/servers/PythonTools.py +0 -47
  468. py2docfx/venv/venv1/Lib/site-packages/win32com/servers/__init__.py +0 -0
  469. py2docfx/venv/venv1/Lib/site-packages/win32com/servers/dictionary.py +0 -133
  470. py2docfx/venv/venv1/Lib/site-packages/win32com/servers/interp.py +0 -59
  471. py2docfx/venv/venv1/Lib/site-packages/win32com/servers/perfmon.py +0 -36
  472. py2docfx/venv/venv1/Lib/site-packages/win32com/servers/test_pycomtest.py +0 -181
  473. py2docfx/venv/venv1/Lib/site-packages/win32com/storagecon.py +0 -142
  474. py2docfx/venv/venv1/Lib/site-packages/win32com/test/GenTestScripts.py +0 -95
  475. py2docfx/venv/venv1/Lib/site-packages/win32com/test/__init__.py +0 -1
  476. py2docfx/venv/venv1/Lib/site-packages/win32com/test/daodump.py +0 -88
  477. py2docfx/venv/venv1/Lib/site-packages/win32com/test/errorSemantics.py +0 -243
  478. py2docfx/venv/venv1/Lib/site-packages/win32com/test/pippo_server.py +0 -96
  479. py2docfx/venv/venv1/Lib/site-packages/win32com/test/policySemantics.py +0 -115
  480. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testADOEvents.py +0 -100
  481. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testAXScript.py +0 -44
  482. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testAccess.py +0 -185
  483. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testArrays.py +0 -99
  484. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testClipboard.py +0 -169
  485. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testCollections.py +0 -159
  486. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testConversionErrors.py +0 -35
  487. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testDCOM.py +0 -50
  488. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testDates.py +0 -74
  489. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testDictionary.py +0 -101
  490. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testDynamic.py +0 -83
  491. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testExchange.py +0 -121
  492. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testExplorer.py +0 -139
  493. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testGIT.py +0 -142
  494. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testGatewayAddresses.py +0 -149
  495. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testIterators.py +0 -140
  496. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testMSOffice.py +0 -184
  497. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testMSOfficeEvents.py +0 -138
  498. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testMarshal.py +0 -160
  499. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPersist.py +0 -227
  500. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPippo.py +0 -80
  501. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPyComTest.py +0 -918
  502. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testROT.py +0 -29
  503. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testServers.py +0 -51
  504. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testShell.py +0 -272
  505. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testStorage.py +0 -88
  506. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testStreams.py +0 -147
  507. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testWMI.py +0 -18
  508. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testall.py +0 -320
  509. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testmakepy.py +0 -54
  510. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testvb.py +0 -583
  511. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testvbscript_regexp.py +0 -40
  512. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testxslt.py +0 -34
  513. py2docfx/venv/venv1/Lib/site-packages/win32com/test/util.py +0 -262
  514. py2docfx/venv/venv1/Lib/site-packages/win32com/universal.py +0 -224
  515. py2docfx/venv/venv1/Lib/site-packages/win32com/util.py +0 -35
  516. py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/__init__.py +0 -113
  517. py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/adsicon.py +0 -340
  518. py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/demos/objectPicker.py +0 -68
  519. py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/demos/scp.py +0 -565
  520. py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/demos/search.py +0 -151
  521. py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/demos/test.py +0 -274
  522. py2docfx/venv/venv1/Lib/site-packages/win32comext/authorization/__init__.py +0 -6
  523. py2docfx/venv/venv1/Lib/site-packages/win32comext/authorization/demos/EditSecurity.py +0 -229
  524. py2docfx/venv/venv1/Lib/site-packages/win32comext/authorization/demos/EditServiceSecurity.py +0 -219
  525. py2docfx/venv/venv1/Lib/site-packages/win32comext/axcontrol/__init__.py +0 -4
  526. py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/__init__.py +0 -4
  527. py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/adb.py +0 -467
  528. py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/codecontainer.py +0 -279
  529. py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/contexts.py +0 -58
  530. py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/debugger.py +0 -238
  531. py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/documents.py +0 -135
  532. py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/dump.py +0 -57
  533. py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/expressions.py +0 -212
  534. py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/gateways.py +0 -583
  535. py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/stackframe.py +0 -178
  536. py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/util.py +0 -98
  537. py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/__init__.py +0 -4
  538. py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/asputil.py +0 -13
  539. py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/__init__.py +0 -1
  540. py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/debug.py +0 -223
  541. py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/error.py +0 -262
  542. py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/framework.py +0 -1291
  543. py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/pydumper.py +0 -78
  544. py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/pyscript.py +0 -438
  545. py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/pyscript_rexec.py +0 -54
  546. py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/scriptdispatch.py +0 -103
  547. py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/server/__init__.py +0 -0
  548. py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/server/axsite.py +0 -145
  549. py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/test/leakTest.py +0 -185
  550. py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/test/testHost.py +0 -240
  551. py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/test/testHost4Dbg.py +0 -83
  552. py2docfx/venv/venv1/Lib/site-packages/win32comext/bits/__init__.py +0 -6
  553. py2docfx/venv/venv1/Lib/site-packages/win32comext/bits/test/show_all_jobs.py +0 -48
  554. py2docfx/venv/venv1/Lib/site-packages/win32comext/bits/test/test_bits.py +0 -119
  555. py2docfx/venv/venv1/Lib/site-packages/win32comext/directsound/__init__.py +0 -4
  556. py2docfx/venv/venv1/Lib/site-packages/win32comext/directsound/test/__init__.py +0 -1
  557. py2docfx/venv/venv1/Lib/site-packages/win32comext/directsound/test/ds_record.py +0 -60
  558. py2docfx/venv/venv1/Lib/site-packages/win32comext/directsound/test/ds_test.py +0 -402
  559. py2docfx/venv/venv1/Lib/site-packages/win32comext/ifilter/__init__.py +0 -1
  560. py2docfx/venv/venv1/Lib/site-packages/win32comext/ifilter/demo/filterDemo.py +0 -300
  561. py2docfx/venv/venv1/Lib/site-packages/win32comext/ifilter/ifiltercon.py +0 -110
  562. py2docfx/venv/venv1/Lib/site-packages/win32comext/internet/__init__.py +0 -4
  563. py2docfx/venv/venv1/Lib/site-packages/win32comext/internet/inetcon.py +0 -261
  564. py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/__init__.py +0 -21
  565. py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/demos/mapisend.py +0 -98
  566. py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/emsabtags.py +0 -875
  567. py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/mapitags.py +0 -1023
  568. py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/mapiutil.py +0 -211
  569. py2docfx/venv/venv1/Lib/site-packages/win32comext/propsys/__init__.py +0 -1
  570. py2docfx/venv/venv1/Lib/site-packages/win32comext/propsys/pscon.py +0 -838
  571. py2docfx/venv/venv1/Lib/site-packages/win32comext/propsys/test/testpropsys.py +0 -5
  572. py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/__init__.py +0 -4
  573. py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/IActiveDesktop.py +0 -83
  574. py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/IFileOperationProgressSink.py +0 -179
  575. py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/IShellLinkDataList.py +0 -67
  576. py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/ITransferAdviseSink.py +0 -93
  577. py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/IUniformResourceLocator.py +0 -56
  578. py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/browse_for_folder.py +0 -45
  579. py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/create_link.py +0 -73
  580. py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/dump_link.py +0 -58
  581. py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/explorer_browser.py +0 -143
  582. py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/column_provider.py +0 -125
  583. py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/context_menu.py +0 -122
  584. py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/copy_hook.py +0 -84
  585. py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/empty_volume_cache.py +0 -188
  586. py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/folder_view.py +0 -866
  587. py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/icon_handler.py +0 -81
  588. py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/shell_view.py +0 -971
  589. py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/shellexecuteex.py +0 -19
  590. py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/viewstate.py +0 -68
  591. py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/walk_shell_folders.py +0 -24
  592. py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/shellcon.py +0 -1615
  593. py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/test/testSHFileOperation.py +0 -75
  594. py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/test/testShellFolder.py +0 -21
  595. py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/test/testShellItem.py +0 -69
  596. py2docfx/venv/venv1/Lib/site-packages/win32comext/taskscheduler/__init__.py +0 -6
  597. py2docfx/venv/venv1/Lib/site-packages/win32comext/taskscheduler/test/test_addtask.py +0 -66
  598. py2docfx/venv/venv1/Lib/site-packages/win32comext/taskscheduler/test/test_addtask_1.py +0 -68
  599. py2docfx/venv/venv1/Lib/site-packages/win32comext/taskscheduler/test/test_addtask_2.py +0 -49
  600. py2docfx/venv/venv1/Lib/site-packages/win32comext/taskscheduler/test/test_localsystem.py +0 -3
  601. py2docfx/venv/venv1/Scripts/pywin32_postinstall.py +0 -733
  602. py2docfx/venv/venv1/Scripts/pywin32_testall.py +0 -120
  603. {py2docfx-0.1.15rc2025477.dist-info → py2docfx-0.1.16.dev2052678.dist-info}/WHEEL +0 -0
  604. {py2docfx-0.1.15rc2025477.dist-info → py2docfx-0.1.16.dev2052678.dist-info}/top_level.txt +0 -0
@@ -1,866 +0,0 @@
1
- # This is a port of the Vista SDK "FolderView" sample, and associated
2
- # notes at https://web.archive.org/web/20081225011615/http://shellrevealed.com/blogs/shellblog/archive/2007/03/15/Shell-Namespace-Extension_3A00_-Creating-and-Using-the-System-Folder-View-Object.aspx
3
- # A key difference to shell_view.py is that this version uses the default
4
- # IShellView provided by the shell (via SHCreateShellFolderView) rather
5
- # than our own.
6
- # XXX - sadly, it doesn't work quite like the original sample. Oh well,
7
- # another day...
8
- import os
9
- import pickle
10
- import random
11
- import sys
12
-
13
- import commctrl
14
- import pythoncom
15
- import win32api
16
- import win32con
17
- import win32gui
18
- import winerror
19
- from win32com.axcontrol import axcontrol # IObjectWithSite
20
- from win32com.propsys import propsys
21
- from win32com.server.exception import COMException
22
- from win32com.server.util import NewEnum as _NewEnum, wrap as _wrap
23
- from win32com.shell import shell, shellcon
24
-
25
- GUID = pythoncom.MakeIID
26
-
27
- # If set, output spews to the win32traceutil collector...
28
- debug = 0
29
-
30
-
31
- # wrap a python object in a COM pointer
32
- def wrap(ob, iid=None):
33
- return _wrap(ob, iid, useDispatcher=(debug > 0))
34
-
35
-
36
- def NewEnum(seq, iid):
37
- return _NewEnum(seq, iid=iid, useDispatcher=(debug > 0))
38
-
39
-
40
- # The sample makes heavy use of "string ids" (ie, integer IDs defined in .h
41
- # files, loaded at runtime from a (presumably localized) DLL. We cheat.
42
- _sids = {} # strings, indexed bystring_id,
43
-
44
-
45
- def LoadString(sid):
46
- return _sids[sid]
47
-
48
-
49
- # fn to create a unique string ID
50
- _last_ids = 0
51
-
52
-
53
- def _make_ids(s):
54
- global _last_ids
55
- _last_ids += 1
56
- _sids[_last_ids] = s
57
- return _last_ids
58
-
59
-
60
- # These strings are what the user sees and would be localized.
61
- # XXX - it's possible that the shell might persist these values, so
62
- # this scheme wouldn't really be suitable in a real ap.
63
- IDS_UNSPECIFIED = _make_ids("unspecified")
64
- IDS_SMALL = _make_ids("small")
65
- IDS_MEDIUM = _make_ids("medium")
66
- IDS_LARGE = _make_ids("large")
67
- IDS_CIRCLE = _make_ids("circle")
68
- IDS_TRIANGLE = _make_ids("triangle")
69
- IDS_RECTANGLE = _make_ids("rectangle")
70
- IDS_POLYGON = _make_ids("polygon")
71
- IDS_DISPLAY = _make_ids("Display")
72
- IDS_DISPLAY_TT = _make_ids("Display the item.")
73
- IDS_SETTINGS = _make_ids("Settings")
74
- IDS_SETTING1 = _make_ids("Setting 1")
75
- IDS_SETTING2 = _make_ids("Setting 2")
76
- IDS_SETTING3 = _make_ids("Setting 3")
77
- IDS_SETTINGS_TT = _make_ids("Modify settings.")
78
- IDS_SETTING1_TT = _make_ids("Modify setting 1.")
79
- IDS_SETTING2_TT = _make_ids("Modify setting 2.")
80
- IDS_SETTING3_TT = _make_ids("Modify setting 3.")
81
- IDS_LESSTHAN5 = _make_ids("Less Than 5")
82
- IDS_5ORGREATER = _make_ids("Five or Greater")
83
- del _make_ids, _last_ids
84
-
85
- # Other misc resource stuff
86
- IDI_ICON1 = 100
87
- IDI_SETTINGS = 101
88
-
89
- # The sample defines a number of "category ids". Each one gets
90
- # its own GUID.
91
- CAT_GUID_NAME = GUID("{de094c9d-c65a-11dc-ba21-005056c00008}")
92
- CAT_GUID_SIZE = GUID("{de094c9e-c65a-11dc-ba21-005056c00008}")
93
- CAT_GUID_SIDES = GUID("{de094c9f-c65a-11dc-ba21-005056c00008}")
94
- CAT_GUID_LEVEL = GUID("{de094ca0-c65a-11dc-ba21-005056c00008}")
95
- # The next category guid is NOT based on a column (see
96
- # ViewCategoryProvider::EnumCategories()...)
97
- CAT_GUID_VALUE = "{de094ca1-c65a-11dc-ba21-005056c00008}"
98
-
99
- GUID_Display = GUID("{4d6c2fdd-c689-11dc-ba21-005056c00008}")
100
- GUID_Settings = GUID("{4d6c2fde-c689-11dc-ba21-005056c00008}")
101
- GUID_Setting1 = GUID("{4d6c2fdf-c689-11dc-ba21-005056c00008}")
102
- GUID_Setting2 = GUID("{4d6c2fe0-c689-11dc-ba21-005056c00008}")
103
- GUID_Setting3 = GUID("{4d6c2fe1-c689-11dc-ba21-005056c00008}")
104
-
105
- # Hrm - not sure what to do about the std keys.
106
- # Probably need a simple parser for propkey.h
107
- PKEY_ItemNameDisplay = ("{B725F130-47EF-101A-A5F1-02608C9EEBAC}", 10)
108
- PKEY_PropList_PreviewDetails = ("{C9944A21-A406-48FE-8225-AEC7E24C211B}", 8)
109
-
110
- # Not sure what the "3" here refers to - docs say PID_FIRST_USABLE (2) be
111
- # used. Presumably it is the 'propID' value in the .propdesc file!
112
- # note that the following GUIDs are also references in the .propdesc file
113
- PID_SOMETHING = 3
114
- # These are our 'private' PKEYs
115
- # Col 2, name="Sample.AreaSize"
116
- PKEY_Sample_AreaSize = ("{d6f5e341-c65c-11dc-ba21-005056c00008}", PID_SOMETHING)
117
- # Col 3, name="Sample.NumberOfSides"
118
- PKEY_Sample_NumberOfSides = ("{d6f5e342-c65c-11dc-ba21-005056c00008}", PID_SOMETHING)
119
- # Col 4, name="Sample.DirectoryLevel"
120
- PKEY_Sample_DirectoryLevel = ("{d6f5e343-c65c-11dc-ba21-005056c00008}", PID_SOMETHING)
121
-
122
-
123
- # We construct a PIDL from a pickle of a dict - turn it back into a
124
- # dict (we should *never* be called with a PIDL that the last elt is not
125
- # ours, so it is safe to assume we created it (assume->"ass" = "u" + "me" :)
126
- def pidl_to_item(pidl):
127
- # Note that only the *last* elt in the PIDL is certainly ours,
128
- # but it contains everything we need encoded as a dict.
129
- return pickle.loads(pidl[-1])
130
-
131
-
132
- # Start of msdn sample port...
133
- # make_item_enum replaces the sample's entire EnumIDList.cpp :)
134
- def make_item_enum(level, flags):
135
- pidls = []
136
- nums = """zero one two three four five size seven eight nine ten""".split()
137
- for i, name in enumerate(nums):
138
- size = random.randint(0, 255)
139
- sides = 1
140
- while sides in [1, 2]:
141
- sides = random.randint(0, 5)
142
- is_folder = (i % 2) != 0
143
- # check the flags say to include it.
144
- # (This seems strange; if you ask the same folder for, but appear
145
- skip = False
146
- if not (flags & shellcon.SHCONTF_STORAGE):
147
- if is_folder:
148
- skip = not (flags & shellcon.SHCONTF_FOLDERS)
149
- else:
150
- skip = not (flags & shellcon.SHCONTF_NONFOLDERS)
151
- if not skip:
152
- data = {
153
- "name": name,
154
- "size": size,
155
- "sides": sides,
156
- "level": level,
157
- "is_folder": is_folder,
158
- }
159
- pidls.append([pickle.dumps(data)])
160
- return NewEnum(pidls, shell.IID_IEnumIDList)
161
-
162
-
163
- # start of Utils.cpp port
164
- def DisplayItem(shell_item_array, hwnd_parent=0):
165
- # Get the first ShellItem and display its name
166
- if shell_item_array is None:
167
- msg = "You must select something!"
168
- else:
169
- si = shell_item_array.GetItemAt(0)
170
- name = si.GetDisplayName(shellcon.SIGDN_NORMALDISPLAY)
171
- msg = "%d items selected, first is %r" % (shell_item_array.GetCount(), name)
172
- win32gui.MessageBox(hwnd_parent, msg, "Hello", win32con.MB_OK)
173
-
174
-
175
- # end of Utils.cpp port
176
-
177
-
178
- # start of sample's FVCommands.cpp port
179
- class Command:
180
- def __init__(self, guid, ids, ids_tt, idi, flags, callback, children):
181
- self.guid = guid
182
- self.ids = ids
183
- self.ids_tt = ids_tt
184
- self.idi = idi
185
- self.flags = flags
186
- self.callback = callback
187
- self.children = children
188
- assert not children or isinstance(children[0], Command)
189
-
190
- def tuple(self):
191
- return (
192
- self.guid,
193
- self.ids,
194
- self.ids_tt,
195
- self.idi,
196
- self.flags,
197
- self.callback,
198
- self.children,
199
- )
200
-
201
-
202
- # command callbacks - called back directly by us - see ExplorerCommand.Invoke
203
- def onDisplay(items, bindctx):
204
- DisplayItem(items)
205
-
206
-
207
- def onSetting1(items, bindctx):
208
- win32gui.MessageBox(0, LoadString(IDS_SETTING1), "Hello", win32con.MB_OK)
209
-
210
-
211
- def onSetting2(items, bindctx):
212
- win32gui.MessageBox(0, LoadString(IDS_SETTING2), "Hello", win32con.MB_OK)
213
-
214
-
215
- def onSetting3(items, bindctx):
216
- win32gui.MessageBox(0, LoadString(IDS_SETTING3), "Hello", win32con.MB_OK)
217
-
218
-
219
- taskSettings = [
220
- Command(
221
- GUID_Setting1, IDS_SETTING1, IDS_SETTING1_TT, IDI_SETTINGS, 0, onSetting1, None
222
- ),
223
- Command(
224
- GUID_Setting2, IDS_SETTING2, IDS_SETTING2_TT, IDI_SETTINGS, 0, onSetting2, None
225
- ),
226
- Command(
227
- GUID_Setting3, IDS_SETTING3, IDS_SETTING3_TT, IDI_SETTINGS, 0, onSetting3, None
228
- ),
229
- ]
230
-
231
- tasks = [
232
- Command(GUID_Display, IDS_DISPLAY, IDS_DISPLAY_TT, IDI_ICON1, 0, onDisplay, None),
233
- Command(
234
- GUID_Settings,
235
- IDS_SETTINGS,
236
- IDS_SETTINGS_TT,
237
- IDI_SETTINGS,
238
- shellcon.ECF_HASSUBCOMMANDS,
239
- None,
240
- taskSettings,
241
- ),
242
- ]
243
-
244
-
245
- class ExplorerCommandProvider:
246
- _com_interfaces_ = [shell.IID_IExplorerCommandProvider]
247
- _public_methods_ = shellcon.IExplorerCommandProvider_Methods
248
-
249
- def GetCommands(self, site, iid):
250
- items = [wrap(ExplorerCommand(t)) for t in tasks]
251
- return NewEnum(items, shell.IID_IEnumExplorerCommand)
252
-
253
-
254
- class ExplorerCommand:
255
- _com_interfaces_ = [shell.IID_IExplorerCommand]
256
- _public_methods_ = shellcon.IExplorerCommand_Methods
257
-
258
- def __init__(self, cmd):
259
- self.cmd = cmd
260
-
261
- # The sample also appears to ignore the pidl args!?
262
- def GetTitle(self, pidl):
263
- return LoadString(self.cmd.ids)
264
-
265
- def GetToolTip(self, pidl):
266
- return LoadString(self.cmd.ids_tt)
267
-
268
- def GetIcon(self, pidl):
269
- # Return a string of the usual "dll,resource_id" format
270
- # todo - just return any ".ico that comes with python" + ",0" :)
271
- raise COMException(hresult=winerror.E_NOTIMPL)
272
-
273
- def GetState(self, shell_items, slow_ok):
274
- return shellcon.ECS_ENABLED
275
-
276
- def GetFlags(self):
277
- return self.cmd.flags
278
-
279
- def GetCanonicalName(self):
280
- return self.cmd.guid
281
-
282
- def Invoke(self, items, bind_ctx):
283
- # If no function defined - just return S_OK
284
- if self.cmd.callback:
285
- self.cmd.callback(items, bind_ctx)
286
- else:
287
- print("No callback for command ", LoadString(self.cmd.ids))
288
-
289
- def EnumSubCommands(self):
290
- if not self.cmd.children:
291
- return None
292
- items = [wrap(ExplorerCommand(c)) for c in self.cmd.children]
293
- return NewEnum(items, shell.IID_IEnumExplorerCommand)
294
-
295
-
296
- # end of sample's FVCommands.cpp port
297
-
298
-
299
- # start of sample's Category.cpp port
300
- class FolderViewCategorizer:
301
- _com_interfaces_ = [shell.IID_ICategorizer]
302
- _public_methods_ = shellcon.ICategorizer_Methods
303
-
304
- description = None # subclasses should set their own
305
-
306
- def __init__(self, shell_folder):
307
- self.sf = shell_folder
308
-
309
- # Determines the relative order of two items in their item identifier lists.
310
- def CompareCategory(self, flags, cat1, cat2):
311
- return cat1 - cat2
312
-
313
- # Retrieves the name of a categorizer, such as "Group By Device
314
- # Type", that can be displayed in the user interface.
315
- def GetDescription(self, cch):
316
- return self.description
317
-
318
- # Retrieves information about a category, such as the default
319
- # display and the text to display in the user interface.
320
- def GetCategoryInfo(self, catid):
321
- # Note: this isn't always appropriate! See overrides below
322
- return 0, str(catid) # ????
323
-
324
-
325
- class FolderViewCategorizer_Name(FolderViewCategorizer):
326
- description = "Alphabetical"
327
-
328
- def GetCategory(self, pidls):
329
- ret = []
330
- for pidl in pidls:
331
- val = self.sf.GetDetailsEx(pidl, PKEY_ItemNameDisplay)
332
- ret.append(val)
333
- return ret
334
-
335
-
336
- class FolderViewCategorizer_Size(FolderViewCategorizer):
337
- description = "Group By Size"
338
-
339
- def GetCategory(self, pidls):
340
- ret = []
341
- for pidl in pidls:
342
- # Why don't we just get the size of the PIDL?
343
- val = self.sf.GetDetailsEx(pidl, PKEY_Sample_AreaSize)
344
- val = int(val) # it probably came in a VT_BSTR variant
345
- if val < 255 // 3:
346
- cid = IDS_SMALL
347
- elif val < 2 * 255 // 3:
348
- cid = IDS_MEDIUM
349
- else:
350
- cid = IDS_LARGE
351
- ret.append(cid)
352
- return ret
353
-
354
- def GetCategoryInfo(self, catid):
355
- return 0, LoadString(catid)
356
-
357
-
358
- class FolderViewCategorizer_Sides(FolderViewCategorizer):
359
- description = "Group By Sides"
360
-
361
- def GetCategory(self, pidls):
362
- ret = []
363
- for pidl in pidls:
364
- val = self.sf.GetDetailsEx(pidl, PKEY_ItemNameDisplay)
365
- if val == 0:
366
- cid = IDS_CIRCLE
367
- elif val == 3:
368
- cid = IDS_TRIANGLE
369
- elif val == 4:
370
- cid = IDS_RECTANGLE
371
- elif val == 5:
372
- cid = IDS_POLYGON
373
- else:
374
- cid = IDS_UNSPECIFIED
375
- ret.append(cid)
376
- return ret
377
-
378
- def GetCategoryInfo(self, catid):
379
- return 0, LoadString(catid)
380
-
381
-
382
- class FolderViewCategorizer_Value(FolderViewCategorizer):
383
- description = "Group By Value"
384
-
385
- def GetCategory(self, pidls):
386
- ret = []
387
- for pidl in pidls:
388
- val = self.sf.GetDetailsEx(pidl, PKEY_ItemNameDisplay)
389
- if val in "one two three four".split():
390
- ret.append(IDS_LESSTHAN5)
391
- else:
392
- ret.append(IDS_5ORGREATER)
393
- return ret
394
-
395
- def GetCategoryInfo(self, catid):
396
- return 0, LoadString(catid)
397
-
398
-
399
- class FolderViewCategorizer_Level(FolderViewCategorizer):
400
- description = "Group By Value"
401
-
402
- def GetCategory(self, pidls):
403
- return [
404
- self.sf.GetDetailsEx(pidl, PKEY_Sample_DirectoryLevel) for pidl in pidls
405
- ]
406
-
407
-
408
- class ViewCategoryProvider:
409
- _com_interfaces_ = [shell.IID_ICategoryProvider]
410
- _public_methods_ = shellcon.ICategoryProvider_Methods
411
-
412
- def __init__(self, shell_folder):
413
- self.shell_folder = shell_folder
414
-
415
- def CanCategorizeOnSCID(self, pkey):
416
- return pkey in [
417
- PKEY_ItemNameDisplay,
418
- PKEY_Sample_AreaSize,
419
- PKEY_Sample_NumberOfSides,
420
- PKEY_Sample_DirectoryLevel,
421
- ]
422
-
423
- # Creates a category object.
424
- def CreateCategory(self, guid, iid):
425
- if iid == shell.IID_ICategorizer:
426
- if guid == CAT_GUID_NAME:
427
- klass = FolderViewCategorizer_Name
428
- elif guid == CAT_GUID_SIDES:
429
- klass = FolderViewCategorizer_Sides
430
- elif guid == CAT_GUID_SIZE:
431
- klass = FolderViewCategorizer_Size
432
- elif guid == CAT_GUID_VALUE:
433
- klass = FolderViewCategorizer_Value
434
- elif guid == CAT_GUID_LEVEL:
435
- klass = FolderViewCategorizer_Level
436
- else:
437
- raise COMException(hresult=winerror.E_INVALIDARG)
438
- return wrap(klass(self.shell_folder))
439
- raise COMException(hresult=winerror.E_NOINTERFACE)
440
-
441
- # Retrieves the enumerator for the categories.
442
- def EnumCategories(self):
443
- # These are additional categories beyond the columns
444
- seq = [CAT_GUID_VALUE]
445
- return NewEnum(seq, pythoncom.IID_IEnumGUID)
446
-
447
- # Retrieves a globally unique identifier (GUID) that represents
448
- # the categorizer to use for the specified Shell column.
449
- def GetCategoryForSCID(self, scid):
450
- if scid == PKEY_ItemNameDisplay:
451
- guid = CAT_GUID_NAME
452
- elif scid == PKEY_Sample_AreaSize:
453
- guid = CAT_GUID_SIZE
454
- elif scid == PKEY_Sample_NumberOfSides:
455
- guid = CAT_GUID_SIDES
456
- elif scid == PKEY_Sample_DirectoryLevel:
457
- guid = CAT_GUID_LEVEL
458
- elif scid == pythoncom.IID_NULL:
459
- # This can be called with a NULL
460
- # format ID. This will happen if you have a category,
461
- # not based on a column, that gets stored in the
462
- # property bag. When a return is made to this item,
463
- # it will call this function with a NULL format id.
464
- guid = CAT_GUID_VALUE
465
- else:
466
- raise COMException(hresult=winerror.E_INVALIDARG)
467
- return guid
468
-
469
- # Retrieves the name of the specified category. This is where
470
- # additional categories that appear under the column
471
- # related categories in the UI, get their display names.
472
- def GetCategoryName(self, guid, cch):
473
- if guid == CAT_GUID_VALUE:
474
- return "Value"
475
- raise COMException(hresult=winerror.E_FAIL)
476
-
477
- # Enables the folder to override the default grouping.
478
- def GetDefaultCategory(self):
479
- return CAT_GUID_LEVEL, (pythoncom.IID_NULL, 0)
480
-
481
-
482
- # end of sample's Category.cpp port
483
-
484
- # start of sample's ContextMenu.cpp port
485
- MENUVERB_DISPLAY = 0
486
-
487
- folderViewImplContextMenuIDs = [
488
- (
489
- "display",
490
- MENUVERB_DISPLAY,
491
- 0,
492
- ),
493
- ]
494
-
495
-
496
- class ContextMenu:
497
- _reg_progid_ = "Python.ShellFolderSample.ContextMenu"
498
- _reg_desc_ = "Python FolderView Context Menu"
499
- _reg_clsid_ = "{fed40039-021f-4011-87c5-6188b9979764}"
500
- _com_interfaces_ = [
501
- shell.IID_IShellExtInit,
502
- shell.IID_IContextMenu,
503
- axcontrol.IID_IObjectWithSite,
504
- ]
505
- _public_methods_ = (
506
- shellcon.IContextMenu_Methods
507
- + shellcon.IShellExtInit_Methods
508
- + ["GetSite", "SetSite"]
509
- )
510
- _context_menu_type_ = "PythonFolderViewSampleType"
511
-
512
- def __init__(self):
513
- self.site = None
514
- self.dataobj = None
515
-
516
- def Initialize(self, folder, dataobj, hkey):
517
- self.dataobj = dataobj
518
-
519
- def QueryContextMenu(self, hMenu, indexMenu, idCmdFirst, idCmdLast, uFlags):
520
- s = LoadString(IDS_DISPLAY)
521
- win32gui.InsertMenu(
522
- hMenu, indexMenu, win32con.MF_BYPOSITION, idCmdFirst + MENUVERB_DISPLAY, s
523
- )
524
- indexMenu += 1
525
- # other verbs could go here...
526
-
527
- # indicate that we added one verb.
528
- return 1
529
-
530
- def InvokeCommand(self, ci):
531
- mask, hwnd, verb, params, dir, nShow, hotkey, hicon = ci
532
- # this seems very convoluted, but it's what the sample does :)
533
- for verb_name, verb_id, flag in folderViewImplContextMenuIDs:
534
- if isinstance(verb, int):
535
- matches = verb == verb_id
536
- else:
537
- matches = verb == verb_name
538
- if matches:
539
- break
540
- else:
541
- raise AssertionError(ci, "failed to find our ID")
542
- if verb_id == MENUVERB_DISPLAY:
543
- sia = shell.SHCreateShellItemArrayFromDataObject(self.dataobj)
544
- DisplayItem(hwnd, sia)
545
- else:
546
- raise AssertionError(ci, "Got some verb we weren't expecting?")
547
-
548
- def GetCommandString(self, cmd, typ):
549
- raise COMException(hresult=winerror.E_NOTIMPL)
550
-
551
- def SetSite(self, site):
552
- self.site = site
553
-
554
- def GetSite(self, iid):
555
- return self.site
556
-
557
-
558
- # end of sample's ContextMenu.cpp port
559
-
560
-
561
- # start of sample's ShellFolder.cpp port
562
- class ShellFolder:
563
- _com_interfaces_ = [
564
- shell.IID_IBrowserFrameOptions,
565
- pythoncom.IID_IPersist,
566
- shell.IID_IPersistFolder,
567
- shell.IID_IPersistFolder2,
568
- shell.IID_IShellFolder,
569
- shell.IID_IShellFolder2,
570
- ]
571
-
572
- _public_methods_ = (
573
- shellcon.IBrowserFrame_Methods
574
- + shellcon.IPersistFolder2_Methods
575
- + shellcon.IShellFolder2_Methods
576
- )
577
-
578
- _reg_progid_ = "Python.ShellFolderSample.Folder2"
579
- _reg_desc_ = "Python FolderView sample"
580
- _reg_clsid_ = "{bb8c24ad-6aaa-4cec-ac5e-c429d5f57627}"
581
-
582
- max_levels = 5
583
-
584
- def __init__(self, level=0):
585
- self.current_level = level
586
- self.pidl = None # set when Initialize is called
587
-
588
- def ParseDisplayName(self, hwnd, reserved, displayName, attr):
589
- # print("ParseDisplayName", displayName)
590
- raise COMException(hresult=winerror.E_NOTIMPL)
591
-
592
- def EnumObjects(self, hwndOwner, flags):
593
- if self.current_level >= self.max_levels:
594
- return None
595
- return make_item_enum(self.current_level + 1, flags)
596
-
597
- def BindToObject(self, pidl, bc, iid):
598
- tail = pidl_to_item(pidl)
599
- # assert tail['is_folder'], "BindToObject should only be called on folders?"
600
- # *sob*
601
- # No point creating object just to have QI fail.
602
- if iid not in ShellFolder._com_interfaces_:
603
- raise COMException(hresult=winerror.E_NOTIMPL)
604
- child = ShellFolder(self.current_level + 1)
605
- # hrmph - not sure what multiple PIDLs here mean?
606
- # assert len(pidl)==1, pidl # expecting just relative child PIDL
607
- child.Initialize(self.pidl + pidl)
608
- return wrap(child, iid)
609
-
610
- def BindToStorage(self, pidl, bc, iid):
611
- return self.BindToObject(pidl, bc, iid)
612
-
613
- def CompareIDs(self, param, id1, id2):
614
- return 0 # XXX - todo - implement this!
615
-
616
- def CreateViewObject(self, hwnd, iid):
617
- if iid == shell.IID_IShellView:
618
- com_folder = wrap(self)
619
- return shell.SHCreateShellFolderView(com_folder)
620
- elif iid == shell.IID_ICategoryProvider:
621
- return wrap(ViewCategoryProvider(self))
622
- elif iid == shell.IID_IContextMenu:
623
- ws = wrap(self)
624
- dcm = (hwnd, None, self.pidl, ws, None)
625
- return shell.SHCreateDefaultContextMenu(dcm, iid)
626
- elif iid == shell.IID_IExplorerCommandProvider:
627
- return wrap(ExplorerCommandProvider())
628
- else:
629
- raise COMException(hresult=winerror.E_NOINTERFACE)
630
-
631
- def GetAttributesOf(self, pidls, attrFlags):
632
- assert len(pidls) == 1, "sample only expects 1 too!"
633
- assert len(pidls[0]) == 1, "expect relative pidls!"
634
- item = pidl_to_item(pidls[0])
635
- flags = 0
636
- if item["is_folder"]:
637
- flags |= shellcon.SFGAO_FOLDER
638
- if item["level"] < self.max_levels:
639
- flags |= shellcon.SFGAO_HASSUBFOLDER
640
- return flags
641
-
642
- # Retrieves an OLE interface that can be used to carry out
643
- # actions on the specified file objects or folders.
644
- def GetUIObjectOf(self, hwndOwner, pidls, iid, inout):
645
- assert len(pidls) == 1, "oops - aren't expecting more than one!"
646
- assert len(pidls[0]) == 1, "assuming relative pidls!"
647
- item = pidl_to_item(pidls[0])
648
- if iid == shell.IID_IContextMenu:
649
- ws = wrap(self)
650
- dcm = (hwndOwner, None, self.pidl, ws, pidls)
651
- return shell.SHCreateDefaultContextMenu(dcm, iid)
652
- elif iid == shell.IID_IExtractIconW:
653
- dxi = shell.SHCreateDefaultExtractIcon()
654
- # dxi is IDefaultExtractIconInit
655
- if item["is_folder"]:
656
- dxi.SetNormalIcon("shell32.dll", 4)
657
- else:
658
- dxi.SetNormalIcon("shell32.dll", 1)
659
- # just return the dxi - let Python QI for IID_IExtractIconW
660
- return dxi
661
-
662
- elif iid == pythoncom.IID_IDataObject:
663
- return shell.SHCreateDataObject(self.pidl, pidls, None, iid)
664
-
665
- elif iid == shell.IID_IQueryAssociations:
666
- elts = []
667
- if item["is_folder"]:
668
- elts.append((shellcon.ASSOCCLASS_FOLDER, None, None))
669
- elts.append(
670
- (shellcon.ASSOCCLASS_PROGID_STR, None, ContextMenu._context_menu_type_)
671
- )
672
- return shell.AssocCreateForClasses(elts, iid)
673
-
674
- raise COMException(hresult=winerror.E_NOINTERFACE)
675
-
676
- # Retrieves the display name for the specified file object or subfolder.
677
- def GetDisplayNameOf(self, pidl, flags):
678
- item = pidl_to_item(pidl)
679
- if flags & shellcon.SHGDN_FORPARSING:
680
- if flags & shellcon.SHGDN_INFOLDER:
681
- return item["name"]
682
- else:
683
- if flags & shellcon.SHGDN_FORADDRESSBAR:
684
- sigdn = shellcon.SIGDN_DESKTOPABSOLUTEEDITING
685
- else:
686
- sigdn = shellcon.SIGDN_DESKTOPABSOLUTEPARSING
687
- parent = shell.SHGetNameFromIDList(self.pidl, sigdn)
688
- return parent + "\\" + item["name"]
689
- else:
690
- return item["name"]
691
-
692
- def SetNameOf(self, hwndOwner, pidl, new_name, flags):
693
- raise COMException(hresult=winerror.E_NOTIMPL)
694
-
695
- def GetClassID(self):
696
- return self._reg_clsid_
697
-
698
- # IPersistFolder method
699
- def Initialize(self, pidl):
700
- self.pidl = pidl
701
-
702
- # IShellFolder2 methods
703
- def EnumSearches(self):
704
- raise COMException(hresult=winerror.E_NOINTERFACE)
705
-
706
- # Retrieves the default sorting and display columns.
707
- def GetDefaultColumn(self, dwres):
708
- # result is (sort, display)
709
- return 0, 0
710
-
711
- # Retrieves the default state for a specified column.
712
- def GetDefaultColumnState(self, iCol):
713
- if iCol < 3:
714
- return shellcon.SHCOLSTATE_ONBYDEFAULT | shellcon.SHCOLSTATE_TYPE_STR
715
- raise COMException(hresult=winerror.E_INVALIDARG)
716
-
717
- # Requests the GUID of the default search object for the folder.
718
- def GetDefaultSearchGUID(self):
719
- raise COMException(hresult=winerror.E_NOTIMPL)
720
-
721
- # Helper function for getting the display name for a column.
722
- def _GetColumnDisplayName(self, pidl, pkey):
723
- item = pidl_to_item(pidl)
724
- is_folder = item["is_folder"]
725
- if pkey == PKEY_ItemNameDisplay:
726
- val = item["name"]
727
- elif pkey == PKEY_Sample_AreaSize and not is_folder:
728
- val = "%d Sq. Ft." % item["size"]
729
- elif pkey == PKEY_Sample_NumberOfSides and not is_folder:
730
- val = str(item["sides"]) # not sure why str()
731
- elif pkey == PKEY_Sample_DirectoryLevel:
732
- val = str(item["level"])
733
- else:
734
- val = ""
735
- return val
736
-
737
- # Retrieves detailed information, identified by a
738
- # property set ID (FMTID) and property ID (PID),
739
- # on an item in a Shell folder.
740
- def GetDetailsEx(self, pidl, pkey):
741
- item = pidl_to_item(pidl)
742
- is_folder = item["is_folder"]
743
- if not is_folder and pkey == PKEY_PropList_PreviewDetails:
744
- return "prop:Sample.AreaSize;Sample.NumberOfSides;Sample.DirectoryLevel"
745
- return self._GetColumnDisplayName(pidl, pkey)
746
-
747
- # Retrieves detailed information, identified by a
748
- # column index, on an item in a Shell folder.
749
- def GetDetailsOf(self, pidl, iCol):
750
- key = self.MapColumnToSCID(iCol)
751
- if pidl is None:
752
- data = [
753
- (commctrl.LVCFMT_LEFT, "Name"),
754
- (commctrl.LVCFMT_CENTER, "Size"),
755
- (commctrl.LVCFMT_CENTER, "Sides"),
756
- (commctrl.LVCFMT_CENTER, "Level"),
757
- ]
758
- if iCol >= len(data):
759
- raise COMException(hresult=winerror.E_FAIL)
760
- fmt, val = data[iCol]
761
- else:
762
- fmt = 0 # ?
763
- val = self._GetColumnDisplayName(pidl, key)
764
- cxChar = 24
765
- return fmt, cxChar, val
766
-
767
- # Converts a column name to the appropriate
768
- # property set ID (FMTID) and property ID (PID).
769
- def MapColumnToSCID(self, iCol):
770
- data = [
771
- PKEY_ItemNameDisplay,
772
- PKEY_Sample_AreaSize,
773
- PKEY_Sample_NumberOfSides,
774
- PKEY_Sample_DirectoryLevel,
775
- ]
776
- if iCol >= len(data):
777
- raise COMException(hresult=winerror.E_FAIL)
778
- return data[iCol]
779
-
780
- # IPersistFolder2 methods
781
- # Retrieves the PIDLIST_ABSOLUTE for the folder object.
782
- def GetCurFolder(self):
783
- # The docs say this is OK, but I suspect it's a problem in this case :)
784
- # assert self.pidl, "haven't been initialized?"
785
- return self.pidl
786
-
787
-
788
- # end of sample's ShellFolder.cpp port
789
-
790
-
791
- def get_schema_fname():
792
- me = win32api.GetFullPathName(__file__)
793
- sc = os.path.splitext(me)[0] + ".propdesc"
794
- assert os.path.isfile(sc), sc
795
- return sc
796
-
797
-
798
- def DllRegisterServer():
799
- import winreg
800
-
801
- if sys.getwindowsversion()[0] < 6:
802
- print("This sample only works on Vista")
803
- sys.exit(1)
804
-
805
- key = winreg.CreateKey(
806
- winreg.HKEY_LOCAL_MACHINE,
807
- "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\"
808
- "Explorer\\Desktop\\Namespace\\" + ShellFolder._reg_clsid_,
809
- )
810
- winreg.SetValueEx(key, None, 0, winreg.REG_SZ, ShellFolder._reg_desc_)
811
- # And special shell keys under our CLSID
812
- key = winreg.CreateKey(
813
- winreg.HKEY_CLASSES_ROOT, "CLSID\\" + ShellFolder._reg_clsid_ + "\\ShellFolder"
814
- )
815
- # 'Attributes' is an int stored as a binary! use struct
816
- attr = (
817
- shellcon.SFGAO_FOLDER | shellcon.SFGAO_HASSUBFOLDER | shellcon.SFGAO_BROWSABLE
818
- )
819
- import struct
820
-
821
- s = struct.pack("i", attr)
822
- winreg.SetValueEx(key, "Attributes", 0, winreg.REG_BINARY, s)
823
- # register the context menu handler under the FolderViewSampleType type.
824
- keypath = "{}\\shellex\\ContextMenuHandlers\\{}".format(
825
- ContextMenu._context_menu_type_,
826
- ContextMenu._reg_desc_,
827
- )
828
- key = winreg.CreateKey(winreg.HKEY_CLASSES_ROOT, keypath)
829
- winreg.SetValueEx(key, None, 0, winreg.REG_SZ, ContextMenu._reg_clsid_)
830
- propsys.PSRegisterPropertySchema(get_schema_fname())
831
- print(ShellFolder._reg_desc_, "registration complete.")
832
-
833
-
834
- def DllUnregisterServer():
835
- import winreg
836
-
837
- paths = [
838
- "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Desktop\\Namespace\\"
839
- + ShellFolder._reg_clsid_,
840
- "{}\\shellex\\ContextMenuHandlers\\{}".format(
841
- ContextMenu._context_menu_type_, ContextMenu._reg_desc_
842
- ),
843
- ]
844
- for path in paths:
845
- try:
846
- winreg.DeleteKey(winreg.HKEY_LOCAL_MACHINE, path)
847
- except OSError as details:
848
- import errno
849
-
850
- if details.errno != errno.ENOENT:
851
- print(f"FAILED to remove {path}: {details}")
852
-
853
- propsys.PSUnregisterPropertySchema(get_schema_fname())
854
- print(ShellFolder._reg_desc_, "unregistration complete.")
855
-
856
-
857
- if __name__ == "__main__":
858
- from win32com.server import register
859
-
860
- register.UseCommandLine(
861
- ShellFolder,
862
- ContextMenu,
863
- debug=debug,
864
- finalize_register=DllRegisterServer,
865
- finalize_unregister=DllUnregisterServer,
866
- )