Coder Social home page Coder Social logo

pywin32's Introduction

Pywin32 (Deprecated)

This package was deprecated in favor of the pywin32 library, which your package can depend on and Package Control will install accordingly. See https://packagecontrol.io/docs/dependencies on how to specify a dependency on this library (previously called "dependency") in your package.


Pywin32 support for sublime (win32api etc)

Still evaluating what needs to be included and what doesn't, so if it is missing something important, please let me know.

Using Pywin32

Pywin32 modules should be accessible as soon as Sublime loads up the Pywin32 plugin...but since there is no guarunteed way to ensure all plugins are loaded after Pywin32 gets loaded, you should include Pywin32.setup before including any pywin32 modules. You can include it once in the top most level file, and all subsequent includes from that file should be guarunteed access. It does not have to be included in all files that call pywin32 modules, just once in the top level file that is the entry point. If I could guaruntee pywin32 to get loaded before all plugins, then even this requriement would not be necessary.

Example (show url path of all open explorer windows):

import Pywin32.setup
from win32com.client.gencache import EnsureDispatch


def run():
    for w in EnsureDispatch("Shell.Application").Windows():
        print(w.LocationName + "=" + w.LocationURL)

run()

pywin32's People

Contributors

facelessuser avatar fichtefoll avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pywin32's Issues

Update to python 3.8

I've copy&pasted a few folders (except for demos and tests) from PyPi's 3.8 wheels to this fork , but not sure whether that's the proper way

Add PauseService function to win32serviceutil.py

Hello, we are using win32serviceutil to monitor and control Windows Services. However, we noticed that there is no function defined for pausing a service (all the other expected functions are present: RestartService, StopService, StartService, QueryServiceStatus.)

Is it possible to add a PauseService function?

Thank you.

FILE_ALL_ACCESS is not defined the same as Windows defines it

I know that this site isn't the source of Pywin32, but I like Sublime, so I'm duplicating the issue I entered on SourceForge here just in case you ever run into issues with NTFS permissions (ACEs). It's not a particularly easy one to track down.

The current definition of FILE_ALL_ACCESS in ntsecuritycon is:

FILE_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 1023)

WinNT.h, however, defines it like this:

#define FILE_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE | 0x1ff)

(1023 is 0x3ff, while 0x1ff is 511).

I can take a guess where the confusion came from; if you add an ACE with FILE_ALL_ACCESS, you often get back FILE_ALL_ACCESS | 0x200. I think this is NTFS enabling SI_NO_ACL_PROTECT, but I haven't confirmed that. It's possible that original consumers/definers of that value attempted to an equality comparison instead of a bitwise mask and got back unexpected results - it's hard to say.

Download fails

Trying to install via Package Control fails on Windows 10. It is unable to download the zip file:

Console:

Package Control: Error downloading package. HTTP error 403 downloading https://codeload.github.com/SublimeText/Pywin32/zip/st3-1.1.0.
error: Package Control

Unable to download Pywin32. Please view the console for more details.

AddSourceToRegistry fails if the user has no rights to write to the Registry

Hello,
I noticed that the AddSourceToRegistry function fails with an error if the registry key is not writeable (e.g. you have a user with few rights).
The Python 2.7. NtEventLogHandler uses this function and does not expext such an error - resulting in hard app crashes if we write to this logger.

For my usecase, it was best to extend the NtEventLogHandler so that it just assumes that the key exists (we can create it in our setup). But I was wondering if it would be possible to extend this function in a way which guards againsst this case?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.