Coder Social home page Coder Social logo

yihleego / pywinhandle Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 4.0 10 KB

Pywinhandle is a utility that displays information about open handles for any process in the system. You can use it to see the programs that have a file open, or to see the object types and names of all the handles of a program, or to close the any handles of a program.

Python 100.00%
mutant mutex handle windows procexp process python

pywinhandle's Introduction

Pywinhandle

Introduction

It is a utility that displays information about open handles for any process in the system. You can use it to see the programs that have a file open, or to see the object types and names of all the handles of a program, or to close any handles of a program.

Usage

Find and close handles

handles = find_handles(process_ids=[0x6600], handle_names=['HandleName'])
close_handles(handles)
[
    {
        'process_id': 0x6600,
        'handle': 0x9900,
        'name': 'HandleName',
        'type': 'HandleType'
    }
]

Links

Win32 API

Process Utilities

pywinhandle's People

Contributors

mrhappyasthma avatar yihleego avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pywinhandle's Issues

Crash on `system_info.HandleCount`

  File "M:\........\src\pywinhandle.py", line 210, in find_handles
    for i in range(system_info.HandleCount):
AttributeError: 'NoneType' object has no attribute 'HandleCount'

about use closehandle

hello~when I use pywinhandle I can find handle about the name, than I close it,but I need to stop my all code ,its can be close,How can I solve this problem?

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.