Coder Social home page Coder Social logo

GetProcAddress has no use right now about pywin32 HOT 4 CLOSED

 avatar commented on July 18, 2024
GetProcAddress has no use right now

from pywin32.

Comments (4)

Avasam avatar Avasam commented on July 18, 2024 1

Tagging @pyhedgehog as original SourceForge issue Creator.

from pywin32.

 avatar commented on July 18, 2024

Logged In: YES
user_id=1473180
Originator: NO

Don't remove it; it's useful for writing simple scripts that read and simple information about DLLs.

For example, I work on a project that has three different kinds of loadable plugin modules, where each plugin is just a DLL with a pair of specific exports (factory function and cleanup) with a name that indicates the type. There are three different types of plugins.

My script opens a DLL and uses GetProcAddress to find whether it's (a) a valid plugin of one of the three types, (b) not a valid plugin of any type, (c) ... because whoever built it forgot extern "C", or (d) not even a DLL.

Sure, I could do the same thing with ctypes (and actually call the code), but I've already got some working scripts today.

Original comment by: barnert

from pywin32.

 avatar commented on July 18, 2024
  • status: open --> closed-rejected

Original comment by: mhammond

from pywin32.

 avatar commented on July 18, 2024

Logged In: YES
user_id=14198
Originator: NO

yeah, it is useful - just because someone can't see an immediate use doesn't mean it doesn't exist :)

Original comment by: mhammond

from pywin32.

Related Issues (20)

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.