DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Plugins  (Read 6,327 times)

TaoPhoenix

  • 0 - 60 ... then back to 0 again!
  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 4,642
    • Participated in NANY Challenge Three Times
Plugins
« on: May 06, 2012, 09:14 AM »

Can a good programmer create plugins for any application? Can you just hand someone an EXE and say "write a plugin for this" or do they need API's or such?
Use attachthumb=# to show an attached image as an expandable thumbnail, or attach=# to show full size. (With Brackets)

fenixproductions

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,186
    • Participated in NANY Challenge Four Times
Re: Plugins
« Reply #1 on: May 06, 2012, 10:10 AM »
Good programmer may not need any API/SDK and create DLL which will inject its code on runtime into desired application (i.e. TWinKey) but this is not very secure way and it is prone to errors. In some scenarios may also be malicious.

Standard way is to have proper API from software developer: easier to maintain, debug and test. If such documentation does not exist: beg for it ;)
Or use macro tools/languages like AutoHotkey or AutoIt.
Надо было учиться, а не камни в школу бросать...
--
f0dder is my personal hero :)

vlastimil

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 308
    • Participated in NANY Challenge Three Times
Re: Plugins
« Reply #2 on: May 06, 2012, 10:13 AM »
If the application has an interface for plug-ins and the programmer has infinite time, then yes, they can create plug-ins for anything. In reality, the programmer needs something to guide them. Having documentation, API specification, or an example helps. Without them, it is like creating a key without knowing anything about a lock.

TaoPhoenix

  • 0 - 60 ... then back to 0 again!
  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 4,642
    • Participated in NANY Challenge Three Times
Re: Plugins
« Reply #3 on: May 06, 2012, 10:19 AM »
If the application has an interface for plug-ins and the programmer has infinite time, then yes, they can create plug-ins for anything. In reality, the programmer needs something to guide them. Having documentation, API specification, or an example helps. Without them, it is like creating a key without knowing anything about a lock.

So some applications don't have a plugin interface at all?
Use attachthumb=# to show an attached image as an expandable thumbnail, or attach=# to show full size. (With Brackets)

db90h

  • Coding Snacks Author
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 481
    • Coding Snacks
    • Military Service Badge - US Army
    • Linux User
Re: Plugins
« Reply #4 on: May 06, 2012, 10:43 AM »
So some applications don't have a plugin interface at all?

Right. They have no plug-in interface. Most don't, in fact. I mean, that's something a programmer adds if there is a need, not by default.

However, the poster was expressing the possibility that with *MUCH WORK* an external programmer could come in and create such an interface. Without the source code, this requires massive amounts of work, reverse engineering, and even then it may have limitations or be imperfect. The mechanism would involve injection into the process, then modification of the applicable code, on the instruction set level -- making the whole thing also very prone to errors and other risks.

In the case of signed executables, other platforms, or certain protection schemes, creation of such a 'third-party API interface into a program that has no plug-in interface' could be infeasible.

Original address: https://www.donationcoder.com/forum/index.php?topic=30909.0